aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-06-27 10:00:58 -0600
committerBrian Paul <[email protected]>2017-10-03 12:07:05 -0600
commitb7c08e50812cd356bfe8caa00f1962c97774744f (patch)
tree355ef1b7b206129c4271216e730475a863057af2
parentcbe72ae59880025d28e82a1d3cc0b2108e578574 (diff)
svga: fix incorrect case in svga_typeless_format()
For the case of SVGA3D_X32_G8X24_UINT we incorrectly returned SVGA3D_R32_FLOAT_X8X24. We should return SVGA3D_R32G8X24_TYPELESS. Note that we never actually use SVGA3D_X32_G8X24_UINT so this has no impact. No Piglit regressions. Reviewed-by: Charmaine Lee <[email protected]>
-rw-r--r--src/gallium/drivers/svga/svga_format.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c
index 597883f21f1..a72cf99e6bb 100644
--- a/src/gallium/drivers/svga/svga_format.c
+++ b/src/gallium/drivers/svga/svga_format.c
@@ -1827,10 +1827,9 @@ svga_typeless_format(SVGA3dSurfaceFormat format)
case SVGA3D_R32G32_FLOAT:
return SVGA3D_R32G32_TYPELESS;
case SVGA3D_D32_FLOAT_S8X24_UINT:
+ case SVGA3D_X32_G8X24_UINT:
case SVGA3D_R32G8X24_TYPELESS:
return SVGA3D_R32G8X24_TYPELESS;
- case SVGA3D_X32_G8X24_UINT:
- return SVGA3D_R32_FLOAT_X8X24;
case SVGA3D_R10G10B10A2_UINT:
case SVGA3D_R10G10B10A2_UNORM:
return SVGA3D_R10G10B10A2_TYPELESS;