aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/midgard/midgard_ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/panfrost/midgard/midgard_ops.h')
-rw-r--r--src/gallium/drivers/panfrost/midgard/midgard_ops.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_ops.h b/src/gallium/drivers/panfrost/midgard/midgard_ops.h
index 78b999a8dc6..64c91a5bcac 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_ops.h
+++ b/src/gallium/drivers/panfrost/midgard/midgard_ops.h
@@ -53,8 +53,9 @@ midgard_is_integer_out_op(int op)
}
/* Determines effective writemask, taking quirks and expansion into account */
+
static inline unsigned
-effective_writemask(midgard_vector_alu *alu)
+effective_writemask(midgard_vector_alu *alu, unsigned existing_mask)
{
/* Channel count is off-by-one to fit in two-bits (0 channel makes no
* sense) */
@@ -66,9 +67,7 @@ effective_writemask(midgard_vector_alu *alu)
if (channel_count)
return (1 << channel_count) - 1;
- /* Otherwise, just squeeze the existing mask */
- return squeeze_writemask(alu->mask);
-}
-
+ return existing_mask;
+};