Mesa (master): nir: move data.descriptor_set above data.index for better packing
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 19 23:22:00 UTC 2019
Module: Mesa
Branch: master
Commit: ec7d37c9c08d6b91f64e0b0f57c816903e53b1eb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec7d37c9c08d6b91f64e0b0f57c816903e53b1eb
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Nov 7 18:02:06 2019 -0500
nir: move data.descriptor_set above data.index for better packing
4 bytes down
Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>
---
src/compiler/nir/nir.h | 8 ++++----
1 file 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.
More information about the mesa-commit
mailing list