gallium/ntt: Work around virglrenderer UIF handling bug.
authorEric Anholt <eric@anholt.net>
Thu, 7 Jan 2021 00:05:59 +0000 (16:05 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 8 Jan 2021 21:04:31 +0000 (21:04 +0000)
commit111e4be698a1940b05c1a9d0d8b269b96be75e1d
tree5c09b33830970aac274ddd7ab7fa1e66f375de56
parent470d806cc2a0213a6acda0ce64282bb223dec60a
gallium/ntt: Work around virglrenderer UIF handling bug.

Until just recently ("vrend: Fix TGSI UIF/IF behavior"), virgl does "if
(any(bvec4(src0)))" instead of "if (src0.x != 0)", despite the tgsi.rst
documentation and tgsi_exec agreeing on the second form.  It's harmless to
work around it, since apparently NTT was the only one to not have scalar
swizzled the if condition.

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8373>
src/gallium/auxiliary/nir/nir_to_tgsi.c