radv,ac/nir: lower deref operations for shared memory
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 7 Nov 2019 14:56:35 +0000 (15:56 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 29 Nov 2019 20:58:18 +0000 (21:58 +0100)
commitc105e6169ce753584761b2ec03f64a5b5f4163cf
treea7ece52e34717e63674bd114b99fd23453a451ab
parentb6905438514ae4de0b7f85c861e3d811ddaadda9
radv,ac/nir: lower deref operations for shared memory

This shouldn't introduce any functional changes for RadeonSI
when NIR is enabled because these operations are already lowered.

pipeline-db (NAVI10/LLVM):
SGPRS: 9043 -> 9051 (0.09 %)
VGPRS: 7272 -> 7292 (0.28 %)
Code Size: 638892 -> 621628 (-2.70 %) bytes
LDS: 1333 -> 1331 (-0.15 %) blocks
Max Waves: 1614 -> 1608 (-0.37 %)

Found this while glancing at some F12019 shaders.

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