summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-08-02 20:44:39 -0700
committerEric Anholt <[email protected]>2014-08-11 14:45:31 -0700
commitaaff32ded0ef0e6b15af883831cc3ccb7b16efc4 (patch)
tree659459622c44fa77c2a47e2ca99de431d07c2fdd /src/gallium/drivers
parent9f24e4e6ed1d5b6a6ea3358c51fe4fccfc860174 (diff)
vc4: Fix the shader record size for extended strides.
It turns out they aren't packed when attributes are missing, according to both docs and simulation. v2: Drop unused variable.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/vc4/vc4_simulator_validate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_simulator_validate.c b/src/gallium/drivers/vc4/vc4_simulator_validate.c
index 2996779e89b..0fbe0b19cfc 100644
--- 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