panfrost: Use nir_foreach_variable_with_modes in pan_compile
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
This commit is contained in:
parent
94f0bae4de
commit
a61be312e2
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue