radv/gfx10: fix storing/loading NGG stream outputs for GS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 17 Sep 2019 09:01:01 +0000 (11:01 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Oct 2019 16:09:32 +0000 (18:09 +0200)
commit08ab13d3400891cd6a0e7d97ff1e292cc927c7c9
tree4a26e033485bd2fa54e59244b436e53cc3d6b99f
parent3be21b5ab157530d1b56d7db57b80ed8080b89b4
radv/gfx10: fix storing/loading NGG stream outputs for GS

The GS outputs are stored differently in the LDS storage, they
are indexed by out_idx which is incremented for each stored DWORD.
Thus, we need a different path for exporting the stream outputs.

This fixes a bunch of CTS failures when NGG GS is force enabled.

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