panfrost: Only add resource checksum BOs to the batch once
authorIcecream95 <ixn@disroot.org>
Mon, 8 Feb 2021 09:50:27 +0000 (22:50 +1300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 12 Apr 2021 23:53:41 +0000 (23:53 +0000)
commit1b41707bbcc623419664137e5b6ce3b8d767ab2d
tree5b5f4bf4e816ecb10774115ceb24a6f7bdfb1d16
parent1aeebac4e6b688f8697b6f7f6b8d2303bb92d633
panfrost: Only add resource checksum BOs to the batch once

Previously panfrost_batch_add_bo was called MAX_MIP_LEVELS times on
the same batch.

Fixes: cbf68b21fb2 ("panfrost: Move checksum_bo to panfrost_resource")

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10158>
src/gallium/drivers/panfrost/pan_job.c