radv: set WD_SWITCH_ON_EOP=1 when drawing primitives from a stream output buffer
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 2 May 2019 12:56:46 +0000 (14:56 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 2 May 2019 13:55:46 +0000 (15:55 +0200)
commit08be23bfdec9fb447c58ae48bf9cc1b91ecba128
tree0b0b5a9f46db642220d7a4483d4c7009cc045859
parent48107b5a2b0c911fb60a367458806e3db84283f2
radv: set WD_SWITCH_ON_EOP=1 when drawing primitives from a stream output buffer

According to RadeonSI, this seems to be required by the hardware
to avoid GPU hangs. I think I just forgot to set that bit when I
implemented VK_EXT_transform_feedback.

This fixes a GPU hang with Space Engineers and DXVK.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110291
Fixes: b4eb029062a ("radv: implement VK_EXT_transform_feedback")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/si_cmd_buffer.c