From c19ebca308f30d09949ca66cc10ea63592fe98cf Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 13 Mar 2020 14:18:27 +1100 Subject: [PATCH] nir: add matrix_layout to nir_variable data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This will be used by the following patch. Reviewed-by: Alejandro Piñeiro Part-of: --- src/compiler/glsl/glsl_to_nir.cpp | 1 + src/compiler/nir/nir.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 2043ea8d8ba..8ef74066925 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -464,6 +464,7 @@ nir_visitor::visit(ir_variable *ir) var->data.precision = ir->data.precision; var->data.explicit_location = ir->data.explicit_location; + var->data.matrix_layout = ir->data.matrix_layout; var->data.from_named_ifc_block = ir->data.from_named_ifc_block; var->data.compact = false; diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index c76d009bf8c..b9a5637e68e 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -439,6 +439,11 @@ typedef struct nir_variable { */ unsigned explicit_offset:1; + /** + * Layout of the matrix. Uses glsl_matrix_layout values. + */ + unsigned matrix_layout:2; + /** * Non-zero if this variable was created by lowering a named interface * block. -- 2.30.2