Repository navigation
fix(agc): view cleared surfaces without flushing handed-over results - #9999
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 reported Windows Vulkan tests are relevant, and current main (9a030c2) has not changed this PR's four touched files since its declared base 01f9930. I cannot run the GPU tests on this host. The overlap report also lists #9891, #9892, #9893 and #9895 on Texture.hpp/Texture.cpp, and those branches are stacked on #9431. Could you compare the exact touched hunks against that stack and record an agreed merge order or dependency if this change needs one? The reported test results should be rerun on the final integrated head if any shared hunks change. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed the exact diff and manually compared the Texture.hpp/Texture.cpp hunks against the #9431 stack and its open follow-ups (#9891/#9892/#9893/#9895). Those PRs alter independent mip/layout/copy regions; they will need textual rebases where files overlap, but this change does not depend on their behavior. The candidate-source selection now rejects clear-key aliases at another DCC address, staged-clear flushes are limited to matching pending layers, and the refreshed cached storage image supersedes handed-over writes before it becomes the sampled source. The new SampledClear case exercises the supersession path. Current-main diff check is clean; CI conventions, eligibility, intake, labels and report pass while product jobs skip by path policy. I cannot run Vulkan on this host; the PR reports both focused Windows tests passing with the Khronos layer and no VUIDs. No blocking issue found in the reviewed scope.
|
Tested on Palworld (PPSA23126), Windows 11, NVIDIA RTX 3080 (driver 610.74). It removes a performance regression we bisected to #7427. Setup: our test tree is
The
What was not checked: image correctness in-world (only the dialog screen was measured), and the ctest suite with #9999 applied. Each row is one run. Measured with AI assistance (Claude Code). Generated by Claude Code |
|
Windows test run on NVIDIA and Intel (no title run). Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0 r7, Release. NVIDIA GeForce RTX 3060 Ti (driver 617.42) and Intel Arc Graphics (Meteor Lake, driver 101.9150), selected with Tests: the 1236 that
No test changes result on either GPU. Intel Arc's AI-assisted: yes (Claude Code) |
8097d34 to
cc1d505
Compare
|
@camezaro-intc #9999 before #7085 remains agreed. Current #9999 head The old VkDeviceSize AllocationBytes() const { return memoryBytes + extraMipMemoryBytes; }
bool AnyLayerPending() const;Do not restore the removed public |
|
Status check: |
|
Linux run of this head
AI-assisted: yes (Claude Code) |
|
Follow-up on Windows, for the merge order with #7085. We carried #9999 (head cc1d505) through a merge of
Not re-measured: Palworld FPS. On Measured with AI assistance (Claude Code). |
|
A second title this fixes: RESIDENT EVIL requiem (PPSA31246), Windows 11, RX 9070 XT (AMD 26.6.2). On this title the clear-key hand-over does two things: it covers the menu in stale tiles and puts a white glare over the cutscenes, the same glare as #9860.
Main defaults on the left, this PR without the switch on the right: I compared the run's frames, one every 20 presents from boot to about present 1,900, with a run using The same blocks appeared in that shot during the One more observation, not a measurement: over the same 618 s cutscene window, the run with this PR averaged 919 ms per present, against 1,195 and 1,226 ms in two runs without it. That is a single run in a scene whose timing varies a lot between runs. Not tested: I haven't run this PR's ctests; I only tested the title. AI-assisted: yes (Claude Code). |
|
@QRMOE Thank you for testing and sharing the detailed side-by-side frame comparisons and timing numbers! It is fantastic to see PR #9999 resolve both the menu tile corruption and the cutscene glare on Resident Evil Requiem (PPSA31246) without requiring fallback switches, alongside the ~23% frame pacing uplift. Please feel free to keep sharing any further findings or test results here as you continue testing! |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
d72cc8c to
3d6aba6
Compare
✅ NVIDIA GPU test: passedPR head
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (8 IDs in 531 tests)Skipped (50)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (7, not counted against this PR)Validation IDs already present on main (8 IDs in 531 tests)Skipped (61)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Data from PPSA28416 (Star Wars Galactic Racer, UE5), title screen: about +13% on Linux, NVIDIA The change also removes a 64 MiB CPU read per frame in this title. The read comes from the What happens on
With this PR, Setup: RTX 3080 Ti (NVIDIA 615.71.09), Ryzen 9 5950X, Ubuntu 26.10 (Linux 7.3), headless, no input, Trees:
Presents per 10 s over the last eight 10-s windows of 240-s runs, alternating A and B:
Steady state is about 5.2 FPS for A and 5.9 FPS for B, about +13%. There are no exceptions or aborts in any of the logs. Picture: a 600-s B run reaches the title screen at about 300 s, and the frame matches a title frame captured earlier without this PR ( AI-assisted. |
|
NVIDIA/Windows run of the focused tests from the description, with this PR's commit on a newer
The layer is inserted in both tests in every run. AI-assisted: yes |
|
Matched Linux correctness validation on plain
The baseline fails specifically at “B sampled under clear keys did not view B’s cleared storage image”, in the refresh / sampled-clear / handoff-enabled case. The candidate completes 18 passing executions in total. The five related groups cover staged-clear sampled reads, host-import proofs, label-ordered flush and raw-pointer pending stores with inline and pipelined execution. The fixture adapts this PR’s complete Both builds used identical fixture source, each compiled against its own pinned headers without a shared PCH. Source fixture, exact compile/link commands, source and binary hashes, build/CTest logs, JUnit and reviewed results — SHA256 The same regression/fix was also verified at plain main This is focused correctness evidence at the stated pins. No native-title fix, FPS gain or Windows result is claimed. The standalone shared-backing fixture may help avoid the Linux watched-import skip in future coverage. AI-assisted: yes. |
|
Native title validation: #9999 removes the severe corruption in the captured starting scene of Minecraft Dungeons II (PPSA16064) in a four-run matched check. Linux 7.2.14, Ryzen 9 7950X, Radeon RX 6650 XT / RADV, Release. Pinned main
Each checkpoint was reviewed in both XComposite and unfocused X11 drawable captures. A2 shows a small band of normal terrain at 700 s but remains severely corrupted. The black extent can differ between capture channels; the broad bad colors recur in both controls. All four ran through the planned close at 720 s and exited 0, with no harness errors. Original inputs, private seed and frozen libraries verified unchanged; kernel setting restored, private module/asset mounts released and no remaining native process. Identical save/cache seed and five scripted inputs in every run. The 816-file banks differ only in the patched/unpatched AGC library pair. No eager-writeback or cache-bypass flags; both repeat process environments and actual AGC mappings verified. No compiler work during the four runs. Exact native source integrations: control
All 24 reviewed captures, input timings, source pins, environment/cleanup receipts and hashes, SHA256 Scope: this confirms removal of the captured starting-scene corruption on this machine. Further progression, audio and FPS still need testing; no full-title or speed claim. AI-assisted: yes. |
|
Tested on Ghost of Yōtei, which shows the #9860 breakage: tiled 64 KiB-grid garbage in the tree cinematic around frames 1300-1460, unless Setup: Windows 11, RTX 4090, driver 617.42. Our branch is main up to 3bb152e plus fork changes; the PR's commit (3d6aba6) was ported by names (the Same env, clear hand-over ON, all-cold, top-third bright pixels in the tree scene:
Upload counters, frames 744-1427 (per frame):
Without the PR, a traced run showed two receivers re-uploaded from their clear keys every frame before their sources were written back: 0x506e050000+0x1fe0000 (the one in #9860, three 960x540 sources) and a second one, 0x505ab20000+0x3fc0000 (four sources, 66 MiB, re-uploaded again after the flush about 0.93 times per frame). With the PR the extra clear-path uploads are gone and the cinematic renders correctly with the hand-over on. One run with the PR so far; no FATAL, no device lost. |
Port of boykopovar#9999 (head 3d6aba6) onto the fork's cachedTexture, local diagnostic. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>






What
Preserve texture A's pending GPU results when texture B is sampled through matching DCC clear keys; sampling B does not overwrite A's backing memory. The regression test now reads A's backing memory after B is sampled but before B writes, and verifies that A's results remain visible. B's subsequent write is the point where its overlapping units may be superseded. Removed the untested unconditional refresh upload for every handed-over clear-key refresh.
Tested
Windows 11 (build 26300), AMD Radeon RX 5700 XT, driver 32.0.21045.16010. Baseline
main(2960e9a6e7e1fc99c4ed180c71495b5eb83464c7) and PR head (d72cc8ca6a70205a4e1fe96eb1c107d540a73f95) were tested on the same machine and GPU.For both baseline and PR:
cmake --build C:\a5-pr11727-full --target agc_driver_recorder_tests agc_driver_staged_clear_sampled_read_tests --parallel 8— passed.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:ctest --test-dir C:\a5-pr11727-full --output-on-failure -V -R '^(agc_storage_clear_hand_over|agc_driver_staged_clear_sampled_read)$'— passed, 2/2.VUID-messages were present in either captured run.Additional checks:
python tools/check_conventions.py --base upstream/main— passed.git diff --check upstream/main...HEAD— passed.python tools/check_conventions.py --base origin/main— reports an unrelated non-Conventional-Commit revert already in that stale fork base (97f1d41a2c) and existing debt-length warnings; checking against the actual upstream PR base passes.No title run or AMD/Intel comparison beyond this RX 5700 XT was performed.
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)