radv: fix emitting descriptor pointers with LLVM < 7
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 30 May 2018 09:15:12 +0000 (11:15 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 30 May 2018 09:38:54 +0000 (11:38 +0200)
commit02c7916298e8e29b130735bd30e97c57d40a197f
treedb8027304a9d9aef0ddf91d33b7c4d47fb056e89
parent04fff21c62f487f5f24f02708d2a16844688ec81
radv: fix emitting descriptor pointers with LLVM < 7

This was terribly wrong, I forced use of 32-bit pointers when
emitting shader descriptor pointers. This fixes GPU hangs with
LLVM 5&6 because 32-bit pointers are only supported with LLVM 7.

Fixes: 88d1ed0f81 ("radv: emit shader descriptor pointers consecutively")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c