i965/vec4: Skip swizzle to subnr in 3src instructions with DF operands
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 1 Jun 2016 06:35:37 +0000 (08:35 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:51 +0000 (11:26 +0100)
commit83dcd146020f5e54d1e0a46c585ed672e75abaa0
treeca2918d9a5761c5e95bd09e803c94a792515d05a
parent49be3abbe7afd64f9e3435e9a9e341e30acacb52
i965/vec4: Skip swizzle to subnr in 3src instructions with DF operands

We make scalar sources in 3src instructions use subnr instead of
swizzles because they don't really use swizzles.

With doubles it is more complicated because we use vstride=0 in
more scenarios in which they don't produce scalar regions. Also
RepCtrl=1 is not allowed with 64-bit operands, so we should avoid
this.

v2: Fix typo (Matt)

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp