From 39206c115039719d0503220bf9399fd2a7ac9b95 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Wed, 22 Jan 2025 15:33:48 +0100 Subject: [PATCH] ir3: make shader output struct non-anonymous Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3_shader.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/freedreno/ir3/ir3_shader.h b/src/freedreno/ir3/ir3_shader.h index e3878317bc3..f3b9d31bcbc 100644 --- a/src/freedreno/ir3/ir3_shader.h +++ b/src/freedreno/ir3/ir3_shader.h @@ -614,6 +614,13 @@ struct ir3_shader_options { bool fragdata_dynamic_remap; }; +struct ir3_shader_output { + uint8_t slot; + uint8_t regid; + uint8_t view; + bool half : 1; +}; + /** * Shader variant which contains the actual hw shader instructions, * and necessary info for shader state setup. @@ -737,12 +744,7 @@ struct ir3_shader_variant { /* varyings/outputs: */ unsigned outputs_count; - struct { - uint8_t slot; - uint8_t regid; - uint8_t view; - bool half : 1; - } outputs[32 + 2]; /* +POSITION +PSIZE */ + struct ir3_shader_output outputs[32 + 2]; /* +POSITION +PSIZE */ bool writes_pos, writes_smask, writes_psize, writes_viewport, writes_stencilref; bool writes_shading_rate;