i965: Add real support for texturing/rendering with MESA_FORMAT_RGBA8888_REV.
authorEric Anholt <eric@anholt.net>
Wed, 28 Mar 2012 16:38:57 +0000 (09:38 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Apr 2012 21:35:15 +0000 (14:35 -0700)
commit0b3729c987065883c6ff65a5c5288e852dd5b26a
treecc3a6e9eb2b0f37e7119f2468b9f9a1099665e46
parentaa8ce1be4a30e7c8224af52f83f1e50d251b01d4
i965: Add real support for texturing/rendering with MESA_FORMAT_RGBA8888_REV.

This was hacked in in one place for EGL image stuff, but the right
thing to do was just to provide the mapping from the mesa format to
the native hardware format, which includes render target support.

This turns out to be required for GL_ARB_texture_buffer_object, which
sees data in this layout.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c