diff options
-rw-r--r-- | src/intel/compiler/brw_vec4.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp index 0b92ba704e5..4bb774bf10e 100644 --- a/src/intel/compiler/brw_vec4.cpp +++ b/src/intel/compiler/brw_vec4.cpp @@ -1071,6 +1071,13 @@ vec4_instruction::can_reswizzle(const struct gen_device_info *devinfo, if (devinfo->gen == 6 && is_math() && swizzle != BRW_SWIZZLE_XYZW) return false; + /* Don't touch MACH - it uses the accumulator results from an earlier + * MUL - so we'd need to reswizzle both. We don't do that, so just + * avoid it entirely. + */ + if (opcode == BRW_OPCODE_MACH) + return false; + if (!can_do_writemask(devinfo) && dst_writemask != WRITEMASK_XYZW) return false; |