diff options
author | Icecream95 <[email protected]> | 2020-06-06 15:39:22 +1200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-10 13:54:03 +0000 |
commit | 7534a31a11cbde2cd651592f0805c3f2b43e0c96 (patch) | |
tree | 9b998d54ca508c877e07aa1449c9ee24f8491255 | |
parent | 2f3d60c84bbad121b4507f39d50a9217ae6fc83a (diff) |
pan/mdg: Move search_var to earlier in midgard_compile.c
It will be needed by the new zs lowering.
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5065>
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 8865bda0973..ef549848956 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -253,6 +253,17 @@ midgard_nir_lower_fdot2(nir_shader *shader) return progress; } +static const nir_variable * +search_var(struct exec_list *vars, unsigned driver_loc) +{ + nir_foreach_variable(var, vars) { + if (var->data.driver_location == driver_loc) + return var; + } + + return NULL; +} + /* Flushes undefined values to zero */ static void @@ -1379,17 +1390,6 @@ emit_control_barrier(compiler_context *ctx) emit_mir_instruction(ctx, ins); } -static const nir_variable * -search_var(struct exec_list *vars, unsigned driver_loc) -{ - nir_foreach_variable(var, vars) { - if (var->data.driver_location == driver_loc) - return var; - } - - return NULL; -} - static unsigned mir_get_branch_cond(nir_src *src, bool *invert) { |