projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d83ffe
)
asahi: Fix UB in union with logic ops
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Thu, 24 Nov 2022 15:55:20 +0000
(10:55 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 25 Nov 2022 17:53:43 +0000
(17:53 +0000)
Colour mask written.
Fixes:
9dddbfeaef2
("asahi: Fix logic ops")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19998>
src/gallium/drivers/asahi/agx_state.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/asahi/agx_state.h
b/src/gallium/drivers/asahi/agx_state.h
index
3543282
..
ec88db4
100644
(file)
--- a/
src/gallium/drivers/asahi/agx_state.h
+++ b/
src/gallium/drivers/asahi/agx_state.h
@@
-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 {