From 8bf167c9e9599f2040522da28e7ca93665b9ab87 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 19 Apr 2018 13:09:51 -0700 Subject: [PATCH] iris: vma - fix assert --- src/gallium/drivers/iris/iris_bufmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2