v3d: Fix stencil sampling from packed depth/stencil.
authorEric Anholt <eric@anholt.net>
Wed, 23 Jan 2019 21:17:32 +0000 (13:17 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 27 Jan 2019 16:30:03 +0000 (08:30 -0800)
We need to pick the 8-bit unorm value out, not the depth component.

src/gallium/drivers/v3d/v3dx_format_table.c

index 6f9af3cea4f1e0bb19b54af574995e64c37f3ab4..80f0dc6513d6a93ff9e60871161b1319f5b67369 100644 (file)
@@ -147,7 +147,7 @@ static const struct v3d_format format_table[] = {
 #if V3D_VERSION >= 40
         FORMAT(S8_UINT_Z24_UNORM, D24S8,        DEPTH24_X8,  SWIZ_XXXX, 32, 1),
         FORMAT(X8Z24_UNORM,       D24S8,        DEPTH24_X8,  SWIZ_XXXX, 32, 1),
-        FORMAT(S8X24_UINT,        S8,           DEPTH_COMP32F, SWIZ_XXXX, 32, 1),
+        FORMAT(S8X24_UINT,        S8,           RGBA8UI, SWIZ_XXXX, 16, 1),
         FORMAT(Z32_FLOAT,         D32F,         DEPTH_COMP32F, SWIZ_XXXX, 32, 1),
         FORMAT(Z16_UNORM,         D16,          DEPTH_COMP16,SWIZ_XXXX, 32, 1),