fix(agc): require the pass-input barrier only for an in-place read #7954
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7954"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-19T16:02:55Z.
What
On Windows NVIDIA, index and vertex ranges are copied into a device buffer, so an open pass does not read the guest indices and
StartDrawPasstakes no barrier.agc_driver_pass_input_hazardstill required that barrier and failed on this path. The barrier assertion now runs only whenVulkanDevice::DrawInputsInPlace()is true. Coverage of both targets, and the stored indices{0, 0, 2}, still run on the copy path and on the in-place path.Tested
Windows 11, NVIDIA GeForce RTX 5090, driver 617.42. After rebasing onto current
main,agc_driver_pass_input_hazardwithANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1: the default copy path exits 0, andAPS5_DRAW_INPUTS_IN_PLACE=1exits 0. Both printpass input hazard tests passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T16:08:51Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppL317Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppImported from boykopovar/AnyPS5. Originally posted by Chikimaro on 2026-10-19T18:33:23Z.
Windows check at head
cb7ee022c, on an RTX 5080 and an AMD iGPU, plus where the failure comes from onmain.agc_driver_pass_input_hazardonmain8e0fde7d5fails on the RTX 5080 withpass input hazard without depth: a pass writing the indices an open pass reads in place took no barrier, and passes on the AMD iGPU in the same build. A first-parent bisect on the RTX 5080, from659230f7b(passes) to8e0fde7d5, gives2b6c1112b, the merge of #6763, as the first bad commit; its first parentdb73af350passes. Onmain,APS5_DRAW_INPUTS_IN_PLACE=1makes the test pass on the RTX 5080, andAPS5_NO_DRAW_INPUTS_IN_PLACE=1makes it fail the same way on the AMD iGPU, so the failure follows the copy path rather than the GPU.With this PR,
ctest -R '^agc_driver_pass_input_hazard$' --repeat until-fail:5, all four pass 5 of 5:APS5_DRAW_INPUTS_IN_PLACE=1(in place)APS5_NO_DRAW_INPUTS_IN_PLACE=1(copied)This is a run of the test only, not a review of the change.
Imported from boykopovar/AnyPS5. Originally posted by MaxLikesCode on 2026-10-19T18:57:19Z.
Windows check on an Ada card at head
cb7ee022c, merged intomainae7ad5ff9.ctest -R '^agc_driver_pass_input_hazard$' -VwithANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1:VK_LAYER_KHRONOS_validationmainae7ad5ff9VUID-mainae7ad5ff9APS5_DRAW_INPUTS_IN_PLACE=1VUID-VUID-APS5_DRAW_INPUTS_IN_PLACE=1VUID-Every
mainfailure ispass input hazard without depth: a pass writing the indices an open pass reads in place took no barrier. No log haswas not found but was requested by env var VK_INSTANCE_LAYERS. The validation runs disabled implicit layers (VK_LOADER_LAYERS_DISABLE=~implicit~), so the loader inserted only the Khronos validation layer (Vulkan-ValidationLayersvulkan-sdk-1.4.363.0).agc_draw_inputs_in_place_driver,agc_draw_inputs_in_place,agc_draw_inputs_copiedandagc_pass_hazardsalso pass with this PR.BUILD_TESTING=ONThis is a run of the test only, not a review of the change.
AI-assisted: yes (Claude Code)