asahi: Make agx_varyings a union

More accurate.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18813>
This commit is contained in:
Alyssa Rosenzweig
2022-10-20 18:42:13 -04:00
parent 721c4f2186
commit 348ac0f4a2
+4 -6
View File
@@ -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;