panfrost: Don't add blit context BOs twice

The transient_bo has already been added to the BO list, no need to call
panfrost_batch_add_bo() a second time on the same BO.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11695>
This commit is contained in:
Boris Brezillon 2021-06-02 09:49:24 +02:00 committed by Marge Bot
parent b4d87a34c7
commit 3cdbc1e8c0
1 changed files with 0 additions and 8 deletions

View File

@ -91,14 +91,6 @@ static void
panfrost_blit_add_ctx_bos(struct panfrost_batch *batch,
struct pan_blit_context *ctx)
{
if (ctx->pool.transient_bo) {
panfrost_batch_add_bo(batch, ctx->pool.transient_bo,
PAN_BO_ACCESS_SHARED |
PAN_BO_ACCESS_READ |
PAN_BO_ACCESS_VERTEX_TILER |
PAN_BO_ACCESS_FRAGMENT);
}
util_dynarray_foreach(&ctx->pool.bos, struct panfrost_bo *, bo) {
panfrost_batch_add_bo(batch, *bo,
PAN_BO_ACCESS_SHARED |