From ec7d37c9c08d6b91f64e0b0f57c816903e53b1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 7 Nov 2019 18:02:06 -0500 Subject: [PATCH] nir: move data.descriptor_set above data.index for better packing 4 bytes down Reviewed-by: Connor Abbott --- src/compiler/nir/nir.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 @@ -436,16 +436,16 @@ typedef struct nir_variable { */ enum gl_access_qualifier access:8; - /** - * output index for dual source blending. - */ - unsigned index; - /** * Descriptor set binding for sampler or UBO. */ unsigned descriptor_set:5; + /** + * output index for dual source blending. + */ + unsigned index; + /** * Initial binding point for a sampler or UBO. *