pan/midgard: Extend swizzle packing for vec4/16-bit
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 31 Oct 2019 18:56:45 +0000 (14:56 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 4 Nov 2019 20:36:08 +0000 (15:36 -0500)
commit762623381df3f6b9ae02b9c1c4528f867a93d425
tree87a20026cc05410177ced87426a097331453e956
parentbf5508f7b9698d3aa657b810febbf0e97e3b7b20
pan/midgard: Extend swizzle packing for vec4/16-bit

We would like to pack not just xyzw swizzles but also efgh swizzles.
This should work for vec4/16-bit. More work will be needed to pack
swizzles for vec8/16-bit and even more work for 8-bit, of course.

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