#1592
Tests: synchronize Vulkan texture framebuffer readback (TEST-212)
Claimed in the coordination issue as TEST-212, with the original reproduction.
What and why
The cube texture harness copies the color attachment to its readback buffer immediately after the render pass. Add the same subpass-to-transfer dependency used by vk_harness so the transfer reads both the attachment write and its final layout transition. The added CMake check runs the existing cube fixture with Vulkan synchronization validation and fails if the layer is missing or reports a hazard.
Tested
- Windows, RTX 5080 (616.92) and Radeon gfx1036 (32.0.21045.16010). On bb2e1842, the synchronization check exited 1 on both adapters with a read-after-write hazard at vkCmdCopyImageToBuffer. With 31c12250, it exited 0 on both adapters and the cube readback bytes were identical.
- The depth-compare and depth-compare A16 cases each matched all 4,096 pixels on both adapters with no synchronization diagnostic on 31c12250.
- The rebased head 678c5c0b has an identical patch according to git range-diff. The GPU check on this exact head is pending.
- Reproduction: cmake -DTOOL=<vk_texture_test> -DSPIRV= -DOUTPUT= -P runtime/test/check_texture_readback_sync.cmake
Checklist
- No game data, keys or decryption, including in reports.
- No translator rule changes.
AI-assisted.
Activity
1This pull request is a draft
Merging is unavailable until it is marked ready for review.