From aaff32ded0ef0e6b15af883831cc3ccb7b16efc4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 2 Aug 2014 20:44:39 -0700 Subject: [PATCH] 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. --- src/gallium/drivers/vc4/vc4_simulator_validate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2