aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-11-06 08:31:25 +0100
committerSamuel Pitoiset <[email protected]>2019-11-06 08:51:53 +0100
commitc0f76528ae237c9c1ddc6e4356aa9e0a86942069 (patch)
treed9829628bf351e056cde8f5b23e11cbbdef2720e /src/compiler
parent0b3bd1a7c2d721de00670a69c1b7847b6c2214e8 (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 0dc604cce41..942e647f94c 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -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