asahi: Fix UB in union with logic ops

Colour mask written.

Fixes: 9dddbfeaef ("asahi: Fix logic ops")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19998>
This commit is contained in:
Alyssa Rosenzweig
2022-11-24 10:55:20 -05:00
committed by Marge Bot
parent 8d83ffe531
commit bcba473eac
+2 -5
View File
@@ -136,11 +136,8 @@ struct agx_zsa {
struct agx_blend {
bool logicop_enable, blend_enable;
union {
nir_lower_blend_rt rt[8];
unsigned logicop_func;
};
nir_lower_blend_rt rt[8];
unsigned logicop_func;
};
struct asahi_shader_key {