vc4: Fix the shader record size for extended strides.
authorEric Anholt <eric@anholt.net>
Sun, 3 Aug 2014 03:44:39 +0000 (20:44 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 21:45:32 +0000 (14:45 -0700)
It turns out they aren't packed when attributes are missing, according to
both docs and simulation.

src/gallium/drivers/vc4/vc4_simulator_validate.c

index 0fbe0b19cfc33169e1bc41d2233e30d5f381c93e..ff97963cf88f1bbf17488823a4e5c0ba72080be2 100644 (file)
@@ -90,6 +90,7 @@ gl_shader_rec_size(uint32_t pointer_bits)
 {
        uint32_t attribute_count = pointer_bits & 7;
        bool extended = pointer_bits & 8;
+       uint32_t size;
 
        if (attribute_count == 0)
                attribute_count = 8;