nir: move data.descriptor_set above data.index for better packing
authorMarek Olšák <marek.olsak@amd.com>
Thu, 7 Nov 2019 23:02:06 +0000 (18:02 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 19 Nov 2019 23:20:10 +0000 (18:20 -0500)
4 bytes down

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir.h

index 31d611a620d34fb73feadf199fd1b90a352a4028..29ef2ce0d7d9a9ef8881a08457f816c43fd08c0d 100644 (file)
@@ -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.