gbm: Add support for __DRIimage based getBuffers when available
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 9 Nov 2013 06:06:51 +0000 (22:06 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 13 Nov 2013 00:01:40 +0000 (16:01 -0800)
commit04e3ef00dbeab177793954781ddfd298724b6d8d
tree8aa1ff80dd87d0f8fbed458557c0f6941984b244
parent5ba6be2617a46a7cd8567ffe65f496e917a93374
gbm: Add support for __DRIimage based getBuffers when available

This lets us allocate color buffers as __DRIimages and pass them into
the driver instead of having to create a __DRIbuffer with the flink
that requires.

With this patch, we can now run gbm on render-nodes.  A render-node is a
drm device that doesn't support modesetting and all the legacy DRI ioctls.
flink is also not supported, but now that gbm doesn't need flink, we can
run piglit on head-less gbm or head-less GPGPU.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
src/egl/drivers/dri2/platform_drm.c
src/gbm/backends/dri/gbm_dri.c
src/gbm/backends/dri/gbm_driint.h