summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@collabora.com>2021-09-06 12:13:34 +0200
committerBoris Brezillon <boris.brezillon@collabora.com>2021-09-10 11:40:54 +0200
commitc0e43b844c5768e7b77fb0dcf10af5cbd9157d81 (patch)
treed615b84290002a083051d8e5341d6f5599e139ba
parent6f670bc35521e50fc3e4e9a95185a91e4347539e (diff)
panvk: Fix chan_size calculation in panvk_emit_blend()
Only the first channel was taken into account. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762>
-rw-r--r--src/panfrost/vulkan/panvk_vX_cs.c2
1 files changed, 1 insertions, 1 deletions
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);