mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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: 96e6ef80d9 ("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>
This commit is contained in:
parent
0b3bd1a7c2
commit
c0f76528ae
1 changed files with 2 additions and 2 deletions
|
|
@ -438,14 +438,14 @@ typedef struct nir_variable {
|
|||
/**
|
||||
* Descriptor set binding for sampler or UBO.
|
||||
*/
|
||||
int descriptor_set:5;
|
||||
unsigned descriptor_set:5;
|
||||
|
||||
/**
|
||||
* Initial binding point for a sampler or UBO.
|
||||
*
|
||||
* For array types, this represents the binding point for the first element.
|
||||
*/
|
||||
unsigned binding:5;
|
||||
unsigned binding;
|
||||
|
||||
/**
|
||||
* Storage location of the base of this variable
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue