i965: Add support for RGBA_16 unorm rendering.
authorEric Anholt <eric@anholt.net>
Wed, 16 Nov 2011 00:50:59 +0000 (16:50 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 22 Nov 2011 21:58:39 +0000 (13:58 -0800)
GL 3.0 specifies GL_RGBA16 as a required sized format for rendering
and texturing.

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

index bc2617833956a9c3a9589508245265b3111878e7..0a3d5385c5e1514b14fbcd698d64ba3298409060 100644 (file)
@@ -427,7 +427,7 @@ brw_format_for_mesa_format(gl_format mesa_format)
       [MESA_FORMAT_SIGNED_GR1616] = BRW_SURFACEFORMAT_R16G16_SNORM,
       [MESA_FORMAT_SIGNED_RGB_16] = 0,
       [MESA_FORMAT_SIGNED_RGBA_16] = 0,
-      [MESA_FORMAT_RGBA_16] = 0,
+      [MESA_FORMAT_RGBA_16] = BRW_SURFACEFORMAT_R16G16B16A16_UNORM,
 
       [MESA_FORMAT_RED_RGTC1] = BRW_SURFACEFORMAT_BC4_UNORM,
       [MESA_FORMAT_SIGNED_RED_RGTC1] = BRW_SURFACEFORMAT_BC4_SNORM,