From b094b384e23316989b42a1021d47ac71a9ac33e1 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Sun, 6 Oct 2019 20:55:11 -0400 Subject: [PATCH] freedreno/ir3: increase size of inputs/outputs arrays Makes it possible to support 32 varyings. Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- src/freedreno/ir3/ir3_shader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedreno/ir3/ir3_shader.h b/src/freedreno/ir3/ir3_shader.h index bc7b6b4..3073dfd 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: -- 2.7.4