i915g: Fix undefined results for TGSI_OPCODE_KILL
authorEmma Anholt <emma@anholt.net>
Tue, 18 May 2021 19:27:34 +0000 (12:27 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 May 2021 23:12:12 +0000 (23:12 +0000)
commitd8a1d419520a812e4b00c0ebb2e5c419eb0d79ca
treef0ed921fa4bbb14758a3a1041e7650383571b845
parentfc3d5bebf22f58391789437b7d3301149982de68
i915g: Fix undefined results for TGSI_OPCODE_KILL

The swizzle() requires a proper ureg with the 0/1 swizzle fields filled
in, or our ONE swizzles end up reading .x instead.  This meant that we
were killing based on the incoming value of R0.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10874>
src/gallium/drivers/i915/ci/deqp-i915-g33-flakes.txt
src/gallium/drivers/i915/ci/piglit-i915-g33-flakes.txt [deleted file]
src/gallium/drivers/i915/i915_fpc_translate.c