drm: Add GEM ("graphics execution manager") to i915 driver.
authorEric Anholt <eric@anholt.net>
Wed, 30 Jul 2008 19:06:12 +0000 (12:06 -0700)
committerDave Airlie <airlied@linux.ie>
Fri, 17 Oct 2008 21:10:12 +0000 (07:10 +1000)
commit673a394b1e3b69be886ff24abfd6df97c52e8d08
tree61ca8299333ab50ffc46cf328b20eb25133392ff
parentd1d8c925b71dd6753bf438f9e14a9e5c5183bcc6
drm: Add GEM ("graphics execution manager") to i915 driver.

GEM allows the creation of persistent buffer objects accessible by the
graphics device through new ioctls for managing execution of commands on the
device.  The userland API is almost entirely driver-specific to ensure that
any driver building on this model can easily map the interface to individual
driver requirements.

GEM is used by the 2d driver for managing its internal state allocations and
will be used for pixmap storage to reduce memory consumption and enable
zero-copy GLX_EXT_texture_from_pixmap, and in the 3d driver is used to enable
GL_EXT_framebuffer_object and GL_ARB_pixel_buffer_object.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
23 files changed:
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_agpsupport.c
drivers/gpu/drm/drm_cache.c [new file with mode: 0644]
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_gem.c [new file with mode: 0644]
drivers/gpu/drm/drm_memory.c
drivers/gpu/drm/drm_mm.c
drivers/gpu/drm/drm_proc.c
drivers/gpu/drm/drm_stub.c
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_gem_debug.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_gem_proc.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_gem_tiling.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h
include/drm/drm.h
include/drm/drmP.h
include/drm/i915_drm.h