Module: Mesa
Branch: master
Commit: 7fb4b6f27056679e0271ba90dabf7e8a7bfbd181
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7fb4b6f27056679e0271ba90dabf7e8a7bfbd181

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Aug 23 17:10:56 2017 +0200

radeonsi: fix wrong assertion in si_init_bindless_descriptors()

Bad mistake, sorry.

Signed-off-by: Samuel Pitoiset <[email protected]>

---

 src/gallium/drivers/radeonsi/si_descriptors.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c 
b/src/gallium/drivers/radeonsi/si_descriptors.c
index cc897c9817..b968a5057a 100644
--- a/src/gallium/drivers/radeonsi/si_descriptors.c
+++ b/src/gallium/drivers/radeonsi/si_descriptors.c
@@ -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)

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to