summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/compiler.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-27 15:50:55 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-30 15:50:24 -0700
commit01316719cf4494c9e354fcf7a67159ba978aa5e0 (patch)
treeea8674f90a1d4fc552f27f90f558f7823fcfeefc /src/panfrost/midgard/compiler.h
parent3f757425a4ec05f9fb27914bfc17661c2ea53af4 (diff)
pan/midgard: Expose mir_get/set_swizzle
The scheduler would like to use these. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r--src/panfrost/midgard/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index 68716f92b0b..084eddee5cb 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -477,6 +477,8 @@ nir_dest_index(compiler_context *ctx, nir_dest *dst)
/* MIR manipulation */
+unsigned mir_get_swizzle(midgard_instruction *ins, unsigned idx);
+void mir_set_swizzle(midgard_instruction *ins, unsigned idx, unsigned new);
void mir_rewrite_index(compiler_context *ctx, unsigned old, unsigned new);
void mir_rewrite_index_src(compiler_context *ctx, unsigned old, unsigned new);
void mir_rewrite_index_dst(compiler_context *ctx, unsigned old, unsigned new);