ac/nir: replace SI.buffer.load.dword with amdgcn.buffer.load
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 1 Feb 2018 15:37:15 +0000 (16:37 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 2 Feb 2018 11:32:21 +0000 (12:32 +0100)
commitdf1d5174fccc6771e24ef09e0cd77dfa377a7b6a
tree07a37c56b2b215a7a538ea26e11c17d38a1b178b
parentf9c121c420eb3d4b39aad3635b63cd48fe268783
ac/nir: replace SI.buffer.load.dword with amdgcn.buffer.load

The old one generates useless instructions in there, found while
comparing geometry shaders between RadeonSI and RADV.

This improves all Vulkan demos that use geometry shaders, +4%
for deferredshadows, +9% for viewportarray, +7% for
geometryshader on Polaris10.

This seems to also improve DOW3 a little bit (+1%).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c