diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-07 10:12:14 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-07 10:12:14 +0000 |
commit | 1b8fc8715598e7bf756ccfa99a6da59bab48c2a0 (patch) | |
tree | 5daeb89fdb756130bb3be78965ac76f6dedbebf7 | |
parent | 5f1c2b3b8bb062a4574e5114b09a33b7e4f0c811 (diff) |
sna: Disambiguate sna_crtc_resize()
sna_crtc_resize() operates upon the whole configuration rather than a
single crtc like the other sna_crtc_* so rename it to make it distinct.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 8 | ||||
-rw-r--r-- | src/sna/sna_display_fake.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index be6c61d9..710d783a 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2462,7 +2462,7 @@ migrate_dirty_tracking(struct sna *sna, PixmapPtr old_front) } static Bool -sna_crtc_resize(ScrnInfoPtr scrn, int width, int height) +sna_mode_resize(ScrnInfoPtr scrn, int width, int height) { xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn); struct sna *sna = to_sna(scrn); @@ -2630,8 +2630,8 @@ sna_page_flip(struct sna *sna, return count; } -static const xf86CrtcConfigFuncsRec sna_crtc_config_funcs = { - sna_crtc_resize +static const xf86CrtcConfigFuncsRec sna_mode_funcs = { + sna_mode_resize }; static void set_size_range(struct sna *sna) @@ -2655,7 +2655,7 @@ bool sna_mode_pre_init(ScrnInfoPtr scrn, struct sna *sna) if (!mode->kmode) return sna_mode_fake_init(sna); - xf86CrtcConfigInit(scrn, &sna_crtc_config_funcs); + xf86CrtcConfigInit(scrn, &sna_mode_funcs); for (i = 0; i < mode->kmode->count_crtcs; i++) sna_crtc_init(scrn, mode, i); diff --git a/src/sna/sna_display_fake.c b/src/sna/sna_display_fake.c index 775810a2..b8723a38 100644 --- a/src/sna/sna_display_fake.c +++ b/src/sna/sna_display_fake.c @@ -248,7 +248,7 @@ migrate_dirty_tracking(struct sna *sna, PixmapPtr old_front) } static Bool -sna_crtc_resize(ScrnInfoPtr scrn, int width, int height) +sna_mode_resize(ScrnInfoPtr scrn, int width, int height) { struct sna *sna = to_sna(scrn); ScreenPtr screen = scrn->pScreen; @@ -298,15 +298,15 @@ sna_crtc_resize(ScrnInfoPtr scrn, int width, int height) return TRUE; } -static const xf86CrtcConfigFuncsRec sna_crtc_config_funcs = { - sna_crtc_resize +static const xf86CrtcConfigFuncsRec sna_mode_funcs = { + sna_mode_resize }; bool sna_mode_fake_init(struct sna *sna) { ScrnInfoPtr scrn = sna->scrn; - xf86CrtcConfigInit(scrn, &sna_crtc_config_funcs); + xf86CrtcConfigInit(scrn, &sna_mode_funcs); if (!sna_crtc_fake(sna)) return false; |