venus: ensure to clear VkPipelineCreationFeedback::flags if needed

Fixes: d0cb99e96a ("venus: Enable VK_EXT_pipeline_creation_feedback")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18741>
This commit is contained in:
Yiwei Zhang
2022-09-22 05:43:56 +00:00
committed by Marge Bot
parent 5e39b52e6a
commit 373bc6f1d5

View File

@@ -666,14 +666,11 @@ vn_invalidate_pipeline_creation_feedback(const VkBaseInStructure *chain)
if (!feedback_info)
return;
feedback_info->pPipelineCreationFeedback->flags &=
~VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT;
feedback_info->pPipelineCreationFeedback->flags = 0;
for (uint32_t i = 0; i < feedback_info->pipelineStageCreationFeedbackCount;
i++) {
feedback_info->pPipelineStageCreationFeedbacks[i].flags &=
~VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT;
}
i++)
feedback_info->pPipelineStageCreationFeedbacks[i].flags = 0;
}
VkResult