nir: add implicit_sized_array 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:
committed by
Marge Bot
parent
f24e6a5062
commit
a18e06f694
@@ -444,6 +444,7 @@ nir_visitor::visit(ir_variable *ir)
|
||||
var->data.compact = false;
|
||||
var->data.used = ir->data.used;
|
||||
var->data.max_array_access = ir->data.max_array_access;
|
||||
var->data.implicit_sized_array = ir->data.implicit_sized_array;
|
||||
|
||||
switch(ir->data.mode) {
|
||||
case ir_var_auto:
|
||||
|
||||
@@ -606,6 +606,9 @@ typedef struct nir_variable {
|
||||
*/
|
||||
unsigned explicit_location : 1;
|
||||
|
||||
/* Was the array implicitly sized during linking */
|
||||
unsigned implicit_sized_array : 1;
|
||||
|
||||
/**
|
||||
* Highest element accessed with a constant array index
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user