radv: add keep_statistic_info to radv_shader_stage_key

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27036>
This commit is contained in:
Samuel Pitoiset
2024-01-12 10:02:40 +01:00
committed by Marge Bot
parent 027363416b
commit 20fdbc7a44
2 changed files with 3 additions and 4 deletions

View File

@@ -152,6 +152,8 @@ radv_generate_pipeline_key(const struct radv_device *device, const VkPipelineSha
memset(&key, 0, sizeof(key));
for (unsigned i = 0; i < MESA_VULKAN_SHADER_STAGES; i++) {
key.stage_info[i].keep_statistic_info = radv_pipeline_capture_shader_stats(device, flags);
if (flags & VK_PIPELINE_CREATE_2_DISABLE_OPTIMIZATION_BIT_KHR)
key.stage_info[i].optimisations_disabled = 1;
}
@@ -209,8 +211,6 @@ radv_generate_pipeline_key(const struct radv_device *device, const VkPipelineSha
key.stage_info[stage].vertex_robustness1 = 1u;
}
key.keep_statistic_info = radv_pipeline_capture_shader_stats(device, flags);
return key;
}

View File

@@ -95,6 +95,7 @@ struct radv_shader_stage_key {
uint8_t vertex_robustness1 : 1;
uint8_t optimisations_disabled : 1;
uint8_t keep_statistic_info : 1;
};
struct radv_ps_epilog_key {
@@ -170,8 +171,6 @@ struct radv_graphics_state_key {
struct radv_pipeline_key {
struct radv_graphics_state_key gfx_state;
uint32_t keep_statistic_info : 1;
/* Pipeline shader version (up to 8) to force re-compilation when RADV_BUILD_ID_OVERRIDE is enabled. */
uint32_t shader_version : 3;