mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
panfrost: fix invalid memory access in get_equation_str()
Fixes: f55efb4ae6 ("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>
This commit is contained in:
parent
bfa4125308
commit
cea0cc5b16
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue