mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
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:
parent
f24e6a5062
commit
a18e06f694
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue