zink: don't use TRANSFER bit as default pipeline stage if no access is set

should be TOP_OF_PIPE

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35476>
(cherry picked from commit cb026adc4c)
This commit is contained in:
Mike Blumenkrantz 2025-06-18 22:26:03 -04:00 committed by Eric Engestrom
parent 8701d0e4da
commit fd81fda9ef
2 changed files with 2 additions and 2 deletions

View file

@ -6984,7 +6984,7 @@
"description": "zink: don't use TRANSFER bit as default pipeline stage if no access is set",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -675,7 +675,7 @@ pipeline_access_stage(VkAccessFlags flags)
VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT |
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT |
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT;
return VK_PIPELINE_STAGE_TRANSFER_BIT;
return flags ? VK_PIPELINE_STAGE_TRANSFER_BIT : VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT;
}
ALWAYS_INLINE static bool