Mesa (main): i915g: Fix writemasking of SEQ/SNE/SSG.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 7 23:56:25 UTC 2021
Module: Mesa
Branch: main
Commit: 2008ec8a432c79f99e2199888e4844e884ddf02e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2008ec8a432c79f99e2199888e4844e884ddf02e
Author: Emma Anholt <emma at anholt.net>
Date: Tue Jul 6 12:41:41 2021 -0700
i915g: Fix writemasking of SEQ/SNE/SSG.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11744>
---
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;
More information about the mesa-commit
mailing list