anv: cleanup duplicate robustness flag calculations

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27850>
This commit is contained in:
Rohan Garg
2024-02-28 16:44:31 +01:00
committed by Marge Bot
parent 2b1d12b104
commit 1f36cc6ca3

View File

@@ -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];