fix(agc): refuse native MSAA vertex buffer reads #7016
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7016"
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 Amoenus on 2026-10-17T05:26:37Z.
What
Fixes #7015. Adds the existing native-MSAA guest-access guard to each planned fixed-function vertex range, after range validation and before in-place import binding or snapshot reuse. The regression covers strides 0 and 16, base and end-crossing reads, neighboring values in the same host import, and all 1024 unchanged native source samples. Its instruction pattern follows the existing
ZeroStrideVertexFetchfixture.This is a follow-up to @MarcZX100's #6590, whose exact head
1271998d444c9f05a3330c96fc08d81c7e148bd4, authorship, index guard and fixture corrections are preserved. Parent: main661a1118cplus #6590,e62e2801d. Own diff: four files, +128/-2; one production line, compare. The dependency orders the shared fixture work; #6590 covers index reads and this patch covers vertex reads.Tested
Frozen head
15eb12009, main661a1118cplus the declared dependency. Fullrelinker,libsand selected fixture targets build on Windows 11 Enterprise 26200 / WinLibs GCC 15.2r7 and Ubuntu 24.04 WSL / GCC 13.3.10de:2c02), Windows1002:13c0), Windows10005:0000), LinuxVulkan required; project shader cache disabled; selected adapter verified in every process. 24 GPU passes, plus one llvmpipe run with core validation layer 1.4.363.0 loaded and no validation errors: 25 total, maximum 0.68 s, no whole-test or alias subtest skips. Synchronization validation and Windows layers were not run. Related groups:
agc_driver_sample_multisample_target(including #6590's index controls),agc_driver_zero_stride_vertex_fetch,agc_driver_vertex_fetch,agc_driver_draw_offset_indices, andagc_driver_rect_list_indirect.Failing controls: test-only main16
9cc558f4areproduces all four missing refusals 3/3 per device (nine processes). The main16 + #6590 parent with this fixture (df5179db4) still fails once per device. The updated main661 + #6590 parent control8980d77e0fails once on NVIDIA. All 13 failures have the intended four-missing-refusals assertion, twelve original guest components per attempt, correct neighboring inputs and unchanged native samples. The last control differs from the fixed head only in the guard and debt entry.Conventions, registration (926 test executables) and diff checks pass. Cppcheck 2.20 followed by clang-tidy 23.1.3 took 30.659 s of analyzer time for the two changed translation units; no parser failures/timeouts. Three Cppcheck advisories and one clang analyzer warning are in unchanged contexts:
CaptureTraceandrecordDrawby-value parameters, the existingBlockallocation guard, andPerformanceTimer. The new fixture functions have no selected clang-tidy findings. This is not a clean-whole-project claim.Overlap reviewed: #6590 is the parent; #6498 handles shader-buffer descriptors, #6175 pass ordering, and #6763 Windows import/copy selection. Remaining shared fixture/debt edits are separate topics; current-main tool output and conflicting-base Draw.cpp patches were inspected. #7015 maintains the reproduction and exact scope. No fresh title startup/FPS, performance improvement, sample publication or console-equivalence claim. Newer main
2bfe0045dadds relinker TLS-at-EOF handling and input denormal flushing only invCvtPknormF16. The guard and fixture files are unchanged, the selected cases use normal/zero values, and the merge preview is clean. The explicit tested pin is retained.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-17T05:49:23Z.
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)docs/dev/debt/libSceAgcDriver.mdL122docs/dev/debt/libSceAgcDriver.mdL122-123core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cppL29-30, L426-427Some 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/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.md