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:
committed by
Marge Bot
parent
8d83ffe531
commit
bcba473eac
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user