radv/gfx10: fix primitive indices orientation for NGG GS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 5 Nov 2019 11:04:57 +0000 (12:04 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 7 Nov 2019 19:21:15 +0000 (19:21 +0000)
commitdeafe4cc58746a3c46d16a9cf784819d49848dc6
tree34a538b1117c0a5fda96fb997e281757d9679fcc
parent49ee657ef8ce30f9e829d23b6b9a3a6cb9ef0434
radv/gfx10: fix primitive indices orientation for NGG GS

The primitive indices have to be swapped to follow the drawing
order.

This fixes corruption with Overwatch 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
src/amd/vulkan/radv_pipeline.c