Mesa (main): panvk: Fix chan_size calculation in panvk_emit_blend()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Sep 10 10:04:57 UTC 2021
Module: Mesa
Branch: main
Commit: c0e43b844c5768e7b77fb0dcf10af5cbd9157d81
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0e43b844c5768e7b77fb0dcf10af5cbd9157d81
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Mon Sep 6 12:13:34 2021 +0200
panvk: Fix chan_size calculation in panvk_emit_blend()
Only the first channel was taken into account.
Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762>
---
src/panfrost/vulkan/panvk_vX_cs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panfrost/vulkan/panvk_vX_cs.c b/src/panfrost/vulkan/panvk_vX_cs.c
index 2f431dd67bc..5c239ce5d71 100644
--- a/src/panfrost/vulkan/panvk_vX_cs.c
+++ b/src/panfrost/vulkan/panvk_vX_cs.c
@@ -635,7 +635,7 @@ panvk_per_arch(emit_blend)(const struct panvk_device *dev,
util_format_description(rts->format);
unsigned chan_size = 0;
for (unsigned i = 0; i < format_desc->nr_channels; i++)
- chan_size = MAX2(format_desc->channel[0].size, chan_size);
+ chan_size = MAX2(format_desc->channel[i].size, chan_size);
pan_blend_to_fixed_function_equation(blend->rts[rt].equation,
&cfg.bifrost.equation);
More information about the mesa-commit
mailing list