nir: add variable field from_ssbo_unsized_array
This will be used for validation in following patches 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
ab801a1a27
commit
c46827d52a
@@ -445,6 +445,7 @@ nir_visitor::visit(ir_variable *ir)
|
||||
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;
|
||||
var->data.from_ssbo_unsized_array = ir->data.from_ssbo_unsized_array;
|
||||
|
||||
switch(ir->data.mode) {
|
||||
case ir_var_auto:
|
||||
|
||||
@@ -656,6 +656,11 @@ typedef struct nir_variable {
|
||||
*/
|
||||
unsigned from_named_ifc_block : 1;
|
||||
|
||||
/**
|
||||
* Unsized array buffer variable.
|
||||
*/
|
||||
unsigned from_ssbo_unsized_array : 1;
|
||||
|
||||
/**
|
||||
* Non-zero if the variable must be a shader input. This is useful for
|
||||
* constraints on function parameters.
|
||||
|
||||
Reference in New Issue
Block a user