ac/nir: expand 64-bit vec3 loads to fix shuffling.
authorDave Airlie <airlied@redhat.com>
Mon, 30 Apr 2018 02:45:14 +0000 (12:45 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Apr 2018 19:58:14 +0000 (05:58 +1000)
commit8d3529872c940c263fb879e1cd358965dcce3a90
tree48daa6cdd76339c6f6aa29f52660a7e3d04a8de8
parentbde12f75e1de264319a8102710cc8fe306d44ef8
ac/nir: expand 64-bit vec3 loads to fix shuffling.

If loading 64-bit vec3 values, a 4 component load would be followed
by a 2 component load and the resulting shuffle would fail as it
requires 2 4 components. This just expands the second results
vector out to 4 components.

This fixes 100 CTS tests:
dEQP-VK.spirv_assembly.type.vec3.*64*

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c