vulkan/pipeline: don't consider capture-replay flag for shader hashing

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Michael Cheng <michael.cheng@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33022>
This commit is contained in:
Lionel Landwerlin 2026-01-23 11:29:17 +02:00 committed by Marge Bot
parent 1112c1461d
commit 5758f3f5ea

View file

@ -3027,12 +3027,19 @@ vk_get_rt_pipeline_compile_info(struct vk_rt_pipeline_compile_info *info,
};
if (bin_info == NULL || bin_info->binaryCount == 0) {
vk_pipeline_hash_precomp_shader_stage(device, pipeline_flags,
pCreateInfo->pNext, stage_info,
&info->stages[i]);
vk_pipeline_hash_precomp_shader_stage(
device,
pipeline_flags &
~VK_PIPELINE_CREATE_2_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR,
pCreateInfo->pNext, stage_info,
&info->stages[i]);
vk_pipeline_hash_rt_shader(device, pipeline_flags, pipeline_layout,
&info->stages[i]);
vk_pipeline_hash_rt_shader(
device,
pipeline_flags &
~VK_PIPELINE_CREATE_2_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR,
pipeline_layout,
&info->stages[i]);
}
}