panfrost: Include mask in replace blend shader name
Helpful to disambiguate blend shaders with different colour masks used for the same format/replace operation. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17841>
This commit is contained in:
committed by
Marge Bot
parent
378b7e37f4
commit
1d5aad9db4
@@ -531,7 +531,11 @@ get_equation_str(const struct pan_blend_rt_state *rt_state,
|
||||
int ret;
|
||||
|
||||
if (!rt_state->equation.blend_enable) {
|
||||
ret = snprintf(str, len, "replace");
|
||||
ret = snprintf(str, len, "replace(%s%s%s%s)",
|
||||
(rt_state->equation.color_mask & 1) ? "R" : "",
|
||||
(rt_state->equation.color_mask & 2) ? "G" : "",
|
||||
(rt_state->equation.color_mask & 4) ? "B" : "",
|
||||
(rt_state->equation.color_mask & 8) ? "A" : "");
|
||||
assert(ret > 0);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user