nir: Add a new nir_var_mem_constant variable mode
Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6379>
This commit is contained in:
committed by
Marge Bot
parent
b9927c8c8d
commit
e4f07f8bdc
@@ -509,7 +509,8 @@ validate_deref_instr(nir_deref_instr *instr, validate_state *state)
|
||||
validate_assert(state, instr->mode == nir_var_mem_ubo ||
|
||||
instr->mode == nir_var_mem_ssbo ||
|
||||
instr->mode == nir_var_mem_shared ||
|
||||
instr->mode == nir_var_mem_global);
|
||||
instr->mode == nir_var_mem_global ||
|
||||
instr->mode == nir_var_mem_constant);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1336,7 +1337,8 @@ nir_validate_shader(nir_shader *shader, const char *when)
|
||||
nir_var_mem_ubo |
|
||||
nir_var_system_value |
|
||||
nir_var_mem_ssbo |
|
||||
nir_var_mem_shared;
|
||||
nir_var_mem_shared |
|
||||
nir_var_mem_constant;
|
||||
|
||||
exec_list_validate(&shader->variables);
|
||||
nir_foreach_variable_in_shader(var, shader)
|
||||
|
||||
Reference in New Issue
Block a user