From: Alyssa Rosenzweig Date: Wed, 24 Jul 2019 21:52:57 +0000 (-0700) Subject: pan/midgard: Add OP_R27_ONLY helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f55a760d0c10cefe4725ab116c53272dc604d648;p=mesa.git 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 --- 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 \