mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 01:40:14 +01:00
nir/prog: Use nir_foreach_variable
Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
5d954fd5cb
commit
635daef76e
1 changed files with 1 additions and 1 deletions
|
|
@ -923,7 +923,7 @@ ptn_add_output_stores(struct ptn_compile *c)
|
|||
{
|
||||
nir_builder *b = &c->build;
|
||||
|
||||
foreach_list_typed(nir_variable, var, node, &b->shader->outputs) {
|
||||
nir_foreach_variable(var, &b->shader->outputs) {
|
||||
nir_intrinsic_instr *store =
|
||||
nir_intrinsic_instr_create(b->shader, nir_intrinsic_store_var);
|
||||
store->num_components = glsl_get_vector_elements(var->type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue