nir: fix packing of nir_variable
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 6 Nov 2019 07:31:25 +0000 (08:31 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 6 Nov 2019 07:51:53 +0000 (08:51 +0100)
commitc0f76528ae237c9c1ddc6e4356aa9e0a86942069
treed9829628bf351e056cde8f5b23e11cbbdef2720e
parent0b3bd1a7c2d721de00670a69c1b7847b6c2214e8
nir: fix packing of nir_variable

The maximum number of descriptor sets is indeed 32 but without
the sign bit.

The maximum number of bindings for RADV is way larger, keep it
as 32-bit.

Fixes: 96e6ef80d93 ("nir: pack the rest of nir_variable::data")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/compiler/nir/nir.h