freedreno/ir3: increase size of inputs/outputs arrays
authorJonathan Marek <jonathan@marek.ca>
Mon, 7 Oct 2019 00:55:11 +0000 (20:55 -0400)
committerJonathan Marek <jonathan@marek.ca>
Mon, 14 Oct 2019 21:48:22 +0000 (17:48 -0400)
Makes it possible to support 32 varyings.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robclark@gmail.com>
src/freedreno/ir3/ir3_shader.h

index bc7b6b43c885c2158636619ddde5592261267274..3073dfd07eba323af57a03beb557ae708c974bb3 100644 (file)
@@ -440,7 +440,7 @@ struct ir3_shader_variant {
                uint8_t slot;
                uint8_t regid;
                bool    half : 1;
-       } outputs[16 + 2];  /* +POSITION +PSIZE */
+       } outputs[32 + 2];  /* +POSITION +PSIZE */
        bool writes_pos, writes_smask, writes_psize;
 
        /* attributes (VS) / varyings (FS):
@@ -465,7 +465,7 @@ struct ir3_shader_variant {
                bool    use_ldlv   : 1;   /* internal to ir3_compiler_nir */
                bool    half       : 1;
                enum glsl_interp_mode interpolate;
-       } inputs[16 + 2];  /* +POSITION +FACE */
+       } inputs[32 + 2];  /* +POSITION +FACE */
 
        /* sum of input components (scalar).  For frag shaders, it only counts
         * the varying inputs: