From dd1f035f6e74bab568782ec8753eaf234f25a104 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 26 Aug 2020 17:28:46 +0200 Subject: [PATCH] radv: force RADV_DEBUG=syncshaders when RADV_TRACE_FILE is used It's a requirement to be able to identify the first bad draw or dispatch call. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 31f486d3d75..d1a960eafd8 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -2792,6 +2792,12 @@ VkResult radv_CreateDevice( fprintf(stderr, "*****************************************************************************\n"); fprintf(stderr, "Trace file will be dumped to %s\n", filename); + + /* Wait for idle after every draw/dispatch to identify the + * first bad call. + */ + device->instance->debug_flags |= RADV_DEBUG_SYNC_SHADERS; + radv_dump_enabled_options(device, stderr); } -- 2.30.2