mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
nir: copy explicit_invariant flag to nir vars
This will be used in the following patch. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25371>
This commit is contained in:
parent
af2a96bb37
commit
337c32cb3a
2 changed files with 8 additions and 0 deletions
|
|
@ -549,6 +549,7 @@ nir_visitor::visit(ir_variable *ir)
|
|||
var->data.patch = ir->data.patch;
|
||||
var->data.how_declared = get_nir_how_declared(ir->data.how_declared);
|
||||
var->data.invariant = ir->data.invariant;
|
||||
var->data.explicit_invariant = ir->data.explicit_invariant;
|
||||
var->data.location = ir->data.location;
|
||||
var->data.must_be_shader_input = ir->data.must_be_shader_input;
|
||||
var->data.stream = ir->data.stream;
|
||||
|
|
|
|||
|
|
@ -496,6 +496,13 @@ typedef struct nir_variable {
|
|||
unsigned patch : 1;
|
||||
unsigned invariant : 1;
|
||||
|
||||
/**
|
||||
* Was an 'invariant' qualifier explicitly set in the shader?
|
||||
*
|
||||
* This is used to cross validate glsl qualifiers.
|
||||
*/
|
||||
unsigned explicit_invariant:1;
|
||||
|
||||
/**
|
||||
* Is the variable a ray query?
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue