From: Eric Anholt Date: Thu, 28 Sep 2017 18:47:50 +0000 (-0700) Subject: broadcom/vc5: Add missing Z16 format. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be11251e3c0f4ef2ad57aa83dbb480bc2b95328a;p=mesa.git broadcom/vc5: Add missing Z16 format. We can render to and sample from it just fine. --- 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),