nir: add doubles component packing support
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 19 Jul 2016 05:40:14 +0000 (15:40 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 20 Jul 2016 23:10:53 +0000 (09:10 +1000)
commitcba6657d8ba57fddf72bbe3c96e8aee997a1527d
treeb0ffc5b382721d2e1509a2c3f986a70409e80546
parentad5dd39984467b29d20e03ec8bd26f6f1d2e97ad
nir: add doubles component packing support

This makes sure we give the correct driver location
for doubles when using component packing. Specifically
it handles packing a dvec3 with a double which is the
only packing scenario allowed which spans across two
locations.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/nir/nir_lower_io.c