Repository navigation
Conversation
Collaborator
|
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A CPU store into write-watched image memory can restore the bytes saved at upload after the GPU has produced different texels.
writeBackLayerspreviously treated equality with that baseline as permission to store the GPU result over the CPU's newer write.Keep a matching-baseline block for the CPU when the existing
GuestMemory::UnchangedSinceCollectedquery reports a CPU store since the layer generation. The production change is one predicate inTexture.cpp; it adds no API, dependency or setting. Existing baseline handling for driver-only stamps and writes outside the image is retained.The regression waits for the GPU clear to complete before each later store and checks six cases: no store, a CPU store restoring baseline bytes, a CPU store changing bytes, a driver store restoring baseline bytes, a CPU store in a different page of the same 64 KiB block before the image, and a baseline-restoring CPU store in an interior full block. It verifies CPU-write classification and every resulting texel. Technical debt records page-granularity retention and the remaining ambiguity of same-value stores in unwatched memory.
Tested
Windows 11, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, NVIDIA GeForce RTX 3070 Laptop GPU,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=OFF.d18e5e7266590fa17b535379d66a3ff373b88e10, based on mainc8eb1f52d33f70b6091f9efd7a2a1de8528d8da4. Builtagc_driver_recorder_testsandagc_write_tracking_testswith their production runtime dependencies.agc_unchanged_cpu_stamps(all six watched-memory cases, 0.63 s),agc_write_tracking,agc_storage_integer_clear,agc_storage_upload_lifetime,agc_storage_upload_failure, andagc_storage_written_buffer_order. No selected test or watched-memory case was skipped.c2565f014912f1f43f7b289fbad02cbf8fab1d93fails in 1.29 s:a CPU store restoring the baseline over watched memory: write-back overwrote a CPU store with GPU results. The no-CPU-store control passes. The same six checks pass before and after rebasing the fix.tools/check_conventions.py --base upstream/mainand patch whitespace checks pass.Linux/macOS runtime execution, the Linux-only watched-host-import subcases, the full test suite and title runs were not completed. No FPS improvement or title unblock is claimed.
Dependencies and related work
#5024 is merged and included through the main baseline; its per-unit snapshots and untracked-memory write protection are retained. This fixes the separate watched-memory, same-value CPU-store case.
#3991 changes snapshot allocation and #4663 changes generation settling in other hunks. Neither supplies a runtime prerequisite for this fix. Searches and inspection of their current patches found no equivalent CPU-store predicate.
Checklist
main; no equivalent open fix found