nir: add matrix_layout to nir_variable data

This will be used by the following patch.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4623>
This commit is contained in:
Timothy Arceri
2020-03-13 14:18:27 +11:00
committed by Marge Bot
parent f27c707585
commit c19ebca308
2 changed files with 6 additions and 0 deletions

View File

@@ -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;

View File

@@ -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.