From: Chris Forbes Date: Sat, 15 Mar 2014 08:50:28 +0000 (+1300) Subject: i965: Enable R10G10B10A2_UNORM format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66b0554fa63cf1a9de0637c71e8e769763c267b0;p=mesa.git i965: Enable R10G10B10A2_UNORM format This is supported by all generations, and is required for memory layout consistency for texture_view. Signed-off-by: Chris Forbes Reviewed-by: Kenneth Graunke Acked-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965/brw_surface_formats.c index b4c694dae0f..c029d819bfd 100644 --- a/src/mesa/drivers/dri/i965/brw_surface_formats.c +++ b/src/mesa/drivers/dri/i965/brw_surface_formats.c @@ -503,6 +503,7 @@ brw_format_for_mesa_format(mesa_format mesa_format) [MESA_FORMAT_Z_FLOAT32] = 0, [MESA_FORMAT_Z32_FLOAT_S8X24_UINT] = 0, + [MESA_FORMAT_R10G10B10A2_UNORM] = BRW_SURFACEFORMAT_R10G10B10A2_UNORM, [MESA_FORMAT_B10G10R10A2_UINT] = BRW_SURFACEFORMAT_B10G10R10A2_UINT, [MESA_FORMAT_R10G10B10A2_UINT] = BRW_SURFACEFORMAT_R10G10B10A2_UINT,