OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcdbd44
)
v3d: Fix stencil sampling from packed depth/stencil.
author
Eric Anholt
<eric@anholt.net>
Wed, 23 Jan 2019 21:17:32 +0000
(13:17 -0800)
committer
Eric Anholt
<eric@anholt.net>
Sun, 27 Jan 2019 16:30:03 +0000
(08:30 -0800)
We need to pick the 8-bit unorm value out, not the depth component.
src/gallium/drivers/v3d/v3dx_format_table.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/v3d/v3dx_format_table.c
b/src/gallium/drivers/v3d/v3dx_format_table.c
index
6f9af3c
..
80f0dc6
100644
(file)
--- a/
src/gallium/drivers/v3d/v3dx_format_table.c
+++ b/
src/gallium/drivers/v3d/v3dx_format_table.c
@@
-147,7
+147,7
@@
static const struct v3d_format format_table[] = {
#if V3D_VERSION >= 40
FORMAT(S8_UINT_Z24_UNORM, D24S8, DEPTH24_X8, SWIZ_XXXX, 32, 1),
FORMAT(X8Z24_UNORM, D24S8, DEPTH24_X8, SWIZ_XXXX, 32, 1),
- FORMAT(S8X24_UINT, S8,
DEPTH_COMP32F, SWIZ_XXXX, 32
, 1),
+ FORMAT(S8X24_UINT, S8,
RGBA8UI, SWIZ_XXXX, 16
, 1),
FORMAT(Z32_FLOAT, D32F, DEPTH_COMP32F, SWIZ_XXXX, 32, 1),
FORMAT(Z16_UNORM, D16, DEPTH_COMP16,SWIZ_XXXX, 32, 1),