svga: fix incorrect case in svga_typeless_format()
authorBrian Paul <brianp@vmware.com>
Tue, 27 Jun 2017 16:00:58 +0000 (10:00 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Oct 2017 18:07:05 +0000 (12:07 -0600)
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 <charmainel@vmware.com>
src/gallium/drivers/svga/svga_format.c

index 597883f21f1c0107ec7149568ee8e48ba9d8a1ba..a72cf99e6bb7600a40dda5e51df3803ab0eec73d 100644 (file)
@@ -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;