Consolidate determining maximum sizes for use with GEM
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Dec 2009 09:33:45 +0000 (09:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Jan 2010 19:21:31 +0000 (19:21 +0000)
commit7a2b7cfab5cdef277f0feb838683422d9fcb0db3
tree9aeb107697bbf3b99a571247e9a5d89ec28a5bcd
parent229d23fb18d696fb7ad476ce335be14ec9811bd3
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>
src/drmmode_display.c
src/i830.h
src/i830_memory.c