From a61be312e218231e2090ac6db4d7e1d5aca4c5d2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 21 Jul 2020 18:13:34 -0500 Subject: [PATCH] panfrost: Use nir_foreach_variable_with_modes in pan_compile Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_assemble.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_assemble.c b/src/gallium/drivers/panfrost/pan_assemble.c index 64e67ae463d..4a3bf793913 100644 --- a/src/gallium/drivers/panfrost/pan_assemble.c +++ b/src/gallium/drivers/panfrost/pan_assemble.c @@ -274,10 +274,10 @@ panfrost_shader_compile(struct panfrost_context *ctx, /* Record the varying mapping for the command stream's bookkeeping */ - struct exec_list *l_varyings = - stage == MESA_SHADER_VERTEX ? &s->outputs : &s->inputs; + nir_variable_mode varying_mode = + stage == MESA_SHADER_VERTEX ? nir_var_shader_out : nir_var_shader_in; - nir_foreach_variable(var, l_varyings) { + nir_foreach_variable_with_modes(var, s, varying_mode) { unsigned loc = var->data.driver_location; unsigned sz = glsl_count_attribute_slots(var->type, FALSE); -- 2.30.2