projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e20c82c
)
broadcom/vc5: Add missing Z16 format.
author
Eric Anholt
<eric@anholt.net>
Thu, 28 Sep 2017 18:47:50 +0000
(11:47 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 10 Oct 2017 18:42:05 +0000
(11:42 -0700)
We can render to and sample from it just fine.
src/gallium/drivers/vc5/vc5_formats.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc5/vc5_formats.c
b/src/gallium/drivers/vc5/vc5_formats.c
index fe2600207e911bf01448dde886b6b9e1379c220c..d0c96cc97d4f304e40e49bb90506dcc9984bf46a 100644
(file)
--- 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),