projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f24e4e
)
vc4: Fix the shader record size for extended strides.
author
Eric Anholt
<eric@anholt.net>
Sun, 3 Aug 2014 03:44:39 +0000
(20:44 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 11 Aug 2014 21:45:31 +0000
(14:45 -0700)
It turns out they aren't packed when attributes are missing, according to
both docs and simulation.
v2: Drop unused variable.
src/gallium/drivers/vc4/vc4_simulator_validate.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_simulator_validate.c
b/src/gallium/drivers/vc4/vc4_simulator_validate.c
index 2996779e89b0dc3bb2d7becfabac86b50382581d..0fbe0b19cfc33169e1bc41d2233e30d5f381c93e 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_simulator_validate.c
+++ b/
src/gallium/drivers/vc4/vc4_simulator_validate.c
@@
-94,7
+94,10
@@
gl_shader_rec_size(uint32_t pointer_bits)
if (attribute_count == 0)
attribute_count = 8;
- return 36 + attribute_count * (extended ? 12 : 8);
+ if (extended)
+ return 100 + attribute_count * 4;
+ else
+ return 36 + attribute_count * 8;
}
static bool