summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_opt_invert.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-10-26 14:06:17 -0400
committerAlyssa Rosenzweig <[email protected]>2019-11-01 01:01:47 +0000
commit70072a20e0086ad2d3714216a2b8fb4a97776385 (patch)
treea57dc18b5ebdcb9a852832d9f621b296790ccaaf /src/panfrost/midgard/midgard_opt_invert.c
parente7fd14ca8ac29406e2873c0f33837a8b7283b55e (diff)
pan/midgard: Refactor swizzles
Rather than having hw-specific swizzles encoded directly in the instructions, have a unified swizzle arary so we can manipulate swizzles generically. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_opt_invert.c')
-rw-r--r--src/panfrost/midgard/midgard_opt_invert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_opt_invert.c b/src/panfrost/midgard/midgard_opt_invert.c
index 3a4c455877c..ae91b2940aa 100644
--- a/src/panfrost/midgard/midgard_opt_invert.c
+++ b/src/panfrost/midgard/midgard_opt_invert.c
@@ -41,6 +41,7 @@ midgard_lower_invert(compiler_context *ctx, midgard_block *block)
.type = TAG_ALU_4,
.mask = ins->mask,
.src = { temp, ~0, ~0 },
+ .swizzle = SWIZZLE_IDENTITY,
.dest = ins->dest,
.has_inline_constant = true,
.alu = {
@@ -50,7 +51,7 @@ midgard_lower_invert(compiler_context *ctx, midgard_block *block)
.dest_override = midgard_dest_override_none,
.outmod = midgard_outmod_int_wrap,
.src1 = vector_alu_srco_unsigned(blank_alu_src),
- .src2 = vector_alu_srco_unsigned(zero_alu_src)
+ .src2 = vector_alu_srco_unsigned(blank_alu_src)
},
};