mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
radv: set keep_statistic_info with RADV_DEBUG=shaderstats
Needed for RADV_DEBUG=shaderstats to dump ACO statistics. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5358>
This commit is contained in:
parent
981d07c74a
commit
5d13c7477e
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue