summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-09-28 11:47:50 -0700
committerEric Anholt <[email protected]>2017-10-10 11:42:05 -0700
commitbe11251e3c0f4ef2ad57aa83dbb480bc2b95328a (patch)
treeda796a1f11aa57207ef5f1069cdbeaff51dbdfa5 /src/gallium/drivers
parente20c82c55087344fb7caec4cc9df0a13489a2f2d (diff)
broadcom/vc5: Add missing Z16 format.
We can render to and sample from it just fine.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/vc5/vc5_formats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_formats.c b/src/gallium/drivers/vc5/vc5_formats.c
index fe2600207e9..d0c96cc97d4 100644
--- a/src/gallium/drivers/vc5/vc5_formats.c
+++ b/src/gallium/drivers/vc5/vc5_formats.c
@@ -185,6 +185,7 @@ static const struct vc5_format vc5_format_table[] = {
FORMAT(X8Z24_UNORM, DEPTH_COMPONENT24, 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),
/* Pretend we support this, but it'll be separate Z32F depth and S8. */
FORMAT(Z32_FLOAT_S8X24_UINT, DEPTH_COMPONENT32F, R32F, SWIZ_X001, 32, 1),