From 1f36cc6ca38a5a141d077812bce33bbc3a7a65b3 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Wed, 28 Feb 2024 16:44:31 +0100 Subject: [PATCH] anv: cleanup duplicate robustness flag calculations Signed-off-by: Rohan Garg Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_pipeline.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index c65bab629e4..712ee0e7ca9 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -713,13 +713,7 @@ anv_stage_write_shader_hash(struct anv_pipeline_stage *stage, vk_pipeline_hash_shader_stage(stage->info, &stage->rstate, stage->shader_sha1); - stage->robust_flags = - ((stage->rstate.storage_buffers != - VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DISABLED_EXT) ? - BRW_ROBUSTNESS_SSBO : 0) | - ((stage->rstate.uniform_buffers != - VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DISABLED_EXT) ? - BRW_ROBUSTNESS_UBO : 0); + stage->robust_flags = anv_get_robust_flags(&stage->rstate); /* Use lowest dword of source shader sha1 for shader hash. */ stage->source_hash = ((uint32_t*)stage->shader_sha1)[0];