diff options
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_batch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c index 6c05fbaa74d..ff42d6c138c 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch.c +++ b/src/gallium/drivers/freedreno/freedreno_batch.c @@ -468,8 +468,10 @@ fd_batch_resource_used(struct fd_batch *batch, struct fd_resource *rsc, bool wri flush_write_batch(rsc); } - if (rsc->batch_mask & (1 << batch->idx)) + if (rsc->batch_mask & (1 << batch->idx)) { + debug_assert(_mesa_set_search(batch->resources, rsc)); return; + } debug_assert(!_mesa_set_search(batch->resources, rsc)); |