From 2e057076a8bdc53d976fe7515fdb2ab2fbfcd5ba Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 16 Apr 2013 17:21:19 -0700 Subject: [PATCH] i965: Use the new XRGB UNORM formats. 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 --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 046c4e8c4ee..1dcdd93b498 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -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, -- 2.30.2