radeonsi: fix wrong assertion in si_init_bindless_descriptors()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 23 Aug 2017 15:10:56 +0000 (17:10 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 23 Aug 2017 15:13:44 +0000 (17:13 +0200)
Bad mistake, sorry.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/radeonsi/si_descriptors.c

index cc897c9817ed3c4724063047fd80a3aa28370ee2..b968a5057acdd9e03f4418a1858bd3b3561a9b0c 100644 (file)
@@ -2195,7 +2195,7 @@ static void si_init_bindless_descriptors(struct si_context *sctx,
 
        /* Reserve slot 0 because it's an invalid handle for bindless. */
        desc_slot = util_idalloc_alloc(&sctx->bindless_used_slots);
-       assert(desc_slot != 0);
+       assert(desc_slot == 0);
 }
 
 static void si_release_bindless_descriptors(struct si_context *sctx)