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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jan 2010 08:18:29 +0000 (09:18 +0100)
commiteb9a0dee6fc7937b1dfb98c38164c9f74a2f65bd
tree285acec44a96be79fdd638b49401c8d971399ca9
parent93a744d40c2f9c5407682c7c441cc1cb8b54120e
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