diff options
author | Rob Clark <[email protected]> | 2018-10-18 09:05:52 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-10-25 18:38:53 -0400 |
commit | d53074d3f10dbeffb5b991dffd19b2c17f2711fb (patch) | |
tree | a3ae5ec1b1d62478e5b5dd836ca6616323c0ee4e /src/gallium/drivers/freedreno | |
parent | edf38019a070b0d2ce66160fe9ff0a94ce137539 (diff) |
freedreno: add useful assert
Would have been useful to catch the problem fixed in
8e798e28f736e22e9e1e4534ab42a36cde14b142
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-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)); |