Skip to content

fix(render): correct Vulkan offscreen barriers and submission order - #1102

Merged
Wyvest merged 1 commit into
Polyfrost:v1from
saadndm:fix/vulkan
Sep 22, 2026
Merged

Wyvest merged 1 commit into
Polyfrost:v1from
saadndm:fix/vulkan

Conversation

@saadndm

@saadndm saadndm commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Fixes:

vkQueueSubmit2KHR(): pSubmits[0] command buffer VkCommandBuffer ... expects VkImage ... to be in layout VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL--instead, current layout is VK_IMAGE_LAYOUT_GENERAL.
  knot//...NativeVulkanService.midFrameFlush(NativeVulkanService.kt:150)
  knot//...MinecraftItemCatalogService.renderAtlas(MinecraftItemCatalogService.kt:490)
vkQueueSubmit2KHR(): WRITE_AFTER_WRITE hazard detected. vkCmdPipelineBarrier ... writes to VkImage ..., which was previously written at the end of subpass 0 (vkCmdEndRenderPass) by the attachment storeOp ...
  No sufficient synchronization is present to ensure that a layout transition does not conflict with a prior write (VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT) at VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT.
  Hint: Ensure that srcStageMask includes VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT and srcAccessMask includes VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT.

@Wyvest
Wyvest merged commit df6e217 into Polyfrost:v1 Sep 22, 2026
1 check passed
@saadndm
saadndm deleted the fix/vulkan branch September 22, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants