summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-12-13 09:33:45 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-08 19:21:31 +0000
commit7a2b7cfab5cdef277f0feb838683422d9fcb0db3 (patch)
tree9aeb107697bbf3b99a571247e9a5d89ec28a5bcd /src/drmmode_display.c
parent229d23fb18d696fb7ad476ce335be14ec9811bd3 (diff)
Consolidate determining maximum sizes for use with GEM
Add a small wrapper function so that the callsites need only call the single function when checking the available aperture size for determining the maximum viable size for operations. This will allow us to easily extend this set in the future by only needing to adding the check to a single location. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index a469f6ca..b1dee76c 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -395,8 +395,7 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
drmmode_output_dpms(output, DPMSModeOn);
}
- i830_set_max_gtt_map_size(scrn);
- i830_set_max_tiling_size(scrn);
+ i830_set_gem_max_sizes(scrn);
if (scrn->pScreen)
xf86_reload_cursors(scrn->pScreen);