Repository navigation
fix(agc): exclude skipped vertex records from target alias checks - #4408
adriadam10 merged 1 commit into
Conversation
|
@xXPBSXx Could you test this branch with Slay the Princess and check whether it gets past the The fix covers a verified false positive where the alias check includes an unused vertex-buffer prefix skipped by |
|
@santhoshkumar-dev you asked for a Slay the Princess run. Result first: it does not get past Tree and tests: this PR (clean merge) on Title: PPSA24423 relinked from its decrypted ELF, 0 absent imports; it runs about 79 s and ends with the same Why it does not apply here (details and a local diagnostic that prints the draw, on #4369): the failing draw is an indexed draw of 6 32-bit indices read from AI-assisted (Claude Code). |
|
Ran this on AMD hardware, since the GPU tests in CI only use lavapipe: Windows 11 (26300), AMD Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release,
I don't have Slay the Princess, so this doesn't cover the title. AI-assisted: yes (Claude Code) |
8097648 to
e421743
Compare
e421743 to
4462322
Compare
|
Marked ready for review at 4462322, rebased onto Updated and verified
What the other reports establish
Still unchanged or unverified The fix only excludes an unused prefix from the alias test. Copy/binding origins and real-overlap rejection remain unchanged. Same-draw reads of active target bytes remain unsupported, and console ordering is unverified. No title-specific workaround, index-data/CPU-write ordering fix or new dependency was added. Full CI request Could a collaborator with upstream write access run the Build workflow for this revision? Full Linux/Windows tests and the relinker matrix are still pending; the automatic PR checks do not run them. This account cannot dispatch the upstream workflow under the repository's access rule. gh workflow run build.yml --repo boykopovar/AnyPS5 --ref main --field pr=4408AI-assisted: OpenAI Codex. |
|
Checked on current main: both new |
What
Direct vertex inputs treat every byte from the descriptor base through the last fetch as live. With stride 16 and firstVertex 4096, a target in the skipped first 64 KiB incorrectly causes
vertex buffer aliases the render target, although the three vertices read only bytes 65536 through 65583.Use the first vertex or first instance to bound the alias check. Indexed draws retain index zero as a conservative lower bound before adding the base vertex; indirect draws retain the full descriptor extent. Copy planning and buffer-binding origins stay unchanged. Actual vertex/target overlap, zero-stride overlap, and the existing index/shader-buffer alias checks remain rejected.
The existing flush hook orders pending GPU writes, storage-image writeback and shadow publication before a copied snapshot or imported vertex input. Same-draw overlapping-byte console ordering remains unverified and unsupported, as recorded in the AGC technical debt file.
Rebased onto
mainad653c9 (PR head 4462322). The technical debt entry now uses the upstream split layout.Related to #4369, but this PR does not claim to fix Slay the Princess. The reporter identified intermittent
0xff000000index data with firstVertex 0, a separate cause from the skipped-prefix false positive. Later, plainmainffa1984 also completed three 150-second control runs without the abort, so the earlier apparent improvement with #1359 was withdrawn. The latest maintainer request is for three more current-main runs and closure if clean.Tested
Local revalidation after the rebase: Windows 11 Pro 10.0.26200, MinGW-w64 GCC 15.2.0, Release, RX 6700 XT, driver 32.0.21045.5002, full CMake configuration with BUILD_TESTING=ON. Affected runtime and recorder, graphics, vertex-fetch and zero-stride test targets built. No title dump used.
agc_driver_vertex_target_range_copiedandagc_driver_vertex_target_range_imported,agc_driver_graphics, both vertex-fetch tests, pipeline cache/library tests, in-place draw inputs, snapshots, shadow publication, host-import lifetime and storage-buffer ordering.vertex buffer aliases the render target(0/2, 0.61 s). Rebuilding with the PR's Draw.cpp restored makes both pass again. The prior default-setting AMD crashes in pipeline cache/library and vertex-fetch tests were not observed in this focused rerun on the rebased tree.tools/pr_overlap.pylogic, excluding this PR, found no overlap with other open pull requests.Independent reports on the original head:
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)