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:
Italo Nicola 2023-08-14 02:32:45 +00:00 committed by Marge Bot
parent bfa4125308
commit cea0cc5b16

View file

@ -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;