summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-11-07 18:02:06 -0500
committerMarek Olšák <[email protected]>2019-11-19 18:20:10 -0500
commitec7d37c9c08d6b91f64e0b0f57c816903e53b1eb (patch)
treebad375e388367c267804b27774773bd32c54c8d9 /src
parentb160acb9f57bd78e395a839408d3b7e6c4cd7458 (diff)
nir: move data.descriptor_set above data.index for better packing
4 bytes down Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 31d611a620d..29ef2ce0d7d 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -437,14 +437,14 @@ typedef struct nir_variable {
enum gl_access_qualifier access:8;
/**
- * output index for dual source blending.
+ * Descriptor set binding for sampler or UBO.
*/
- unsigned index;
+ unsigned descriptor_set:5;
/**
- * Descriptor set binding for sampler or UBO.
+ * output index for dual source blending.
*/
- unsigned descriptor_set:5;
+ unsigned index;
/**
* Initial binding point for a sampler or UBO.