fix(agc): include the host stage in the CMASK clear's host-access barriers #6781
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6781"
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 XairRrR on 2026-10-16T11:32:36Z.
What
TextureDetiler::DispatchCmaskClearmakes earlier host writes available with a source stage ofVK_PIPELINE_STAGE_ALL_COMMANDS_BIT, and makes its results visible to host reads with a destination stage ofALL_COMMANDS.ALL_COMMANDSdoes not include the host stage, so the host access bits in those barriers are unsupported by their stage masks (VUID-vkCmdPipelineBarrier-srcAccessMask-02815,VUID-vkCmdPipelineBarrier-dstAccessMask-02816) and the host side of the dependency is not formed. Both barriers now addVK_PIPELINE_STAGE_HOST_BIT, as the CMASK fill barrier right after them already does.Tested
mainat3f171d03e; rebased ontoaff725bf6, wheremainitself does not build here (PipelineJournal.cppstatic assertions onShaderStagesandMeshConfiguration), which this change does not touch.agc_driver_cmask_fast_clearunderVK_LAYER_KHRONOS_validation: 38 reports of 02815/02816 onmain, none with this change; the test passes.agc_driver_graphicspasses.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 MarcZX10 on 2026-10-16T11:36:28Z.
Review: APPROVED
Reviewed the two stage-mask changes. The barriers include HOST alongside ALL_COMMANDS exactly where their access masks include host accesses, while the existing compute/transfer dependencies remain intact. The validation-layer report and focused test results support the fix; I found no blocking issue.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T11:47:18Z.
Some 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/Graphics/src/TextureDetiler.cppcore/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T10:46:51Z.
Checked both barriers: the host access bits in the access masks now have
VK_PIPELINE_STAGE_HOST_BITin the matching stage mask, consistent with the fill barrier right after them, and the compute dependencies are unchanged. Approved by @MarcZX10 as well; merged.