Repository navigation
Conversation
|
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.
|
|
The overlap with #6182 is the option list in the test binary's main (tests/Recorder.cpp), both add a |
Same-value late CPU store: GPU reproductionAt unchanged head Two-line reproducer on our fork; production is unchanged. This commit intentionally fails the test, not a proposed fix. Restoring the original head, rebuilding and rerunning both groups gives five passes each again. No internal skips; each run identifies the RTX 5080. Maximum iteration: 0.69s; same-value case 0.32s. Environment: Windows 11 Enterprise 26200, WinLibs GCC 15.2.0, Release, NVIDIA GeForce RTX 5080, driver 610.62 / 32.0.16.1062. Built the recorder target/dependencies; shader caches disabled, The shader sees Scope: public synthetic test on this PR head, not current-main integration, AMD/Linux/console coverage, or attribution of Sonic's loading stop. AI-assisted: yes (Codex). |
|
Thanks, the reproduction is right. A late CPU store of the value the keys already held is indistinguishable from no store at all to the value compare. That case matters: zeroing reused memory that was already zero is exactly how a freed metadata block gets taken over. So preservation has to include it. Pushed eb65a65, which adds write provenance on top of the value compare:
Limits:
In PPSA15304, two runs on top of current main (about 160,000 guarded key stores in the longer one) left no key block to a later CPU store, and neither run had a fault. So in that section the new check never changes what is stored, and it closes the same-value case for titles that do reuse such memory. |
|
Fresh Linux/RADV confirmation against main A standalone watched shared-import regression queues
The common groups cover host imports, ordered flushes, changed-copy, queued writes, and raw-pointer pending stores in inline and pipelined modes. RX 6650 XT selected throughout, Khronos validation actually loaded (124 insertions across the comparison), shader cache disabled, and frozen executable/library hashes unchanged. Each arm was compiled against its own headers. Current-main merge detail: main's newer Exact baseline source Commands, logs, JUnit, pins and complete integration patch, 40,904 bytes, SHA-256 This is focused integration evidence. Your agreed ordering behind still-open #12070 remains relevant; this run does not validate that stack, Windows, a title fix or a performance gain. |
|
Current-code rebase interaction found while composing My private composition preserves Added a dynamic regression: note a declared reach and confirm it is not a pending store, then note a shadow publish over the same range and confirm it is a pending store. The original-value control fails the second assertion; the distinct-value version passes. RX 6650 XT / RADV, Khronos validation 1.4.363; full SDK/relinker builds and matching fixture/provider headers:
Zero VUIDs or raw validation-error lines. Every Vulkan-initializing case selected this GPU and inserted the validation layer. The one skip is Small rebase-follow-up patch, full private composition patch, source/SDK pins, build commands, paired logs and coverage report — SHA-256 The discarded first version of my new assertion queried Bootstrap reconstruction supplement records the exact prerequisite heads and source patch; SHA-256 Watched DMA-buf follow-up: fixture Paired native diagnostic on the same SDK DMA-buf test patch, exact fixture build/link commands, four case logs and paired native summary — SHA-256 AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head 9a00b0c8168d67cdb62cd6e90e209f744e2c34ed and its prepared diff. No build or tests were run; no merged-preview check was performed.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted code review | passed | Examined key-store and changed-copy paths |
| Build and tests | not run | Author reports ctest -R agc_ passed |
| Console behavior | not run | Author reports PPSA15304 runs |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text for core/libs/prx/libSceAgcDriver/tests/Recorder.cpp was excluded because it was too large for the review folder; the diff and relevant test hunks were read. Other changed files in the manifest were read through the prepared diff or their included head text. No build, test suite, or console run was performed here. The author-reported test and console results were not independently verified.
To get this to a good state
Nothing is required.
What
After a storage write-back the driver records a fill of the "uncompressed" DCC keys into the keys' host import (
StoreUncompressedOnGpu,Recorder::QueueKeyStore). The fill lands whenever the GPU reaches it. A title that waited for its label, released the metadata block and reused it for something else had the 0xff pattern written over its new bytes. In PPSA15304 the reused block held a descriptor table, and the next dispatch built from it stopped the title in the recompiler:The change:
APS5_NO_GUARDED_KEY_STORE=1restores the fills, and the[labels]line counts the guarded stores.APS5_TRACE_KEY_GUARD=1prints the pending writers of the stores that stay unguarded.[labels]line counts those blocks. Without write watching, the value compare stays the only guard. Key dwords in such a block that the CPU did not write keep their old value instead of 0xff: write watching does not tell which dwords of a 64 KiB block were written, and the alternative, the value compare, overwrites a CPU store of the value the keys held. This is intended and recorded indocs/dev/debt/libSceAgcDriver.md.HostImportDeviceAddress, built on fix(agc): copy only the dwords a shader changed back from a GPU-copied buffer #6185'sHostImportBufferStart), so an import whose buffer starts below its range (lead) is addressed at the keys.Scope: the guard covers the deferred key stores; the unit shadow publishes (slab to import) stay unguarded, since a kernel over every published dword read the snapshot and the import over PCIe and halved the present rate of PPSA15304. #4794 stores results right behind the draw instead; on this title that mode (then
APS5_EAGER_WRITEBACK=1) ran at 0.3 presents per second against 15 to 20 per 10 s with the deferred path and this guard, so the deferred path stays the one heavy titles need, and this guard keeps it safe where it crashed.Tested
Linux, Ubuntu 24.04, NVIDIA GeForce RTX 5080 (driver 595.99.02). New test
agc_guarded_key_store(a key clear recorded before the store: the keys end up stored; CPU stores made after the record survive, including one of the value the keys held, and the keys of a block the CPU left alone are stored).ctest -R agc_passes. PPSA15304 on currentmainwith #6185 alone stopped three times after 10 to 11 minutes in the section after the first drop with the descriptor fault above; with this change two runs of 20 and 25 minutes of continuous movement showed no fault, with 99.6 percent of the key stores guarded. Upstream'sAPS5_STORE_AT_LABEL=1did not prevent the fault in the same section.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository