aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/compiler.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-13 09:27:16 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-14 16:57:24 -0700
commit03350eb8b809d369a6af884a41dca0804c22de69 (patch)
treec278dc8e770be0a1a1342da5dbfb4ab28ff7fa93 /src/panfrost/midgard/compiler.h
parentcf3bb10f51e28f775744e5c24b30c27b25c40fdb (diff)
pan/midgard: Add mir_ubo_shift helper
Different UBO reads have different shift requirements. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r--src/panfrost/midgard/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index e7b786dd7ac..942d288a326 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -441,6 +441,7 @@ bool mir_special_index(compiler_context *ctx, unsigned idx);
unsigned mir_use_count(compiler_context *ctx, unsigned value);
bool mir_is_written_before(compiler_context *ctx, midgard_instruction *ins, unsigned node);
unsigned mir_mask_of_read_components(midgard_instruction *ins, unsigned node);
+unsigned mir_ubo_shift(midgard_load_store_op op);
/* MIR printing */