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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user