pan/midgard: Fix vector->scalar swizzles
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 26 Jul 2019 13:30:16 +0000 (06:30 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 26 Jul 2019 15:37:08 +0000 (08:37 -0700)
commite4038f944535c5c2e917ecff178fc27f0fc6d79d
tree4d1129468c867007c12f0704dab7f47b1667aada
parent10324095d2ee0e897a1bc41762d8fd8614ecd634
pan/midgard: Fix vector->scalar swizzles

The swizzle should be taken on the masked component, rather than
unconditionally X.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_emit.c