From: Kenneth Graunke Date: Thu, 19 Apr 2018 20:09:51 +0000 (-0700) Subject: iris: vma - fix assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bf167c9e9599f2040522da28e7ca93665b9ab87;p=mesa.git iris: vma - fix assert --- diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 50abf901f37..023d9720558 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -325,7 +325,7 @@ bucket_vma_free(struct bo_cache_bucket *bucket, } /* Set the bit to return the memory. */ - assert((node->bitmap & (1ull << bit)) != 0ull); + assert((node->bitmap & (1ull << bit)) == 0ull); node->bitmap |= 1ull << bit; /* The block might be entirely free now, and if so, we could return it