nir: Add nir_foreach_shader_in/out_variable helpers
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
This commit is contained in:

committed by
Marge Bot

parent
9bf8572222
commit
2956d53400
@@ -1141,7 +1141,7 @@ search_phi_bcsel(nir_ssa_scalar scalar, nir_ssa_scalar *buf, unsigned buf_size,
|
||||
static nir_variable *
|
||||
lookup_input(nir_shader *shader, unsigned driver_location)
|
||||
{
|
||||
nir_foreach_variable(var, &shader->inputs) {
|
||||
nir_foreach_shader_in_variable(var, shader) {
|
||||
if (driver_location == var->data.driver_location)
|
||||
return var;
|
||||
}
|
||||
|
Reference in New Issue
Block a user