i965: Add MESA_FORMAT_B8G8R8X8_SRGB to brw_format_for_mesa_format
authorNeil Roberts <neil@linux.intel.com>
Fri, 11 Dec 2015 12:32:16 +0000 (12:32 +0000)
committerNeil Roberts <neil@linux.intel.com>
Sun, 13 Dec 2015 14:29:38 +0000 (14:29 +0000)
This will be used in a subsequent patch as the format for RGB visuals.

Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Suggested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_surface_formats.c

index ff8aac2c0e5fd741222164c84acd020bfdef0601..3fc47c397a038f55fb3c2348ff53d5634c8b30e3 100644 (file)
@@ -408,6 +408,7 @@ brw_format_for_mesa_format(mesa_format mesa_format)
       [MESA_FORMAT_A8R8G8B8_SRGB] = 0,
       [MESA_FORMAT_R8G8B8A8_SRGB] = BRW_SURFACEFORMAT_R8G8B8A8_UNORM_SRGB,
       [MESA_FORMAT_X8R8G8B8_SRGB] = 0,
+      [MESA_FORMAT_B8G8R8X8_SRGB] = BRW_SURFACEFORMAT_B8G8R8X8_UNORM_SRGB,
       [MESA_FORMAT_L_SRGB8] = BRW_SURFACEFORMAT_L8_UNORM_SRGB,
       [MESA_FORMAT_L8A8_SRGB] = BRW_SURFACEFORMAT_L8A8_UNORM_SRGB,
       [MESA_FORMAT_A8L8_SRGB] = 0,