i965: Add support for half-float formats.
authorEric Anholt <eric@anholt.net>
Wed, 16 Nov 2011 00:26:29 +0000 (16:26 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 22 Nov 2011 21:58:38 +0000 (13:58 -0800)
commit1e42568bf304e9b3bae9fef8ad8febd25e1ac29f
tree3b72430b5a55706f805782eba1e2a901c28df566
parentf258c0dfa8ffbd67819bda45f2903ce8d5bb5130
i965: Add support for half-float formats.

Now that all the rest of the driver is driven off of the surface
formats table, all we really need to do is add the mapping from
MESA_FORMAT to BRW_SURFACEFORMAT.  However, we also add format
override for I16/L16 render targets at the same time, so that existing
users of I16 that were getting promoted to I32 and then getting the
I32->R32 override still get FBO support.

Fixes failures in piglit gl-3.0-required-sized-texture-formats, and
will prevent regressions in ARB_texture_float on gen4 when moving to
fully table-driven texture format setup.

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