radeonsi: do not assert when reserving bindless slot 0
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 23 Aug 2017 07:42:58 +0000 (09:42 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 23 Aug 2017 11:38:56 +0000 (13:38 +0200)
commit94cc01105ec70cc364d6cea3f909b0b04dcad7c1
tree26b6918e7c006dadadc22e7f5ce020ac80670e88
parentf4ec41ecc41dc17088475e4769c7a688dddfdb6f
radeonsi: do not assert when reserving bindless slot 0

When assertions were disabled, the compiler removed
the call to util_idalloc_alloc() and the first allocated
bindless slot was 0 which is invalid per the spec.

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