summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-24 14:52:57 -0700
committerAlyssa Rosenzweig <[email protected]>2019-07-25 06:37:22 -0700
commitf55a760d0c10cefe4725ab116c53272dc604d648 (patch)
treea30c84e8361a34a6ab844d1a32bcf0048db858a8
parent233c0faaddd1c9039083af1536aeba6eae01a15f (diff)
pan/midgard: Add OP_R27_ONLY helper
While load/store ops like st_vary can take an argument in either r26/r27, ops like those for perspective projection must specifically take their argument in r27. Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r--src/panfrost/midgard/helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h
index 81d10936201..8b3e417a56d 100644
--- a/src/panfrost/midgard/helpers.h
+++ b/src/panfrost/midgard/helpers.h
@@ -46,6 +46,11 @@
op == midgard_op_st_cubemap_coords \
)
+#define OP_IS_R27_ONLY(op) ( \
+ op == midgard_op_ldst_perspective_division_z || \
+ op == midgard_op_ldst_perspective_division_w \
+ )
+
#define OP_IS_MOVE(op) ( \
op == midgard_alu_op_fmov || \
op == midgard_alu_op_imov \