intel / DRI2: When available, use DRI2GetBuffersWithFormat
authorIan Romanick <idr@freedesktop.org>
Tue, 21 Apr 2009 03:56:45 +0000 (20:56 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 24 Apr 2009 19:48:20 +0000 (12:48 -0700)
commitf2272b5b2fd9195fe8f9eccfdd2e3c13d18a35e7
tree9e3d8a58ae9f834397cb766089af9ee21ede6c19
parentdbf87f23126cc869637575e9ea2cb58774efe888
intel / DRI2: When available, use DRI2GetBuffersWithFormat

This interface gives the driver two important features.  First, it can
allocate the (fake) front-buffer only when needed.  Second, it can
tell the buffer allocator the format of buffers being allocated.  This
enables support for back-buffer and depth-buffer with different bits
per pixel.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
src/mesa/drivers/dri/intel/intel_buffers.c
src/mesa/drivers/dri/intel/intel_context.c