freedreno: Stop manually marking blit dst buffers as valid.
authorEmma Anholt <emma@anholt.net>
Tue, 22 Jun 2021 22:06:47 +0000 (15:06 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 30 Jun 2021 21:39:11 +0000 (21:39 +0000)
fd_batch_resource_write() does this already.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11544>

src/gallium/drivers/freedreno/a5xx/fd5_blitter.c
src/gallium/drivers/freedreno/a6xx/fd6_blitter.c

index ab33248..fe2bba5 100644 (file)
@@ -471,7 +471,6 @@ fd5_blitter_blit(struct fd_context *ctx,
       emit_blit(batch->draw, info);
    }
 
-   fd_resource(info->dst.resource)->valid = true;
    fd_batch_needs_flush(batch);
 
    fd_batch_flush(batch);
index be45036..7295d65 100644 (file)
@@ -960,8 +960,6 @@ handle_rgba_blit(struct fd_context *ctx,
 
    fd_batch_unlock_submit(batch);
 
-   dst->valid = true;
-
    fd_batch_flush(batch);
    fd_batch_reference(&batch, NULL);