radeonsi/nir: Rewrite store intrinsic gathering
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 21 Aug 2019 11:28:21 +0000 (13:28 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 23 Aug 2019 09:05:31 +0000 (11:05 +0200)
commit93952779727284d52cf22ea99c226de14a281f55
tree15ee3093774b60aeccf5f1196a4f553b3a1bdbd9
parent87cca891c39da2282f122139c9514c43a14f98bb
radeonsi/nir: Rewrite store intrinsic gathering

The old version wasn't as accurate as it could be, and didn't handle
double variables inside structs correctly. Walk the path to compute the
actual components affected.

In combination with the previous commit fixes
KHR-GL45.enhanced_layouts.varying_structure_locations.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c