mirror of https://gitlab.freedesktop.org/mesa/mesa
nir: add max_array_access data field
Will be used in following patches for glsl linking validation. Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28538>
This commit is contained in:
parent
acbf3ad1fb
commit
f24e6a5062
|
@ -443,6 +443,7 @@ nir_visitor::visit(ir_variable *ir)
|
|||
var->data.from_named_ifc_block = ir->data.from_named_ifc_block;
|
||||
var->data.compact = false;
|
||||
var->data.used = ir->data.used;
|
||||
var->data.max_array_access = ir->data.max_array_access;
|
||||
|
||||
switch(ir->data.mode) {
|
||||
case ir_var_auto:
|
||||
|
|
|
@ -606,6 +606,13 @@ typedef struct nir_variable {
|
|||
*/
|
||||
unsigned explicit_location : 1;
|
||||
|
||||
/**
|
||||
* Highest element accessed with a constant array index
|
||||
*
|
||||
* Not used for non-array variables. -1 is never accessed.
|
||||
*/
|
||||
int max_array_access;
|
||||
|
||||
/**
|
||||
* Is this varying used by transform feedback?
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue