<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I’ve verified the same entries are in the list before/after.
<div class=""><br class="">
</div>
<div class="">Reviewed-by: Tim Rowley <<a href="mailto:timothy.o.rowley@intel.com" class="">timothy.o.rowley@intel.com</a>></div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 22, 2016, at 7:37 PM, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>><br class="">
---<br class="">
src/gallium/drivers/swr/swr_screen.cpp | 152 +++++++++++++++++++--------------<br class="">
1 file changed, 87 insertions(+), 65 deletions(-)<br class="">
<br class="">
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp<br class="">
index b17faee..642f9be 100644<br class="">
--- a/src/gallium/drivers/swr/swr_screen.cpp<br class="">
+++ b/src/gallium/drivers/swr/swr_screen.cpp<br class="">
@@ -377,89 +377,141 @@ SWR_FORMAT<br class="">
mesa_to_swr_format(enum pipe_format format)<br class="">
{<br class="">
static const std::map<pipe_format,SWR_FORMAT> mesa2swr = {<br class="">
- {PIPE_FORMAT_B8G8R8A8_UNORM, B8G8R8A8_UNORM},<br class="">
- {PIPE_FORMAT_B8G8R8X8_UNORM, B8G8R8X8_UNORM},<br class="">
- {PIPE_FORMAT_B5G5R5A1_UNORM, B5G5R5A1_UNORM},<br class="">
- {PIPE_FORMAT_B4G4R4A4_UNORM, B4G4R4A4_UNORM},<br class="">
- {PIPE_FORMAT_B5G6R5_UNORM, B5G6R5_UNORM},<br class="">
- {PIPE_FORMAT_R10G10B10A2_UNORM, R10G10B10A2_UNORM},<br class="">
- {PIPE_FORMAT_A8_UNORM, A8_UNORM},<br class="">
+ /* depth / stencil */<br class="">
{PIPE_FORMAT_Z16_UNORM, R16_UNORM}, // z<br class="">
{PIPE_FORMAT_Z32_FLOAT, R32_FLOAT}, // z<br class="">
{PIPE_FORMAT_Z24_UNORM_S8_UINT, R24_UNORM_X8_TYPELESS}, // z<br class="">
{PIPE_FORMAT_Z24X8_UNORM, R24_UNORM_X8_TYPELESS}, // z<br class="">
+ {PIPE_FORMAT_Z32_FLOAT_S8X24_UINT, R32_FLOAT_X8X24_TYPELESS}, // z<br class="">
+<br class="">
+ /* alpha */<br class="">
+ {PIPE_FORMAT_A8_UNORM, A8_UNORM},<br class="">
+ {PIPE_FORMAT_A16_UNORM, A16_UNORM},<br class="">
+ {PIPE_FORMAT_A16_FLOAT, A16_FLOAT},<br class="">
+ {PIPE_FORMAT_A32_FLOAT, A32_FLOAT},<br class="">
+<br class="">
+ /* odd sizes, bgr */<br class="">
+ {PIPE_FORMAT_B5G6R5_UNORM, B5G6R5_UNORM},<br class="">
+ {PIPE_FORMAT_B5G6R5_SRGB, B5G6R5_UNORM_SRGB},<br class="">
+ {PIPE_FORMAT_B5G5R5A1_UNORM, B5G5R5A1_UNORM},<br class="">
+ {PIPE_FORMAT_B5G5R5X1_UNORM, B5G5R5X1_UNORM},<br class="">
+ {PIPE_FORMAT_B4G4R4A4_UNORM, B4G4R4A4_UNORM},<br class="">
+ {PIPE_FORMAT_B8G8R8A8_UNORM, B8G8R8A8_UNORM},<br class="">
+ {PIPE_FORMAT_B8G8R8A8_SRGB, B8G8R8A8_UNORM_SRGB},<br class="">
+ {PIPE_FORMAT_B8G8R8X8_UNORM, B8G8R8X8_UNORM},<br class="">
+ {PIPE_FORMAT_B8G8R8X8_SRGB, B8G8R8X8_UNORM_SRGB},<br class="">
+<br class="">
+ /* rgb10a2 */<br class="">
+ {PIPE_FORMAT_R10G10B10A2_UNORM, R10G10B10A2_UNORM},<br class="">
+ {PIPE_FORMAT_R10G10B10A2_SNORM, R10G10B10A2_SNORM},<br class="">
+ {PIPE_FORMAT_R10G10B10A2_USCALED, R10G10B10A2_USCALED},<br class="">
+ {PIPE_FORMAT_R10G10B10A2_SSCALED, R10G10B10A2_SSCALED},<br class="">
+ {PIPE_FORMAT_R10G10B10A2_UINT, R10G10B10A2_UINT},<br class="">
+<br class="">
+ /* rgb10x2 */<br class="">
+ {PIPE_FORMAT_R10G10B10X2_USCALED, R10G10B10X2_USCALED},<br class="">
+<br class="">
+ /* bgr10a2 */<br class="">
+ {PIPE_FORMAT_B10G10R10A2_UNORM, B10G10R10A2_UNORM},<br class="">
+ {PIPE_FORMAT_B10G10R10A2_SNORM, B10G10R10A2_SNORM},<br class="">
+ {PIPE_FORMAT_B10G10R10A2_USCALED, B10G10R10A2_USCALED},<br class="">
+ {PIPE_FORMAT_B10G10R10A2_SSCALED, B10G10R10A2_SSCALED},<br class="">
+ {PIPE_FORMAT_B10G10R10A2_UINT, B10G10R10A2_UINT},<br class="">
+<br class="">
+ /* bgr10x2 */<br class="">
+ {PIPE_FORMAT_B10G10R10X2_UNORM, B10G10R10X2_UNORM},<br class="">
+<br class="">
+ /* r11g11b10 */<br class="">
+ {PIPE_FORMAT_R11G11B10_FLOAT, R11G11B10_FLOAT},<br class="">
+<br class="">
+ /* 32 bits per component */<br class="">
{PIPE_FORMAT_R32_FLOAT, R32_FLOAT},<br class="">
{PIPE_FORMAT_R32G32_FLOAT, R32G32_FLOAT},<br class="">
{PIPE_FORMAT_R32G32B32_FLOAT, R32G32B32_FLOAT},<br class="">
{PIPE_FORMAT_R32G32B32A32_FLOAT, R32G32B32A32_FLOAT},<br class="">
+ {PIPE_FORMAT_R32G32B32X32_FLOAT, R32G32B32X32_FLOAT},<br class="">
+<br class="">
{PIPE_FORMAT_R32_USCALED, R32_USCALED},<br class="">
{PIPE_FORMAT_R32G32_USCALED, R32G32_USCALED},<br class="">
{PIPE_FORMAT_R32G32B32_USCALED, R32G32B32_USCALED},<br class="">
{PIPE_FORMAT_R32G32B32A32_USCALED, R32G32B32A32_USCALED},<br class="">
+<br class="">
{PIPE_FORMAT_R32_SSCALED, R32_SSCALED},<br class="">
{PIPE_FORMAT_R32G32_SSCALED, R32G32_SSCALED},<br class="">
{PIPE_FORMAT_R32G32B32_SSCALED, R32G32B32_SSCALED},<br class="">
{PIPE_FORMAT_R32G32B32A32_SSCALED, R32G32B32A32_SSCALED},<br class="">
+<br class="">
+ {PIPE_FORMAT_R32_UINT, R32_UINT},<br class="">
+ {PIPE_FORMAT_R32G32_UINT, R32G32_UINT},<br class="">
+ {PIPE_FORMAT_R32G32B32_UINT, R32G32B32_UINT},<br class="">
+ {PIPE_FORMAT_R32G32B32A32_UINT, R32G32B32A32_UINT},<br class="">
+<br class="">
+ {PIPE_FORMAT_R32_SINT, R32_SINT},<br class="">
+ {PIPE_FORMAT_R32G32_SINT, R32G32_SINT},<br class="">
+ {PIPE_FORMAT_R32G32B32_SINT, R32G32B32_SINT},<br class="">
+ {PIPE_FORMAT_R32G32B32A32_SINT, R32G32B32A32_SINT},<br class="">
+<br class="">
+ /* 16 bits per component */<br class="">
{PIPE_FORMAT_R16_UNORM, R16_UNORM},<br class="">
{PIPE_FORMAT_R16G16_UNORM, R16G16_UNORM},<br class="">
{PIPE_FORMAT_R16G16B16_UNORM, R16G16B16_UNORM},<br class="">
{PIPE_FORMAT_R16G16B16A16_UNORM, R16G16B16A16_UNORM},<br class="">
+ {PIPE_FORMAT_R16G16B16X16_UNORM, R16G16B16X16_UNORM},<br class="">
+<br class="">
{PIPE_FORMAT_R16_USCALED, R16_USCALED},<br class="">
{PIPE_FORMAT_R16G16_USCALED, R16G16_USCALED},<br class="">
{PIPE_FORMAT_R16G16B16_USCALED, R16G16B16_USCALED},<br class="">
{PIPE_FORMAT_R16G16B16A16_USCALED, R16G16B16A16_USCALED},<br class="">
+<br class="">
{PIPE_FORMAT_R16_SNORM, R16_SNORM},<br class="">
{PIPE_FORMAT_R16G16_SNORM, R16G16_SNORM},<br class="">
{PIPE_FORMAT_R16G16B16_SNORM, R16G16B16_SNORM},<br class="">
{PIPE_FORMAT_R16G16B16A16_SNORM, R16G16B16A16_SNORM},<br class="">
+<br class="">
{PIPE_FORMAT_R16_SSCALED, R16_SSCALED},<br class="">
{PIPE_FORMAT_R16G16_SSCALED, R16G16_SSCALED},<br class="">
{PIPE_FORMAT_R16G16B16_SSCALED, R16G16B16_SSCALED},<br class="">
{PIPE_FORMAT_R16G16B16A16_SSCALED, R16G16B16A16_SSCALED},<br class="">
+<br class="">
+ {PIPE_FORMAT_R16_UINT, R16_UINT},<br class="">
+ {PIPE_FORMAT_R16G16_UINT, R16G16_UINT},<br class="">
+ {PIPE_FORMAT_R16G16B16_UINT, R16G16B16_UINT},<br class="">
+ {PIPE_FORMAT_R16G16B16A16_UINT, R16G16B16A16_UINT},<br class="">
+<br class="">
+ {PIPE_FORMAT_R16_SINT, R16_SINT},<br class="">
+ {PIPE_FORMAT_R16G16_SINT, R16G16_SINT},<br class="">
+ {PIPE_FORMAT_R16G16B16_SINT, R16G16B16_SINT},<br class="">
+ {PIPE_FORMAT_R16G16B16A16_SINT, R16G16B16A16_SINT},<br class="">
+<br class="">
+ {PIPE_FORMAT_R16_FLOAT, R16_FLOAT},<br class="">
+ {PIPE_FORMAT_R16G16_FLOAT, R16G16_FLOAT},<br class="">
+ {PIPE_FORMAT_R16G16B16_FLOAT, R16G16B16_FLOAT},<br class="">
+ {PIPE_FORMAT_R16G16B16A16_FLOAT, R16G16B16A16_FLOAT},<br class="">
+ {PIPE_FORMAT_R16G16B16X16_FLOAT, R16G16B16X16_FLOAT},<br class="">
+<br class="">
+ /* 8 bits per component */<br class="">
{PIPE_FORMAT_R8_UNORM, R8_UNORM},<br class="">
{PIPE_FORMAT_R8G8_UNORM, R8G8_UNORM},<br class="">
{PIPE_FORMAT_R8G8B8_UNORM, R8G8B8_UNORM},<br class="">
+ {PIPE_FORMAT_R8G8B8_SRGB, R8G8B8_UNORM_SRGB},<br class="">
{PIPE_FORMAT_R8G8B8A8_UNORM, R8G8B8A8_UNORM},<br class="">
+ {PIPE_FORMAT_R8G8B8A8_SRGB, R8G8B8A8_UNORM_SRGB},<br class="">
+ {PIPE_FORMAT_R8G8B8X8_UNORM, R8G8B8X8_UNORM},<br class="">
+<br class="">
{PIPE_FORMAT_R8_USCALED, R8_USCALED},<br class="">
{PIPE_FORMAT_R8G8_USCALED, R8G8_USCALED},<br class="">
{PIPE_FORMAT_R8G8B8_USCALED, R8G8B8_USCALED},<br class="">
{PIPE_FORMAT_R8G8B8A8_USCALED, R8G8B8A8_USCALED},<br class="">
+<br class="">
{PIPE_FORMAT_R8_SNORM, R8_SNORM},<br class="">
{PIPE_FORMAT_R8G8_SNORM, R8G8_SNORM},<br class="">
{PIPE_FORMAT_R8G8B8_SNORM, R8G8B8_SNORM},<br class="">
{PIPE_FORMAT_R8G8B8A8_SNORM, R8G8B8A8_SNORM},<br class="">
+<br class="">
{PIPE_FORMAT_R8_SSCALED, R8_SSCALED},<br class="">
{PIPE_FORMAT_R8G8_SSCALED, R8G8_SSCALED},<br class="">
{PIPE_FORMAT_R8G8B8_SSCALED, R8G8B8_SSCALED},<br class="">
{PIPE_FORMAT_R8G8B8A8_SSCALED, R8G8B8A8_SSCALED},<br class="">
- {PIPE_FORMAT_R16_FLOAT, R16_FLOAT},<br class="">
- {PIPE_FORMAT_R16G16_FLOAT, R16G16_FLOAT},<br class="">
- {PIPE_FORMAT_R16G16B16_FLOAT, R16G16B16_FLOAT},<br class="">
- {PIPE_FORMAT_R16G16B16A16_FLOAT, R16G16B16A16_FLOAT},<br class="">
-<br class="">
- {PIPE_FORMAT_R8G8B8_SRGB, R8G8B8_UNORM_SRGB},<br class="">
- {PIPE_FORMAT_B8G8R8A8_SRGB, B8G8R8A8_UNORM_SRGB},<br class="">
- {PIPE_FORMAT_B8G8R8X8_SRGB, B8G8R8X8_UNORM_SRGB},<br class="">
- {PIPE_FORMAT_R8G8B8A8_SRGB, R8G8B8A8_UNORM_SRGB},<br class="">
-<br class="">
- {PIPE_FORMAT_B5G5R5X1_UNORM, B5G5R5X1_UNORM},<br class="">
- {PIPE_FORMAT_R10G10B10A2_USCALED, R10G10B10A2_USCALED},<br class="">
- {PIPE_FORMAT_R11G11B10_FLOAT, R11G11B10_FLOAT},<br class="">
- {PIPE_FORMAT_Z32_FLOAT_S8X24_UINT, R32_FLOAT_X8X24_TYPELESS}, // z<br class="">
- {PIPE_FORMAT_R10G10B10X2_USCALED, R10G10B10X2_USCALED},<br class="">
- {PIPE_FORMAT_B10G10R10A2_UNORM, B10G10R10A2_UNORM},<br class="">
- {PIPE_FORMAT_R8G8B8X8_UNORM, R8G8B8X8_UNORM},<br class="">
-<br class="">
- {PIPE_FORMAT_A16_UNORM, A16_UNORM},<br class="">
- {PIPE_FORMAT_A16_FLOAT, A16_FLOAT},<br class="">
- {PIPE_FORMAT_A32_FLOAT, A32_FLOAT},<br class="">
-<br class="">
- {PIPE_FORMAT_R10G10B10A2_SSCALED, R10G10B10A2_SSCALED},<br class="">
- {PIPE_FORMAT_R10G10B10A2_SNORM, R10G10B10A2_SNORM},<br class="">
-<br class="">
- {PIPE_FORMAT_B10G10R10A2_USCALED, B10G10R10A2_USCALED},<br class="">
- {PIPE_FORMAT_B10G10R10A2_SSCALED, B10G10R10A2_SSCALED},<br class="">
- {PIPE_FORMAT_B10G10R10A2_SNORM, B10G10R10A2_SNORM},<br class="">
<br class="">
{PIPE_FORMAT_R8_UINT, R8_UINT},<br class="">
{PIPE_FORMAT_R8G8_UINT, R8G8_UINT},<br class="">
@@ -471,36 +523,6 @@ mesa_to_swr_format(enum pipe_format format)<br class="">
{PIPE_FORMAT_R8G8B8_SINT, R8G8B8_SINT},<br class="">
{PIPE_FORMAT_R8G8B8A8_SINT, R8G8B8A8_SINT},<br class="">
<br class="">
- {PIPE_FORMAT_R16_UINT, R16_UINT},<br class="">
- {PIPE_FORMAT_R16G16_UINT, R16G16_UINT},<br class="">
- {PIPE_FORMAT_R16G16B16_UINT, R16G16B16_UINT},<br class="">
- {PIPE_FORMAT_R16G16B16A16_UINT, R16G16B16A16_UINT},<br class="">
-<br class="">
- {PIPE_FORMAT_R16_SINT, R16_SINT},<br class="">
- {PIPE_FORMAT_R16G16_SINT, R16G16_SINT},<br class="">
- {PIPE_FORMAT_R16G16B16_SINT, R16G16B16_SINT},<br class="">
- {PIPE_FORMAT_R16G16B16A16_SINT, R16G16B16A16_SINT},<br class="">
-<br class="">
- {PIPE_FORMAT_R32_UINT, R32_UINT},<br class="">
- {PIPE_FORMAT_R32G32_UINT, R32G32_UINT},<br class="">
- {PIPE_FORMAT_R32G32B32_UINT, R32G32B32_UINT},<br class="">
- {PIPE_FORMAT_R32G32B32A32_UINT, R32G32B32A32_UINT},<br class="">
-<br class="">
- {PIPE_FORMAT_R32_SINT, R32_SINT},<br class="">
- {PIPE_FORMAT_R32G32_SINT, R32G32_SINT},<br class="">
- {PIPE_FORMAT_R32G32B32_SINT, R32G32B32_SINT},<br class="">
- {PIPE_FORMAT_R32G32B32A32_SINT, R32G32B32A32_SINT},<br class="">
-<br class="">
- {PIPE_FORMAT_B10G10R10A2_UINT, B10G10R10A2_UINT},<br class="">
-<br class="">
- {PIPE_FORMAT_B10G10R10X2_UNORM, B10G10R10X2_UNORM},<br class="">
- {PIPE_FORMAT_R16G16B16X16_UNORM, R16G16B16X16_UNORM},<br class="">
- {PIPE_FORMAT_R16G16B16X16_FLOAT, R16G16B16X16_FLOAT},<br class="">
- {PIPE_FORMAT_R32G32B32X32_FLOAT, R32G32B32X32_FLOAT},<br class="">
- {PIPE_FORMAT_R10G10B10A2_UINT, R10G10B10A2_UINT},<br class="">
-<br class="">
- {PIPE_FORMAT_B5G6R5_SRGB, B5G6R5_UNORM_SRGB},<br class="">
-<br class="">
/* These formats have entries in SWR but don't have Load/StoreTile<br class="">
* implementations. That means these aren't renderable, and thus having<br class="">
* a mapping entry here is detrimental.<br class="">
-- <br class="">
2.7.3<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>