virgl: Move double operands to a temp to avoid double-swizzling bugs.
authorEmma Anholt <emma@anholt.net>
Mon, 10 Jan 2022 19:34:01 +0000 (11:34 -0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 14 Feb 2022 22:06:37 +0000 (22:06 +0000)
commit036d7172c24a18eca653fa95eb40b70719ce4d7e
tree189722619003e311a98a7386d98aa6e5ef848f4e
parente643cb40a3f762148e4ab79767a2bc7cd49a38a9
virgl: Move double operands to a temp to avoid double-swizzling bugs.

virglrenderer applies the swizzle when packing doubles.  Since we use scan
now, we can just use the file count for texture detection.

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15014>
src/gallium/drivers/virgl/virgl_tgsi.c