i965: Use the new XRGB UNORM formats.
authorEric Anholt <eric@anholt.net>
Wed, 17 Apr 2013 00:21:19 +0000 (17:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 15 May 2013 16:43:45 +0000 (09:43 -0700)
This is a step on the way to removing some of our code for forcing alpha
to 1, but I want easy bisecting so I'll add groups of formats separately.

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

index 046c4e8c4ee854a85921ac40b40cb18a1803f5c6..1dcdd93b4984d0fccb0cfa020562f22ff4db9129 100644 (file)
@@ -555,13 +555,13 @@ brw_format_for_mesa_format(gl_format mesa_format)
       [MESA_FORMAT_ABGR2101010_UINT] = BRW_SURFACEFORMAT_R10G10B10A2_UINT,
 
       [MESA_FORMAT_XRGB4444_UNORM] = 0,
-      [MESA_FORMAT_XRGB1555_UNORM] = 0,
+      [MESA_FORMAT_XRGB1555_UNORM] = BRW_SURFACEFORMAT_B5G5R5X1_UNORM,
       [MESA_FORMAT_XBGR8888_SNORM] = 0,
       [MESA_FORMAT_XBGR8888_SRGB] = 0,
       [MESA_FORMAT_XBGR8888_UINT] = 0,
       [MESA_FORMAT_XBGR8888_SINT] = 0,
-      [MESA_FORMAT_XRGB2101010_UNORM] = 0,
-      [MESA_FORMAT_XBGR16161616_UNORM] = 0,
+      [MESA_FORMAT_XRGB2101010_UNORM] = BRW_SURFACEFORMAT_B10G10R10X2_UNORM,
+      [MESA_FORMAT_XBGR16161616_UNORM] = BRW_SURFACEFORMAT_R16G16B16X16_UNORM,
       [MESA_FORMAT_XBGR16161616_SNORM] = 0,
       [MESA_FORMAT_XBGR16161616_FLOAT] = 0,
       [MESA_FORMAT_XBGR16161616_UINT] = 0,