radv: emit a dummy ZPASS_DONE to prevent GPU hangs on GFX9
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 11 Jul 2018 09:55:55 +0000 (11:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Jul 2018 08:22:36 +0000 (10:22 +0200)
commit1f616a840eac02241c585d28e9dac8f19a297f39
tree66b9327dc2da7eba34526f99793a0edadf242d6c
parent3a16c722cf3e5c41c9228b7021754a085746dc4d
radv: emit a dummy ZPASS_DONE to prevent GPU hangs on GFX9

A ZPASS_DONE or PIXEL_STAT_DUMP_EVENT (of the DB occlusion
counters) must immediately precede every timestamp event to
prevent a GPU hang on GFX9.

Cc: 18.1 <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_cmd_buffer.c
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_query.c
src/amd/vulkan/si_cmd_buffer.c