From: Rhys Perry Date: Fri, 5 Jun 2020 13:28:28 +0000 (+0100) Subject: radv: set keep_statistic_info with RADV_DEBUG=shaderstats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d13c7477eb163c3d33aa7729e6bf0336d69156f;p=mesa.git radv: set keep_statistic_info with RADV_DEBUG=shaderstats Needed for RADV_DEBUG=shaderstats to dump ACO statistics. Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index c51726f2bed..6d8e7f9555f 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2831,7 +2831,9 @@ VkResult radv_create_shaders(struct radv_pipeline *pipeline, struct radv_shader_info infos[MESA_SHADER_STAGES] = {0}; unsigned char hash[20], gs_copy_hash[20]; bool keep_executable_info = (flags & VK_PIPELINE_CREATE_CAPTURE_INTERNAL_REPRESENTATIONS_BIT_KHR) || device->keep_shader_info; - bool keep_statistic_info = (flags & VK_PIPELINE_CREATE_CAPTURE_STATISTICS_BIT_KHR) || device->keep_shader_info; + bool keep_statistic_info = (flags & VK_PIPELINE_CREATE_CAPTURE_STATISTICS_BIT_KHR) || + (device->instance->debug_flags & RADV_DEBUG_DUMP_SHADER_STATS) || + device->keep_shader_info; radv_start_feedback(pipeline_feedback);