Mesa (main): i915g: Check for negate/swizzle on TGSI_OPCODE_KILL_IF's src.yzw.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 1 21:07:21 UTC 2021


Module: Mesa
Branch: main
Commit: ebe5626de695d8055c64a278d7ec7e369fcd9823
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ebe5626de695d8055c64a278d7ec7e369fcd9823

Author: Emma Anholt <emma at anholt.net>
Date:   Fri Oct  1 12:26:59 2021 -0700

i915g: Check for negate/swizzle on TGSI_OPCODE_KILL_IF's src.yzw.

Caught by imirkin while debugging #4986.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13133>

---

 src/gallium/drivers/i915/i915_fpc_translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c
index dc1832aa76e..93e95c16ac0 100644
--- a/src/gallium/drivers/i915/i915_fpc_translate.c
+++ b/src/gallium/drivers/i915/i915_fpc_translate.c
@@ -521,7 +521,7 @@ i915_translate_instruction(struct i915_fp_compile *p,
                       0,                   /* sampler */
                       src0,                /* coord*/
                       T0_TEXKILL,          /* opcode */
-                      1);                  /* num_coord */
+                      4);                  /* num_coord */
       break;
 
    case TGSI_OPCODE_KILL:



More information about the mesa-commit mailing list