mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
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:
parent
6f670bc355
commit
c0e43b844c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue