aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_formats.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-10-30 15:12:33 -0700
committerEric Anholt <[email protected]>2017-11-07 09:19:48 -0800
commit47dac5d2bc8b72a5ea96bccd537ca31b6713f090 (patch)
tree4ecb996c42adb22dde71609de8b9d011b82c0f02 /src/gallium/drivers/vc5/vc5_formats.c
parent3ea37d0a2aa33a37b292b82e83526361f71ffd7e (diff)
broadcom/vc5: Use DEPTH24_STENCIL8 for rendering to depth-only textures.
The HW puts the pad bits at the top for DEPTH_COMPONENT24, but we need it at the bottom for texturing. Using the format with stencil probably means we won't be able to do Z24 and separate S8, but I wasn't planning on supporting that anyway. Fixes hiz-depth-read-fbo-d24-s0
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_formats.c')
-rw-r--r--src/gallium/drivers/vc5/vc5_formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_formats.c b/src/gallium/drivers/vc5/vc5_formats.c
index 048fc8254f3..d9c7a80b3ee 100644
--- a/src/gallium/drivers/vc5/vc5_formats.c
+++ b/src/gallium/drivers/vc5/vc5_formats.c
@@ -182,7 +182,7 @@ static const struct vc5_format vc5_format_table[] = {
FORMAT(R9G9B9E5_FLOAT, NO, RGB9_E5, SWIZ_XYZW, 16, 0),
FORMAT(S8_UINT_Z24_UNORM, DEPTH24_STENCIL8, DEPTH24_X8, SWIZ_X001, 32, 1),
- FORMAT(X8Z24_UNORM, DEPTH_COMPONENT24, DEPTH24_X8, SWIZ_X001, 32, 1),
+ FORMAT(X8Z24_UNORM, DEPTH24_STENCIL8, DEPTH24_X8, SWIZ_X001, 32, 1),
FORMAT(S8X24_UINT, NO, R32F, SWIZ_X001, 32, 1),
FORMAT(Z32_FLOAT, DEPTH_COMPONENT32F, R32F, SWIZ_X001, 32, 1),
FORMAT(Z16_UNORM, DEPTH_COMPONENT16, DEPTH_COMP16, SWIZ_X001, 32, 1),