i915g: Fix writemasking of SEQ/SNE/SSG.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11744>
This commit is contained in:
Emma Anholt 2021-07-06 12:41:41 -07:00 committed by Marge Bot
parent a2c92da9a1
commit 2008ec8a43
1 changed files with 6 additions and 6 deletions

View File

@ -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;