From 348ac0f4a290245f32d0b8ddcbb4ad7559faafbe Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 20 Oct 2022 18:42:13 -0400 Subject: [PATCH] asahi: Make agx_varyings a union More accurate. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/asahi/compiler/agx_compile.h b/src/asahi/compiler/agx_compile.h index c7a1809..a86eac2 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -147,17 +147,15 @@ struct agx_varyings_fs { } bindings[AGX_MAX_CF_BINDINGS]; }; -struct agx_varyings { - union { - struct agx_varyings_vs vs; - struct agx_varyings_fs fs; - }; +union agx_varyings { + struct agx_varyings_vs vs; + struct agx_varyings_fs fs; }; struct agx_shader_info { unsigned push_ranges; struct agx_push push[AGX_MAX_PUSH_RANGES]; - struct agx_varyings varyings; + union agx_varyings varyings; /* Does the shader read the tilebuffer? */ bool reads_tib; -- 2.7.4