From: Jonathan Marek Date: Mon, 7 Oct 2019 00:55:11 +0000 (-0400) Subject: freedreno/ir3: increase size of inputs/outputs arrays X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b094b384e23316989b42a1021d47ac71a9ac33e1;p=mesa.git freedreno/ir3: increase size of inputs/outputs arrays Makes it possible to support 32 varyings. Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- diff --git a/src/freedreno/ir3/ir3_shader.h b/src/freedreno/ir3/ir3_shader.h index bc7b6b43c88..3073dfd07eb 100644 --- a/src/freedreno/ir3/ir3_shader.h +++ b/src/freedreno/ir3/ir3_shader.h @@ -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: