From: Samuel Pitoiset Date: Wed, 26 Aug 2020 15:28:46 +0000 (+0200) Subject: radv: force RADV_DEBUG=syncshaders when RADV_TRACE_FILE is used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd1f035f6e74bab568782ec8753eaf234f25a104;p=mesa.git 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: --- 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); }