From: Samuel Pitoiset Date: Wed, 23 Aug 2017 15:10:56 +0000 (+0200) Subject: radeonsi: fix wrong assertion in si_init_bindless_descriptors() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fb4b6f27056679e0271ba90dabf7e8a7bfbd181;p=mesa.git radeonsi: fix wrong assertion in si_init_bindless_descriptors() Bad mistake, sorry. Signed-off-by: Samuel Pitoiset --- diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index cc897c9817e..b968a5057ac 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)