i915: Add GEM ioctl to get available aperture size.
authorEric Anholt <eric@anholt.net>
Thu, 23 Oct 2008 04:40:13 +0000 (21:40 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 3 Nov 2008 00:56:49 +0000 (10:56 +1000)
commit5a125c3c79167e78ba44efef03af7090ef28eeaf
treeb8c3a9e44ea44b7afc821c0422a7ea6360814f03
parent4e270e9b8a9d246290f3901f1fb6c5efdb734ddf
i915: Add GEM ioctl to get available aperture size.

This will let userland know when to submit its batchbuffers, before they get
too big to fit in the aperture.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
include/drm/i915_drm.h