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:
bfa4125
)
panfrost: fix invalid memory access in get_equation_str()
author
Italo Nicola
<italonicola@collabora.com>
Mon, 14 Aug 2023 02:32:45 +0000
(
02:32
+0000)
committer
Marge Bot
<emma+marge@anholt.net>
Mon, 14 Aug 2023 22:41:10 +0000
(22:41 +0000)
Fixes:
f55efb4ae68
("panfrost: Convert to PIPE_BLEND enums internally")
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24144>
src/panfrost/lib/pan_blend.c
patch
|
blob
|
history
diff --git
a/src/panfrost/lib/pan_blend.c
b/src/panfrost/lib/pan_blend.c
index
adb8a97
..
52a6209
100644
(file)
--- a/
src/panfrost/lib/pan_blend.c
+++ b/
src/panfrost/lib/pan_blend.c
@@
-546,8
+546,9
@@
get_equation_str(const struct pan_blend_rt_state *rt_state, char *str,
"add", "sub", "reverse_sub", "min", "max",
};
const char *factors[] = {
- "one", "src_color", "src_alpha", "dst_alpha", "dst_color",
- "src_alpha_sat", "const_color", "const_alpha", "src1_color", "src1_alpha",
+ "", "one", "src_color", "src_alpha", "dst_alpha",
+ "dst_color", "src_alpha_sat", "const_color", "const_alpha", "src1_color",
+ "src1_alpha",
};
int ret;