From: Eric Anholt Date: Mon, 30 Oct 2017 22:12:33 +0000 (-0700) Subject: broadcom/vc5: Use DEPTH24_STENCIL8 for rendering to depth-only textures. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47dac5d2bc8b72a5ea96bccd537ca31b6713f090;p=mesa.git 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 --- 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),