From 2008ec8a432c79f99e2199888e4844e884ddf02e Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 6 Jul 2021 12:41:41 -0700 Subject: [PATCH] i915g: Fix writemasking of SEQ/SNE/SSG. Part-of: --- src/gallium/drivers/i915/i915_fpc_translate.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 745252bef11..bbca6bd8887 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -708,10 +708,10 @@ i915_translate_instruction(struct i915_fp_compile *p, i915_emit_arith(p, A0_SGE, tmp, A0_DEST_CHANNEL_ALL, 0, src0, src1, 0); i915_emit_arith(p, A0_SGE, get_result_vector(p, &inst->Dst[0]), - A0_DEST_CHANNEL_ALL, 0, src1, src0, 0); + get_result_flags(inst), 0, src1, src0, 0); i915_emit_arith(p, A0_MUL, get_result_vector(p, &inst->Dst[0]), - A0_DEST_CHANNEL_ALL, 0, + get_result_flags(inst), 0, get_result_vector(p, &inst->Dst[0]), tmp, 0); break; @@ -775,10 +775,10 @@ i915_translate_instruction(struct i915_fp_compile *p, i915_emit_arith(p, A0_SLT, tmp, A0_DEST_CHANNEL_ALL, 0, src0, src1, 0); i915_emit_arith(p, A0_SLT, get_result_vector(p, &inst->Dst[0]), - A0_DEST_CHANNEL_ALL, 0, src1, src0, 0); + get_result_flags(inst), 0, src1, src0, 0); i915_emit_arith(p, A0_ADD, get_result_vector(p, &inst->Dst[0]), - A0_DEST_CHANNEL_ALL, 0, + get_result_flags(inst), 0, get_result_vector(p, &inst->Dst[0]), tmp, 0); break; @@ -791,11 +791,11 @@ i915_translate_instruction(struct i915_fp_compile *p, swizzle(src0, ZERO, ZERO, ZERO, ZERO), 0); i915_emit_arith(p, A0_SLT, get_result_vector(p, &inst->Dst[0]), - A0_DEST_CHANNEL_ALL, 0, + get_result_flags(inst), 0, swizzle(src0, ZERO, ZERO, ZERO, ZERO), src0, 0); i915_emit_arith( - p, A0_ADD, get_result_vector(p, &inst->Dst[0]), A0_DEST_CHANNEL_ALL, 0, + p, A0_ADD, get_result_vector(p, &inst->Dst[0]), get_result_flags(inst), 0, get_result_vector(p, &inst->Dst[0]), negate(tmp, 1, 1, 1, 1), 0); break;