AGC: fixed-function vertex buffers bypass the native MSAA guest-access guard #7015
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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:21:25Z.
Submitted fix: #7016, depending on #6590. Exact tested head
15eb12009and current-main impact checks are maintained in the PR.What
Fixed-function vertex input can read the old guest bytes of a live native MSAA color target through a host import. The ordinary guest-read guard refuses that range, but
prepareDrawInputsgoes throughInPlaceDrawInputwithout checking it. The vertex shader observes stale values instead of refusing the unsupported access.Reproducer and validation
Test-only main16 reproducer
9cc558f4aleaves production identical to main16c607a93. It creates a 16x16 RGBA16F 4x native target, verifies all 1024 host samples are ones, and exercises fixed-function RGBA32F vertex fetches with strides 0 and 16 at the target base and across its end. All four reads accept the old guest values: twelve recorded components per attempt. Neighboring reads in the same host import work; native samples remain unchanged.Exact #6590 head
1271998d4still reproduces the vertex gap once per device atdf5179db4(main16 plus index guard and this test). Updated parent control8980d77e0, on main661a1118cplus #6590, reproduces all four once more on NVIDIA. Thus the index guard does not cover this vertex path. 13 expected failing processes across these explicit pins.Proposed fix
Focused follow-up
15eb12009, own diff, adds oneRequireNoMultisampleTargetcall for each planned vertex range before import binding or snapshot reuse. It is based on main661a1118cand exact #6590, preserving @MarcZX100's work and shared fixture corrections. Own scope: four files, +128/-2, mostly tests.At this exact fixed pin, nine new-case runs and fifteen related GPU regressions pass across the three devices above, plus one llvmpipe core-validation-layer run: 25 passes, maximum 0.68s, actual adapters verified, no whole-test or alias subtest skips. Full relinker/libraries and selected fixtures build on both OSes. Core layer 1.4.363 reports no validation errors; synchronization validation and Windows layers were not run. The test's instruction pattern comes from the existing
ZeroStrideVertexFetchfixture.Related: #6480/#6498 cover shader-buffer descriptors; #6579/#6590 cover fixed-function indices; #6175 covers pass hazard ordering; #6763 changes Windows import/copy selection. None supplies this vertex guard. Found while extending public component validation for #4443; no fresh PPSA99902 title stop, FPS or console-equivalence claim. This correction restores the existing refusal contract; sample publication remains separate. AI-assisted: Codex; author responsible.
Integration follow-up — 2026-10-17
Submitted as #7016; its tested head
15eb12009is unchanged and depends on #6590. The experimental fork integration9b9e7a0b66now includes mainf8b22edfb7, this exact fix, #6590 and our earlier color-publication progress. Relinker/libraries and selected fixtures build on Windows and Linux. Ten GPU fixture groups pass once on each verified RTX 5080, Radeon Graphics and llvmpipe (30 GPU processes); the device-profile CPU fixture passes in all three invocations. Maximum process time 1.55s; no skips. Four vertex refusals, neighboring values in the same import and 1,024 unchanged native samples pass on every device. Selected checks also cover index boundaries, color publication/refusal, moved raster, draw recipes, offset/indirect draws, packed-half denormals and preparation settling. Conventions, whitespace and registration checks pass (932 executables registered).These are additional integration results at the linked pin, not retests of the submitted PR head. No title replay, FPS or console claim. Earlier progress and validation pins remain preserved.