radv: fix emitting the TCS regs on GFX9
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 15 Jun 2018 15:50:35 +0000 (17:50 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 16 Jun 2018 08:18:51 +0000 (10:18 +0200)
commit5917761e3dddc968d5ccac9b282b7cb8d3da866f
tree7b27c18591238082b003d649e8c5bd7688fcfbf9
parent355868dbfc88313c0b0c59d3f038422ed6268255
radv: fix emitting the TCS regs on GFX9

The primitive ID is NULL and this generates an invalid
select instruction which crashes because one operand is NULL.

This fixes crashes in The Long Journey Home, Quantum Break
and Just Cause 3 with DXVK.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106756
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_nir_to_llvm.c