radeonsi/gfx8: use the proper dcc clear size
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 5 Jan 2022 15:06:25 +0000 (16:06 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 6 Jan 2022 08:25:57 +0000 (09:25 +0100)
commitd84e0096a5daa7c8bdd29c16b4bb15e7d062d80e
tree7f9d2cd45d4071c18ca5b1c0930115c4043debd9
parent21047a4a06b7901f867072b07514729e15da76c3
radeonsi/gfx8: use the proper dcc clear size

dcc_fast_clear_size is assigned using addrlib's dccFastClearSize, which
is computed using the whole surface size (including layers) so we don't
need to multiply dcc_fast_clear_size by num_layers.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4530
Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14409>
src/gallium/drivers/radeonsi/si_clear.c