Module: Mesa Branch: master Commit: 1b41707bbcc623419664137e5b6ce3b8d767ab2d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b41707bbcc623419664137e5b6ce3b8d767ab2d
Author: Icecream95 <[email protected]> Date: Mon Feb 8 22:50:27 2021 +1300 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10158> --- src/gallium/drivers/panfrost/pan_job.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index eef3501a6ef..98bdb982736 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -561,9 +561,8 @@ panfrost_batch_add_resource_bos(struct panfrost_batch *batch, { panfrost_batch_add_bo(batch, rsrc->bo, flags); - for (unsigned i = 0; i < MAX_MIP_LEVELS; i++) - if (rsrc->checksum_bo) - panfrost_batch_add_bo(batch, rsrc->checksum_bo, flags); + if (rsrc->checksum_bo) + panfrost_batch_add_bo(batch, rsrc->checksum_bo, flags); if (rsrc->separate_stencil) panfrost_batch_add_bo(batch, rsrc->separate_stencil->bo, flags); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
