radeonsi/gfx9: add workarounds to avoid VGPR indexing completely
authorMarek Olšák <marek.olsak@amd.com>
Wed, 5 Jul 2017 21:33:13 +0000 (23:33 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 17 Jul 2017 14:50:39 +0000 (10:50 -0400)
commitfacfab28fe47467d3adb3eae179075e4424c3b82
treee1455ff7da705d59e55c074bfbcadde07cd6f454
parent93391ac47895f2235a6102e7a923dfea3fb44fc4
radeonsi/gfx9: add workarounds to avoid VGPR indexing completely

For inputs and outputs, indirect indexing is lowered by the GLSL compiler.
For temporaries, use alloca and disable the "promote-alloca" pass.

In the future, we could switch all codepaths to alloca permanently and
just rely on the "promote-alloca" pass.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c