mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 08:10:14 +01:00
freedreno/ir3: Use nir_foreach_variable
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com> Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
99597d033a
commit
8f55ebe802
1 changed files with 3 additions and 3 deletions
|
|
@ -2325,17 +2325,17 @@ emit_instructions(struct ir3_compile *ctx)
|
|||
}
|
||||
|
||||
/* Setup inputs: */
|
||||
foreach_list_typed(nir_variable, var, node, &ctx->s->inputs) {
|
||||
nir_foreach_variable(var, &ctx->s->inputs) {
|
||||
setup_input(ctx, var);
|
||||
}
|
||||
|
||||
/* Setup outputs: */
|
||||
foreach_list_typed(nir_variable, var, node, &ctx->s->outputs) {
|
||||
nir_foreach_variable(var, &ctx->s->outputs) {
|
||||
setup_output(ctx, var);
|
||||
}
|
||||
|
||||
/* Setup variables (which should only be arrays): */
|
||||
foreach_list_typed(nir_variable, var, node, &ctx->s->globals) {
|
||||
nir_foreach_variable(var, &ctx->s->globals) {
|
||||
declare_var(ctx, var);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue