[vk] Fix Vulkan Upload & Present Barriers for Spec Compliance #2681

Merged
Shinmegumi merged 1 commit from Ribbit/ribbitvulkanadditions:speccompliance into master 2025-10-06 17:39:33 +02:00
Contributor

The barrier before the CPU-upload copy was using VK_PIPELINE_STAGE_HOST_BIT. Validation rules only allow HOST as the source stage if you’re also specifying host-side access flags; inside a command buffer the GPU isn’t executing “host work,” so pairing that stage with the usual image layout transition is technically invalid.

Switching the source stage to VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT keeps the ordering guarantee we need and satisfies the spec, while the actual host visibility is still handled correctly by the preceding vmaFlushAllocation.

The barrier before the CPU-upload copy was using VK_PIPELINE_STAGE_HOST_BIT. Validation rules only allow HOST as the source stage if you’re also specifying host-side access flags; inside a command buffer the GPU isn’t executing “host work,” so pairing that stage with the usual image layout transition is technically invalid. Switching the source stage to VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT keeps the ordering guarantee we need and satisfies the spec, while the actual host visibility is still handled correctly by the preceding vmaFlushAllocation.
Ribbit added 1 commit 2025-10-06 03:20:48 +02:00
[vk] Fix Vulkan Upload & Present Barriers for Spec Compliance
All checks were successful
eden-license / license-header (pull_request) Successful in 22s
a9b02e9eb1
Ribbit force-pushed speccompliance from a9b02e9eb1 to 82f8ef2fe8 2025-10-06 03:20:57 +02:00 Compare
Ribbit changed title from WIP: [vk] Fix Vulkan Upload & Present Barriers for Spec Compliance to [vk] Fix Vulkan Upload & Present Barriers for Spec Compliance 2025-10-06 05:42:40 +02:00
requested reviews from Maufeat, crueter, MaranBr, Lizzie, CamilleLaVey 2025-10-06 05:42:40 +02:00
Ribbit changed title from [vk] Fix Vulkan Upload & Present Barriers for Spec Compliance to WIP: [vk] Fix Vulkan Upload & Present Barriers for Spec Compliance 2025-10-06 05:42:54 +02:00
Ribbit changed title from WIP: [vk] Fix Vulkan Upload & Present Barriers for Spec Compliance to [vk] Fix Vulkan Upload & Present Barriers for Spec Compliance 2025-10-06 05:42:56 +02:00
requested review from wildcard 2025-10-06 05:42:57 +02:00
MaranBr approved these changes 2025-10-06 06:00:14 +02:00
Shinmegumi approved these changes 2025-10-06 17:02:37 +02:00
Shinmegumi left a comment
Owner

Testers report that there are no issues and this change raises lows creating less stutter and a smoother experience.

Testers report that there are no issues and this change raises lows creating less stutter and a smoother experience.
Shinmegumi merged commit 5d4cfe195b into master 2025-10-06 17:39:33 +02:00
Sign in to join this conversation.
No description provided.