panfrost/midgard: Fix swizzle for store instructions
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 16 Jan 2020 10:20:06 +0000 (11:20 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jan 2020 12:54:31 +0000 (12:54 +0000)
commit6af63c939bf0b7db2ad918cab953cab637806f94
tree21c2588bd7628fd4a68deefd9df3bfd9753e1f1d
parentbe95c816a7d27e3dc29bc75878e0857f447d804a
panfrost/midgard: Fix swizzle for store instructions

The current logic considers that the nir_intrinsic_component(store_intr)
encodes the source components start, but it actually encodes the
destination one. Source component offset adjustment is taken care of in
install_registers_instr(), when offset_swizzle() is called.

This fixes dEQP-GLES2.functional.shaders.random.all_features.fragment.45
when PAN_MESA_DEBUG=deqp (looks like exposing GLES3 features has an
impact on the varyings layout).

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3429>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3429>
src/panfrost/midgard/midgard_compile.c