i965: add helpers for creating component layout swizzle
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 22 Jun 2016 23:32:39 +0000 (09:32 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 21 Jul 2016 02:06:11 +0000 (12:06 +1000)
commit4b57b53f85a7b125fa19508b5dcdd92b9e00c25f
treecdb7066fbf754ab504295ea2c956879f270f8c4f
parentd2b4b16589b1206b20aea638f8b0c7cf740b3a4f
i965: add helpers for creating component layout swizzle

This will be used to swizzle components to the beginning or end
of the vector based on the component layout qualifier and whether
we are doing a load or store.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/mesa/drivers/dri/i965/brw_reg.h