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:
parent
b4d87a34c7
commit
3cdbc1e8c0
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue