Skip to content

fix(agc): preserve CPU writes after resident linear target draws - #8246

Open
MarcZX10 wants to merge 30 commits into
boykopovar:mainfrom
MarcZX10:codex/8152-linear-target-ordering
Open

MarcZX10 wants to merge 30 commits into
boykopovar:mainfrom
MarcZX10:codex/8152-linear-target-ordering

Conversation

@MarcZX10

@MarcZX10 MarcZX10 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What

Fixes #8152: a later write-back from a recorded linear-target draw could overwrite CPU stores made after Draw returned.

This PR uses the coordinated implementation authored by Rajveer Shekhawat (two commits) and the concurrent-byte correction authored by embersas. The original three commits were split into a series of smaller ones, so each commit derived from their work carries Co-authored-by trailers for both; the drawn-rectangle fix (leave the drawn-rectangle store to targets without a draw snapshot) and the final Refresh() commit are mine and carry none. It snapshots the resident image around a recorded linear draw and merges changed bytes through the linear detiler so untouched guest bytes and CPU writes survive. The regression coverage includes seeded and unseeded partial draws, masked channels, partial geometry, later blending, queued overlapping draws, cached-recipe replay and GPU detiles for supported element widths.

This is separate from #1191's resident-target performance path and #7154's depth-plane buffer coherence. It does not depend on either PR.

Tested

Current head db12f5d6fb (30 commits, rebased onto main 3fea2a937b):

  • Linux, GCC 12.2, lavapipe (LLVM 15.0.6), host CPU gate disabled in a throwaway copy of the tree because this Xeon E5-1620 v2 lacks AVX2 and FMA. All 23 agc_driver_linear_target_* tests plus agc_driver_graphics: 22 pass and 2 skip on lavapipe (direct_write_completion, import_creation). With ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation there are 0 VUID- lines (the layer is inserted at instance and device level). The same run on main is not posted yet.
  • Memory and cost in a throwaway harness (3 targets of 24 MiB, 5 to 60 draws per target): peak RSS +72 to 76 MiB over main, flat in the number of draws and targets (one live snapshot per draw). Per-draw cost was measured only with the guest memory not write-watched (kernel 6.1, no write watch), where the target is compared or uploaded whole: about 44 ms on main and 74 to 99 ms with this PR depending on whether the CPU writes before each draw. No number from a write-watched host and no tools/trace_digest.py summary are available yet. Details are in the comments below.
  • python3 tools/check_conventions.py --base upstream/main and git diff --check pass.

Earlier reports, on older heads and not repeated on this one:

  • On pre-rebase head e5b9ac546 against base 3fd1cc393, the author reports 36/36 fresh focused runs passed on NVIDIA RTX 5070 (driver 617.42) and AMD Radeon(TM) Graphics (driver 32.0.21030.2001), Windows 11 Pro 26200, GCC 15.2 Release with SPIRV-Tools and Khronos validation/synchronization validation enabled, with no new VUIDs or validation warnings, and 118/118 common selected tests per GPU on both base and change.
  • Embersas supplied the concurrent-byte correction in comment 6289116592: on the correction tree before an older rebase (local revision fea0c0cd8a2e8f85454e0d4b5b917915e0e3035b), 15/15 focused tests and 20/20 repeated key-case executions on a Windows 11 RTX 4070 Laptop, NVIDIA 592.82, with Khronos synchronization validation. The concurrent regression recorded 5,668 lost CPU updates on the then-current head and the original unseeded control on main lost 7,680 of 8,192 CPU-written bytes; the corrected cases passed 20/20 repeats with zero lost updates.
  • No Linux/macOS write-watched runtime, console, title or performance result is claimed for the current head.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: AGC: a recorded draw into a resident linear color target stores the whole target back over CPU stores made after the draw #8152
  • Unblocks: none
  • GPUs tested: none on the current head beyond lavapipe (llvmpipe, Linux); NVIDIA RTX 5070 / driver 617.42 and AMD Radeon(TM) Graphics / driver 32.0.21030.2001 on Windows 11 Pro 26200 (reported on pre-rebase head e5b9ac546); NVIDIA RTX 4070 Laptop / driver 592.82 on Windows 11 Pro (reported by Embersas on an older correction tree)
  • AI-assisted: yes

@MarcZX10
MarcZX10 force-pushed the codex/8152-linear-target-ordering branch from bcf6733 to b2ed1d9 Compare October 20, 2026 06:51
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 862 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 1896 docs/dev/ENVIRONMENT.md
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 4472 docs/dev/ENVIRONMENT.md
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/GraphicsTests.hpp
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6924 docs/dev/ENVIRONMENT.md
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7085 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/GraphicsTests.hpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureDetile.comp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 7643 docs/dev/ENVIRONMENT.md
PR 7668 core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9289 docs/dev/ENVIRONMENT.md
PR 9345 docs/dev/ENVIRONMENT.md
PR 9356 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 9387 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 9508 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureDetile.comp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 9748 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9852 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 9895 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9897 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9915 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 10193 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureDetile.comp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 10351 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 10359 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10743 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 11435 docs/dev/ENVIRONMENT.md
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 11452 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11551 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 11825 core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 12324 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 12544 docs/dev/ENVIRONMENT.md
PR 12746 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 12792 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 12828 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 12849 docs/dev/ENVIRONMENT.md
PR 12994 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 13147 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13148 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13251 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13809 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 13863 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 13920 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 13928 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureDetile.comp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 13929 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureDetile.comp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 14032 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14260 docs/dev/ENVIRONMENT.md
PR 14262 docs/dev/ENVIRONMENT.md
PR 14473 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14944 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 15058 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 15136 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 15343 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 15456 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 15529 docs/dev/ENVIRONMENT.md
PR 15548 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 16354 docs/dev/ENVIRONMENT.md
PR 16371 docs/dev/ENVIRONMENT.md
PR 16372 docs/dev/ENVIRONMENT.md
PR 16427 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
docs/dev/ENVIRONMENT.md
PR 16793 docs/dev/ENVIRONMENT.md
PR 16831 docs/dev/ENVIRONMENT.md
PR 16879 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 16935 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 16953 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 17022 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 17056 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 17611 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 17623 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 17943 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 18029 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 18082 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 18173 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 18177 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 18226 docs/dev/ENVIRONMENT.md
PR 18293 docs/dev/ENVIRONMENT.md
PR 18829 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 18956 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 19557 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 19610 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 19620 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 19821 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 19852 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 20010 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 20030 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 20041 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 20063 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
PR 20153 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 20172 docs/dev/ENVIRONMENT.md
PR 20183 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 20248 docs/dev/ENVIRONMENT.md
PR 20518 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 20519 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 20580 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 20728 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 21211 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 21303 docs/dev/ENVIRONMENT.md
PR 21460 docs/dev/ENVIRONMENT.md
PR 21649 docs/dev/ENVIRONMENT.md
PR 21669 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 21923 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 21948 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 22025 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 22029 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 22071 docs/dev/ENVIRONMENT.md
PR 22140 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 22190 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 22251 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 22328 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 22424 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 22434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 22439 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 22531 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 22546 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 22647 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 22692 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 22697 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/TextureDetiler.cpp
docs/dev/ENVIRONMENT.md
PR 22731 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 22944 docs/dev/ENVIRONMENT.md
PR 23234 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 23242 docs/dev/ENVIRONMENT.md
PR 23244 docs/dev/ENVIRONMENT.md
PR 23252 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 23258 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 23281 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 23545 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 23553 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 23596 docs/dev/ENVIRONMENT.md
PR 23674 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
PR 23739 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 23811 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 23818 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 24049 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 24083 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 24176 docs/dev/ENVIRONMENT.md
PR 24294 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 24327 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 24444 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 24445 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 24510 docs/dev/ENVIRONMENT.md
PR 24523 docs/dev/ENVIRONMENT.md
PR 24572 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 24661 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 24714 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 24735 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 24756 docs/dev/ENVIRONMENT.md
PR 24781 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 24936 docs/dev/ENVIRONMENT.md
PR 25489 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 25534 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 25557 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 25559 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 25684 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 25703 docs/dev/ENVIRONMENT.md
PR 26036 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 26040 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 26041 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 26084 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 26365 docs/dev/ENVIRONMENT.md
PR 26613 docs/dev/ENVIRONMENT.md
PR 26630 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 26686 docs/dev/ENVIRONMENT.md
PR 26691 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 26802 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 26913 docs/dev/ENVIRONMENT.md
PR 27133 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 27164 docs/dev/ENVIRONMENT.md
PR 27288 docs/dev/ENVIRONMENT.md
PR 27471 docs/dev/ENVIRONMENT.md
PR 27672 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 27688 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 27698 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 27807 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 27811 docs/dev/ENVIRONMENT.md
PR 27864 docs/dev/ENVIRONMENT.md
PR 27872 docs/dev/ENVIRONMENT.md
PR 27887 docs/dev/ENVIRONMENT.md
PR 27966 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 27979 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 27984 docs/dev/ENVIRONMENT.md
PR 28043 docs/dev/ENVIRONMENT.md
PR 28051 docs/dev/ENVIRONMENT.md
PR 28059 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28077 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28090 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28102 docs/dev/ENVIRONMENT.md
PR 28118 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28119 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28140 docs/dev/ENVIRONMENT.md
PR 28142 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28150 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 28166 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28169 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28176 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/GraphicsTests.hpp
PR 28186 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28193 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28197 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28198 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28209 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28214 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28229 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28237 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 28240 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 28250 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28252 docs/dev/ENVIRONMENT.md
PR 28268 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28289 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 28291 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28292 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
PR 28293 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28295 docs/dev/ENVIRONMENT.md
PR 28296 docs/dev/ENVIRONMENT.md
PR 28299 docs/dev/ENVIRONMENT.md
PR 28311 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28332 docs/dev/ENVIRONMENT.md
PR 28333 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28350 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28372 docs/dev/ENVIRONMENT.md
PR 28384 docs/dev/ENVIRONMENT.md
PR 28387 docs/dev/ENVIRONMENT.md
PR 28390 docs/dev/ENVIRONMENT.md
PR 28391 docs/dev/ENVIRONMENT.md
PR 28396 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28400 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28411 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28434 docs/dev/ENVIRONMENT.md
PR 28451 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
PR 28470 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 28476 docs/dev/ENVIRONMENT.md
PR 28487 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 28488 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28490 docs/dev/ENVIRONMENT.md
PR 28496 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28520 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28522 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28523 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28564 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28583 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28586 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28590 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28605 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28622 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 28624 docs/dev/ENVIRONMENT.md
PR 28631 docs/dev/ENVIRONMENT.md
PR 28660 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28668 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28673 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 28681 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28702 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 28704 docs/dev/ENVIRONMENT.md
PR 28738 docs/dev/ENVIRONMENT.md
PR 28765 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 28766 docs/dev/ENVIRONMENT.md
PR 28768 docs/dev/ENVIRONMENT.md
PR 28786 docs/dev/ENVIRONMENT.md
PR 28787 docs/dev/ENVIRONMENT.md
PR 28805 docs/dev/ENVIRONMENT.md
PR 28808 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28814 docs/dev/ENVIRONMENT.md
PR 28845 docs/dev/ENVIRONMENT.md
PR 28865 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28875 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
PR 28893 docs/dev/ENVIRONMENT.md
PR 28894 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28914 docs/dev/ENVIRONMENT.md
PR 28920 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28921 docs/dev/ENVIRONMENT.md
PR 28925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28928 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28930 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28931 docs/dev/ENVIRONMENT.md
PR 28934 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28936 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 28937 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28941 docs/dev/ENVIRONMENT.md
PR 28943 docs/dev/ENVIRONMENT.md
PR 28945 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28948 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 28952 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28953 docs/dev/ENVIRONMENT.md
PR 28955 docs/dev/ENVIRONMENT.md
PR 28956 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 28957 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28958 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 28960 docs/dev/ENVIRONMENT.md
PR 28962 docs/dev/ENVIRONMENT.md
PR 28964 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 28971 docs/dev/ENVIRONMENT.md
PR 28980 docs/dev/ENVIRONMENT.md
PR 28983 docs/dev/ENVIRONMENT.md
PR 28984 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28985 docs/dev/ENVIRONMENT.md
PR 28986 docs/dev/ENVIRONMENT.md
PR 28995 docs/dev/ENVIRONMENT.md
PR 28999 docs/dev/ENVIRONMENT.md
PR 29000 docs/dev/ENVIRONMENT.md
PR 29032 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29033 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29037 docs/dev/ENVIRONMENT.md
PR 29038 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 29039 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 29042 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29051 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 29052 docs/dev/ENVIRONMENT.md
PR 29053 docs/dev/ENVIRONMENT.md
PR 29058 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 29059 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 29060 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 29066 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29067 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29069 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29070 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29072 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29073 docs/dev/ENVIRONMENT.md
PR 29074 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 29076 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29082 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 29083 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 29084 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29085 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29086 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 29087 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29089 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29090 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29091 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29093 docs/dev/ENVIRONMENT.md
PR 29094 docs/dev/ENVIRONMENT.md
PR 29095 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29096 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 29097 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 29098 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29101 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29102 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29103 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29104 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29105 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29106 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29107 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29108 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 29110 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29113 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29115 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29116 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29117 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29118 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29119 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29120 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29121 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29123 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 29200 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
Report truncated: 3 more lines omitted.

@MarcZX10
MarcZX10 marked this pull request as draft October 20, 2026 06:56
@MarcZX10

Copy link
Copy Markdown
Contributor Author

I marked this PR draft after a second correctness review. Deferring writeback alone is insufficient: the current write-watch policy preserves whole 64 KiB blocks, which can discard the draw output in the same block as a post-draw CPU store. Also, a writeback recorded during a completion needs to execute synchronously rather than remain in a newly opened recorder batch. I am working through a region-aware writeback path and will update the PR when the regression and completion ordering are addressed.

@github-actions github-actions Bot added the fix error Closes an issue (Fixes #N) label Oct 20, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor Author

Update after checking the reporter’s run on current main: my earlier proposed keep-block explanation was wrong. The seed causes a re-upload after the CPU write, and the draw completion flush happens before later CPU writes. The unseeded, different-output case demonstrates the actual whole-target writeback ordering bug. I also found a lifecycle blocker in my attempted deferral: cache eviction marks a texture released, which makes FlushPending ignore it. I discarded that incomplete local attempt; the published branch remains draft while I work out a fix that keeps the pending image discoverable and orders its later writeback at the access that needs it.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

I pushed two commits to #8246: fe29558e94 defers linear target eviction writeback and records the draw as a pending writer; 285884da27 updates the regression to flush and wait for readback before checking memory. The writeback keeps changed CPU bytes within the same 64 KiB block while storing the remaining GPU bytes. The focused target builds and links locally, conventions pass, and CTest is blocked before Vulkan initialization by this host CPU’s missing required extensions. I have kept the PR as a draft pending a run on a supported CPU/GPU.

@fogydes fogydes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the diff, CI, and verified the existing test on current main.

Production code (Draw.cpp): The fix defers the resident linear color target writeback from draw-recording time to batch completion via recorder.OnComplete(). Before this change, StorageTexture::FlushPending ran synchronously during recording — scheduling a whole-target copyout before any CPU stores the game makes after Draw returns. At completion, the OnComplete lambda:

  1. Acquires GuestMemory::GpuMutex() — correct, since FlushPending and WriteBack mutate shared guest-memory state.
  2. Flushes pending overlapping aliases (preserving prior alias reconciliation behavior).
  3. Calls keep->WriteBack() to write the GPU results back.

The keep shared_ptr capture extends the resident's lifetime until the completion callback runs, preventing a use-after-free if the texture is otherwise released. This is sound.

Test (LinearTargetResident.cpp): The regression sequence is well-designed:

  • Program() now takes a blueConstant parameter (default 0x80), allowing the second draw to write a distinct blue value (0xf4).
  • Draw() now takes scissorWidth (default Width), allowing a left-scissored second draw.
  • The run lambda executes two draws: full-width blue=0x80, then left-half blue=0xf4. Between draws, the seed variant writes 0x5a to the left half of the CPU buffer. After both draws, the CPU writes 0x42 to the right half. After WaitIdle(), it checks:
    • Left half: second draw's output (x, y, 2.0, 1.0 with 0xf4 blue → float 2.0 via v_mov_b32 encoding) preserved.
    • Right half: CPU-written 0x42 bytes preserved (not overwritten by GPU writeback).
  • Both run(true) (seeded) and run(false) (unseeded) are exercised.

The instruction encoding 0x7e000200u | blueConstant | (22u << 17u) is a v_mov_b32 with an inline constant — the constant index formula is correct for GCN/RDNA ISA.

CI: conventions, labels pass. Build/platform jobs skip (AGC change, no CI GPU runner).

Local verification: Built agc_driver_linear_target_resident_tests and ran ctest -R "^agc_driver_linear_target_resident$" -V with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 on current main — Passed (0.56s, NVIDIA GeForce RTX 5050 Laptop GPU). The test passes on the existing code; the enhanced test from this PR would exercise the new writeback path.

PR body: Honest about the hardware limitation (Xeon E5-1620 v2 can't run Vulkan tests). Template complete.

One observation: the PR doesn't note VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation testing, but the host CPU guard prevents the runtime from reaching Vulkan initialization anyway, so this is consistent with the limitation.

No blocking issues found.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Follow-up: I found the first byte-merge revision could compare against an upload baseline that was stale across recorded draws. Commit ec9d6fecb5 snapshots guest bytes immediately before each recorded linear draw and uses CPU-specific write stamps when preserving changed bytes. The focused target rebuilt and linked successfully; runtime remains blocked before Vulkan initialization by the host CPU feature guard. I have kept the PR draft.

@github-actions github-actions Bot added the agc libSceAgc* label Oct 20, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed review and for checking the previous code on your RTX 5050. Since that review, the fix changed: it now leaves target results pending after batch completion and stores them on the later read/flush path; commit ec9d6fecb5 also refreshes the byte baseline before each draw, and 50f477fccc reuses the full guest snapshot rather than limiting byte merging to 1 MiB. I rebuilt the focused target, but this Xeon host is stopped by the CPU feature guard before Vulkan. If you have time, could you run the current draft head (50f477fccc) through agc_driver_linear_target_resident on your GPU? The PR remains draft while that runtime behavior is unverified here.

@MarcZX10
MarcZX10 marked this pull request as ready for review October 20, 2026 07:46
@rajvveer

rajvveer commented Oct 20, 2026 •

Copy link
Copy Markdown

Sharing a tested alternative implementation and regression coverage for #8152 so we can coordinate with this PR.

Branch: rajvveer/AnyPS5 — fix/agc-linear-target-cpu-writes

This approach captures the actual image on the GPU before a recorded linear draw and merges only changed bytes into guest memory. Atomic word updates preserve untouched channels sharing a word. Image and guest baselines remain separate for subsequent refresh; CPU write-back and padded array layers are covered too. It keeps the recorded path.

The tests extend Celegans12's reproducer: seeded/unseeded partial draws, masked float/RGBA8 channels, partial geometry, later blending, queued overlapping draws, actual cached-recipe replay, and GPU retile cases for 1/2/4/8/16-byte elements. Recipe replay is unseeded so a deferred re-upload cannot mask the original bug.

Validation: Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release with SPIRV-Tools; NVIDIA RTX 5070 (617.42) and AMD Radeon(TM) Graphics (32.0.21030.2001).

  • Independently built base 3fd1cc393: the compatible regression overlay reproduces the overwrite on both GPUs; synchronous controls pass.
  • 36/36 fresh focused runs passed at e5b9ac546, with the correct devices and Khronos 1.4.363 layer verified, synchronization validation enabled, and no validation errors/warnings or skips. This includes five modes plus actual recipe replay.
  • 118/118 common selected tests per GPU passed on base and change. Existing broader-suite diagnostics matched by test name, message and count: NVIDIA 5 errors/10 warnings; AMD 6 errors/10 warnings. No new VUIDs; this is not a claim that the entire suite is validation-clean.
  • Full runtime/relinker builds pass. The paired suite preceded the final recipe-only test tightening; production code was unchanged, and the final build/focused runs were repeated.

These results apply to the linked branch; I have not executed this PR's current 50f477fccc head. No real-title, Linux/macOS, console or performance result is claimed. The snapshot adds GPU work and temporary memory.

Would incorporating the implementation or regression coverage here be useful, or would you prefer a coordinated alternative PR? I have kept the separate PR on hold.

@MarcZX10
MarcZX10 force-pushed the codex/8152-linear-target-ordering branch from 50f477f to e32a19b Compare October 20, 2026 08:46
@MarcZX10

Copy link
Copy Markdown
Contributor Author

I chose to integrate your implementation and regression commits into #8246 rather than open a second PR for the same issue. Both commits remain authored by you (unknown <rajveershekhawat626@gmail.com> as recorded in Git), and the head is now e32a19b4d7957795a3b5cf21848b41889bd193a5, rebased on current main 35fa2bdd. The older-base GPU/build results and the rebase validation limits are now explicit in the PR description. Could you rerun the focused matrix on this exact head when possible? I will keep the draft open pending that current-head check.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Correction to my previous note: I said I would keep the PR draft open, but GitHub shows it was already marked ready for review at 07:46 UTC. I had the state wrong; I did not change the draft/ready setting as part of integrating your commits. The PR remains ready for review, with the current-head runtime rerun still outstanding.

@github-actions github-actions Bot added the build label Oct 20, 2026
@rajvveer

Copy link
Copy Markdown

The requested exact-head rerun is complete: e32a19b4d7957795a3b5cf21848b41889bd193a5 was rebuilt in a separate clean worktree and passed 36/36 focused executions. agc_driver_graphics passed too. Independently rebuilt main 35fa2bdd also passed the default resident control on both GPUs.

Hardware: Windows 11 Pro 26200, NVIDIA GeForce RTX 5070 / driver 617.42, and AMD Radeon(TM) Graphics / driver 32.0.21030.2001; GCC 15.2.0 Release with SPIRV-Tools.

The matrix was five resident modes (default, unwatched, draw transitions, eager write-back, synchronous linear targets) plus cached-recipe replay, three repetitions on each GPU. Every process confirmed the intended GPU and loaded Khronos validation layer, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and synchronization validation enabled. Zero VUIDs, synchronization hazards, validation errors/warnings or skips.

A small test-only follow-up is also available: 66f62d174 — strengthen linear target replay and array coverage. It changes only LinearTargetResident.cpp and applies cleanly to e32a19b4:

  • Capture draws a quarter-width area; cached replay draws the original half-width area. The assertions now require pixels produced by replay, alongside preservation of the CPU-written right half.
  • The padded-array fixture now also covers storage snapshot, merge and refresh in imported memory at layer 1, preserving the existing CPU fallback. Distinct initial layer contents and completion of the initial upload make an incorrect baseline-layer offset observable. Full-buffer and refresh checks cover GPU results, CPU writes, padding and the untouched layer.

The follow-up was separately built and tested at 66f62d174: 36/36 focused executions passed, followed by five successful checks after the negative-control experiment was restored and rebuilt (agc_driver_graphics, plus resident and recipe on both GPUs). Temporarily removing the per-layer baseline offset made the new imported-snapshot assertion fail on both GPUs, with the CPU fallback still passing and no validation diagnostics. That mutation is absent from the commit. Convention and whitespace checks pass.

Please cherry-pick 66f62d17479bf7b393326c48926dea6bea31c6f0 if you would like to include this test tightening. The two 36-run results above belong to their respective commits; the follow-up is not yet part of this PR. No real-title, performance, Linux/macOS runtime or fresh full-suite result is claimed.

@VicRaster

Copy link
Copy Markdown
Contributor

I rebuilt exact head e32a19b4d7957795a3b5cf21848b41889bd193a5 on an RTX 4070 Laptop GPU. The existing resident and cached-recipe tests pass, but an additional concurrent-byte regression exposes lost CPU stores.

Attached is a tested correction extending Rajveer Shekhawat’s implementation and MarcZX10’s integration. The seeded/unseeded regression derives from Celegans12’s reproduction. I’m offering this for integration into the existing PR.

Confirmed failures and correction

The concurrent regression uses a 64 × 4096 RGBA8 target. The GPU writes only blue while a CPU thread updates counters in red/green and checks the preceding values. On e32a19b4, it detected 5,668 lost CPU updates, although blue was correct and later CPU sweeps repaired the final counters. Checking only the final buffer misses this failure.

GPU word-level compare-and-swap does not provide atomicity with ordinary CPU stores to adjacent bytes. The correction uses a separate publication shader with write-only uint8_t storage-buffer stores, without destination loads or atomics. The driver already enables storageBuffer8BitAccess; ordinary detile/image variants remain unchanged.

A second regression exposed a stale-baseline problem: an actual GPU write equal to stale image contents can be omitted by the before/after comparison. PrepareLinearDraw now settles prior results and overlapping aliases, then uploads guest contents before taking the GPU baseline. This regression fails with the byte-store-only intermediate and passes with the complete correction.

The comparison is not treated as a write-coverage detector. It depends on establishing a coherent baseline first. Unsynchronized CPU/GPU stores to the same byte still require ordering. Publication remains in the recorded command stream, with the existing reader/host barriers and resource retention. The new checks use the established WaitIdle boundary without an additional test-only flush.

Tested

Hardware: NVIDIA GeForce RTX 4070 Laptop GPU, NVIDIA 592.82 / Windows driver 32.0.15.9282, Windows 11 Pro 10.0.26300. WinLibs GCC 15.2.0 r7, Release, Ninja; Khronos validation layer 1.4.363.0.

  • Rebuilt main 35fa2bdd824f1a77d5d70e7feeae85fd6d9baf04: 8 failures in 12 shared focused entries. The original unseeded regression preserves all 512 GPU pixels but overwrites 7,680/8,192 CPU-written bytes. Seeded and synchronous controls pass.
  • Corrected local revision fea0c0cd8a2e8f85454e0d4b5b917915e0e3035b: 15/15 focused tests pass, including concurrent CPU updates, queued draws, channel masks, partial geometry, dependent GPU copy and CPU-visible label, cache eviction, aliases, same-value writes, expanded resident coverage and cached-recipe replay.
  • After the main comparison, restored and rebuilt the correction: 15/15 pass again.
  • Four key cases repeated five times each: 20/20 executions pass, including zero lost CPU updates in every concurrent run. Same-output seeded/unseeded, sequential CPU-writer, direct-transfer reader and synchronous controls also pass.
  • Main uses the common runtime fixtures with identical assertions. The new same-value and expanded resident/recipe cases require APIs absent from main and are reported separately. Main’s original resident control passes; descriptor-capture mocks use the matching API version.

Every GPU run used:

ANYPS5_REQUIRE_VULKAN=1
ANYPS5_NO_SHADER_CACHE=1
ANYPS5_GPU=RTX 4070 Laptop
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation
VK_LOADER_DEBUG=layer
VK_LAYER_ENABLES=VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT

Actual validation-layer loading was verified. Base and correction logs contain zero VUIDs, synchronization hazards, missing-layer warnings or skips. The shared deprecated-setting notice is not counted as a new validation error.

Focused candidate command:

ctest --test-dir build-review-8152 -R '^agc_driver_(linear_target_(concurrent_bytes|cpu_writes.*|publication.*|resident|recipe)|graphics|alias_copy_label|array_layer_target)$' -V --timeout 30

Convention and whitespace checks pass. spirv-val --target-env vulkan1.1 accepts the publication shader; its compiled module has 8-bit storage, byte array stride 1 and no atomic operations.

The attachment is a plain unified diff against e32a19b4d7957795a3b5cf21848b41889bd193a5, without commit metadata. Apply it with git apply <attachment>.

SHA256: d7dbee013607048a06f05efea9b4ed3a4ab31086c1b396670e5ca4cf7b403bee

The additional upload/snapshot costs work and temporary memory. No game compatibility, performance improvement, Linux/macOS runtime, fresh full-suite or other-GPU result is claimed for this correction.

AI-assisted: yes.
8152-pr8246-followup.diff.txt

@MarcZX10
MarcZX10 force-pushed the codex/8152-linear-target-ordering branch from f063d00 to 030409a Compare October 20, 2026 11:00
@MarcZX10

Copy link
Copy Markdown
Contributor Author

Integrated the offered correction into #8246 as commit 030409ad4a86041c29fa65bf018632452d5b5cab after rebasing all three PR commits onto current main 891d5675150936bbb330a1f27bacc86113dd2532. The new commit preserves embersas as its author; the two Rajveer commits also retain their original author metadata.

The contributor-reported RTX 4070 Laptop run and correction-tree test results are recorded in the PR description, explicitly as pre-latest-rebase results. On the rebased head, git diff --check passes. The local conventions script stops at its duplicate-export scan with E2BIG, and hosted metadata checks were pending at the last poll. I could not run a current-head Vulkan build/runtime on this host.

@github-actions github-actions Bot added the docs label Oct 20, 2026
@wachi35676

Copy link
Copy Markdown
Contributor

This is a runtime run of the exact current head e32a19b4d, which was still outstanding. I merged it onto main 02fb1ce53 (a clean merge, after #8172).

Setup: Windows 11 (26300), WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON. The GPUs are an RTX 5070 Ti (NVIDIA 617.42) and an AMD Radeon iGPU (AMD proprietary 2.0.353). Both runs used ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1; the validation layer was not used.

  • agc_driver_linear_target_resident passes 3 of 3 on each GPU. So do agc_storage_writeback_blocks, agc_write_tracking and agc_write_tracking_metadata_commit. The test logs linear target resident device: NVIDIA GeForce RTX 5070 Ti and ... AMD Radeon(TM) Graphics respectively.
  • Negative control: the PR's test uses PrepareLinearDraw, FinishLinearDraw and the new Dispatch overload, so it doesn't compile on main alone. Instead I kept the whole PR and restored only main's Draw.cpp, which removes the PrepareLinearDraw and FinishLinearDraw hook-up. The test then fails 2 of 2 on each GPU with unseeded scissor: write-back overwrote the CPU's untouched right half in row 0.
  • Related set of 75 tests (agc_driver_graphics, which includes the new TextureDetiler.cpp cases, plus storage, partially_resident, msaa, multisample, label, stencil, tessellation, write_tracking, resident and so on): 75 of 75 pass on each GPU. agc_driver_stencil_ref_export skips on NVIDIA because the GPU has no stencil export.

Not measured: the cost per draw. PrepareLinearDraw runs WriteBack() and then copies the whole image into a new 2x-size DeviceBuffer before every recorded draw into a resident linear target, and I have no title that exercises this path to time it.

AI-assisted: yes (Claude Code); results above were run on this machine.

Celegans12 added a commit to Celegans12/AnyPS5-Ghost-of-Yotei that referenced this pull request Oct 20, 2026
@Celegans12

Copy link
Copy Markdown
Contributor

I tested #8246 with Ghost of Yōtei (PPSA26344) on Windows 11 and an RTX 3080 Laptop, since #6892's resident linear targets are what broke our warm world runs in the first place. The unit-level fix holds up well on our tree. In the game, though, it doesn't fix the spawn: with resident linear targets on, Atsu still isn't at the river.

One caveat first: this isn't plain main. Our tree is main b509767 merged with our local Yōtei work (local/merge19 a5d6e17, where resident linear targets are opt-in behind APS5_RESIDENT_LINEAR=1). I applied your head 030409a on top as one diff. There were three small conflicts (Draw.cpp, Texture.cpp and the CMake test list), and I kept both sides in each. The shader cache version didn't change.

The tests all pass. Your new tests, the upstream resident-linear tests and the nearby storage and write-tracking tests went 22/22, three times each, with resident linear on. My #8152 reproducer passes 5/5 in both the seeded and the unseeded case. With only your Draw.cpp hooks taken out again, it fails 3/3 with 7,680 of the 8,192 right-half bytes rolled back, as before.

In the game, the warm run from our Ainu-village save never shows Atsu. From frame 078 on, the camera sits under the water looking up at the forest. That's the same family of symptoms as our earlier resident-linear runs (T-pose in the sky). With resident linear off, the same save spawns him at the river every time. The path does run there: in the world, about 15-43 recorded draws per 10 s go into resident linear targets, and each one gets your "linear draw baseline" upload.

I also wanted to know whether the game just reads those targets before the recorded write-back lands. So I added a local debug switch that does a full Recorder::Sync right after every recorded linear-target draw. That makes the write-back land before the next packet. It didn't help: the camera was still under the water. My guess is that the bytes reaching guest memory, or the resident image that the next draw starts from, are wrong in a case the tests don't cover, not that the order is wrong. I can't rule out an interaction with our local changes yet, though. Neither run lost the device or hit a GPU write fault.

frame 85: #8246 with resident linear on, the same with a sync after each linear draw, and resident linear off

If it helps, I can run an instrumented build next. For example, it could dump a linear target's guest bytes after one of these draws with resident linear on and off and diff them. Or I can try a newer head. Is there anything you'd want me to log in particular?

Details
  • Build: local/test-8246 = local/merge19 a5d6e17 + fix(agc): preserve CPU writes after resident linear target draws #8246 030409a as one commit (2339d4e) + the reproducer as its own execution test (LinearTargetRepro8152.cpp, from Celegans12/AnyPS5 repro/8152-linear-writeback b1c835f) + the debug switch (APS5_LINEAR_DRAW_SYNC, local only). SourceVersion 3b35146912b7970c, the same as without the PR. GCC 15.2.0 Release, NVIDIA RTX 3080 Laptop.
  • Tests (APS5_RESIDENT_LINEAR=1, ctest -j4 --repeat until-fail:3): agc_driver_linear_target_{resident, recipe, cpu_writes, cpu_writes_seeded, concurrent_bytes, publication, publication_mask/geometry/reader/eviction/alias/same, repro8152}, agc_driver_partially_resident_{snapshot, pending_stores}, agc_driver_uint8x4_color_target_no_resident, agc_resident_present, agc_storage_writeback_blocks, agc_write_tracking, agc_write_tracking_metadata_commit, agc_driver_graphics, linear_display_buffer: 22/22.
  • Reproducer [8152] lines with the PR, 5/5: seeded and unseeded, each with the second draw recorded, left half 0/512 pixels lost, right half 0/8192 bytes not the CPU's 0x42. Without the PR's PrepareLinearDraw/FinishLinearDraw hooks (Draw.cpp only), 3/3 failed: seeded 0/8192, unseeded 7680/8192.
  • World runs: warm, web-teshio-b save, pad script without jumps, our usual Yōtei env plus APS5_NO_DISPATCH_OVERLAP=1, stopped 10 s after frame_090.
    • Run 1 (APS5_RESIDENT_LINEAR=1): frame_078 at 247 s, frame_090 at 401 s. Frames 078-090 show the camera below the water surface, no Atsu.
    • Run 2 (also APS5_LINEAR_DRAW_SYNC=1): frame_090 at 365 s, frames 078-090 fog/water, no Atsu. Address-based syncs 3,675 → 4,233, so the switch fired.
    • Reference (APS5_RESIDENT_LINEAR unset, earlier run on merge19 045af03): Atsu at the river, frames 078-090.
  • Storage counters, per 10 s in the world: 15-43 "linear draw baseline" uploads (2-45 MiB), matched by as many "linear target" write-backs. During loading it reaches up to 157 (386 MiB). 0 host-heap refusals.
  • No frame-time comparison, because the broken runs render a much simpler scene than the river.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

@Celegans12, thanks for offering. A targeted capture on the current head 030409ad4a would help. If convenient, pick one linear target associated with the first incorrect water frame and record its guest address, dimensions/pitch/format, the guest bytes immediately before the draw baseline upload, the resident image bytes after the draw, and the guest bytes after write-back. The key is to identify the first point where those byte ranges diverge; no need for broad per-draw logging. If selecting a target is unclear, a newer-head run alone would still tell us whether the behavior changed.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed title run and the sync control. That changes the next question: the isolated CPU-write regressions pass, but this title still diverges even when each writeback is forced to complete before the next packet, so completion ordering alone does not explain the spawn failure. The most useful next capture would be the first target/draw that differs between resident-linear on and off: guest address, dimensions/format/pitch, bytes before the draw, resident image bytes after it, bytes written back, and the next consumer’s read. A narrow capture around the first divergence should distinguish stale baseline/image contents from a format/layout or alias mismatch. If you can share such a trace (or an instrumented reproducer), I can investigate the next fix in this PR.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Thanks, this separates the #8152 byte-preservation case from the remaining Yōtei spawn failure: the focused CPU-write/repro tests and their negative control still validate the intended fix, while the title remains below water even with the per-draw sync switch. For the first affected target, could you log a compact identity (guest address, format, extent/pitch) and a hash plus a few sampled bytes at three points: after PrepareLinearDraw establishes the baseline, after the recorded draw completes just before its completion callback, and after WriteBack? That should show where the frame used for the spawn first diverges without dumping broad title memory. Comparing resident-linear off/on on the same saved state would help anchor it. There is no need to spend time timing the broken frame; I agree those scenes are not comparable.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed run. The result narrows this down: the reproducer confirms the CPU write-back regression is fixed, while forcing a full sync after each recorded draw does not fix the Yōtei scene, so I agree we should look at the bytes and resident image contents rather than add more ordering waits.

If you can run one instrumented comparison, please pick a target touched during frames 078–090 and log/dump:

  • the target address/range, format, dimensions, pitch/tiling, and draw sequence number;
  • its guest-memory bytes after that draw's write-back has completed;
  • the same bytes immediately before the next draw that reads or writes the target; and
  • the corresponding resident-image contents at those two points, if the existing debug path can read them back.

Please capture resident-on and resident-off runs from the same save and report the first differing byte/pixel with the owning draw. A small bounded set around one target is enough; no need for a full frame dump. That should tell us whether the mismatch is in the write-back, the resident image used by the next draw, or another local Yōtei change.

MarcZX10 and others added 17 commits November 19, 2026 16:13
recordPreparedDraw does the same for the targets it binds when the draw is recorded.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
The completion store of a drawn linear target goes through FinishLinearDraw.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
Write-back compares the 64 KiB blocks written since the draw's snapshot and leaves the ones the CPU changed.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>

Ported onto main: main renamed the per-target tracked flag to layerTracked, so the new block and the unknown check use layerTracked.
A write-back that used the draw's snapshot publishes the whole shadow, not the partial units.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
The write-back detiles into the buffer the draw started from instead of a new one and keeps it with its size.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
…napshot

With a snapshot the write-back runs the changed-only detile against the draw's original bytes and no longer copies the tiled scratch over the import.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>

Ported onto main: main moved the direct host-import retile into its own branch, so the snapshot retile runs only in the scratch branch (else). The import-retile gate also skips snapshot targets, as the PR's own version did, so they never take the direct whole-layer import.
A copy of the destination is taken before the store and the bytes the write-back did not change are put back, so concurrent CPU bytes survive.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
…napshot

main stores a drawn linear target through storeDrawnRect, which copies the whole drawn rectangle over the import and so overwrites the bytes of channels the draw masked out that the CPU wrote since. A target with a draw snapshot already stores only the bytes that changed, so writeBackLayers takes the rectangle path only when there is no snapshot.

Ported onto main: main renamed the tracked flag to layerTracked, so the condition keeps layerTracked where the PR used tracked.
Resources, the detiler and the standard headers it now uses.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
…rget

A left-half geometry and a program whose blue constant can be chosen.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
…k and vertices

The draw helper can halve the destination with blending, restrict the color write mask and the scissor, and take its own vertices.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
…in the resident test

The resident test gets a Coverage mode, the APS5_NO_RESIDENT_LINEAR flag, checks of queued and cached draws and of the bytes a draw leaves alone, a CPU snapshot check, a changed-only retile check and a --recipe mode that replays the draw through a draw recipe.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
agc_driver_linear_target_recipe runs agc_driver_linear_target_resident_tests --recipe.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
Draws into a linear target while the CPU writes other bytes of it and checks that the CPU's bytes are kept.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
Six cases (mask, geometry, reader, eviction, alias, same) check what a resident linear target publishes after a draw; registered per case.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
A CPU-write regression with two switches, APS5_LINEAR_SAME_OUTPUT and APS5_LINEAR_SEED_LEFT, and a seeded registration; the switches are documented in ENVIRONMENT.md.

Co-authored-by: Rajveer Shekhawat <rajveershekhawat626@gmail.com>
Co-authored-by: embersas <30363137+embersas@users.noreply.github.com>
…he whole target

The write-back of the previous draw leaves the image current, so the forced whole-surface upload before every recorded draw copied bytes the image already held. Refresh uploads only the layers whose guest memory changed since the image was last current, which includes the CPU's writes.
@MarcZX10
MarcZX10 force-pushed the codex/8152-linear-target-ordering branch from 3ab861c to 3d135a1 Compare November 19, 2026 16:14
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 19, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@MarcZX10 I compared 3d135a1 with 3ab861c. Apart from the rebase onto main the code is the same, so the requests from @adriadam10 on 6 Nov still stand: bound the snapshot memory, explain the 315 to 397 ms stall at 180 draws and the first-frame cost, rerun the alias test on a write-watched host, and update the Tested section.

On the memory, I think I see the cause. Each PrepareLinearDraw allocates a buffer twice the target's size, and recorder->Keep holds it until the work retires, so resetting linearDrawOriginal in FinishLinearDraw frees nothing. For the 24 MiB target that is 48 MiB per recorded draw, which fits the 71 against 24 MiB measured.

My earlier question also stands: which CPU writes does this still save that main's drawn-rectangle store loses?

@domx4q

domx4q commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

NVIDIA Linux run with the Khronos validation layer of the current head 3d135a1c43; Tested covers lavapipe on Linux and older heads on Windows, and the head named there is db12f5d6fb.

Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor 0x10de, device 0x2684, Ada), proprietary driver 620.70.06, Vulkan 1.4.357, Khronos validation layer 1.4.363.1. Head 3d135a1c43 merged onto main 40206fe50d with --no-ff (clean, as f1ac51d65c). Main baseline is a Release build of 40206fe50d on the same machine.

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer \
ctest --test-dir build -R '^agc_driver_linear_target_|^agc_driver_graphics$|^agc_driver_gcn_detile$|^agc_detile_small_elements$' -V
main 40206fe50d this PR
Result 20 of 20 passed 30 of 31 passed
Insert instance layer "VK_LAYER_KHRONOS_validation" 23 34
was not found but was requested by env var VK_INSTANCE_LAYERS 0 0
VUID- none none

One test the PR adds fails, deterministically (2 of 2 runs with the layer, and once more without it):

linear publication alias: bytes=1114112, wrong GPU pixels=0, wrong CPU bytes=557056
AGC graphics: linear publication lost GPU results or CPU bytes
1/1 Test #2680: agc_driver_linear_target_publication_alias ...***Failed    0.57 sec

The other five agc_driver_linear_target_publication_* cases pass on the same build. Eleven tests are added by this PR and do not exist on main (concurrent_bytes, preserved_bytes, preserved_bytes_seeded, recipe and the seven publication* cases). On both sides the four agc_driver_linear_target_dma_buf_* tests skip with skipped, the device does not select watched dma-buf imports; CTest counts them as passed. All device tests selected the RTX 4090. I did not bisect whether the failure comes from the latest commit (3d135a1c43, baseline refresh) or was already present on db12f5d6fb.

No VUID- errors on either side, but agc_driver_linear_target_publication_alias fails on Ada with 557056 of 1114112 CPU bytes wrong; everything else in the selection passes.

AI-assisted: yes (Claude Code)

@MarcZX10

Copy link
Copy Markdown
Contributor Author

@oneandonlydean @adriadam10 Decision on the open requests for head 3d135a1 (no new commit pushed in this pass).

Memory design: shared snapshot per target, not a cap. I read StorageTexture::PrepareLinearDraw (Graphics/src/Texture.cpp:7698). It allocates a DeviceBuffer of 2x the target's linear bytes per recorded draw and passes it to recorder->Keep / KeepBytes. FinishLinearDraw (:7735) resets linearDrawOriginal, but the recorder still holds the buffer until the work retires, so that reset frees nothing. That matches the 71 MiB per draw figure. A cap that flushes at the limit would also force an extra write-back per draw and does not change the design. The shared snapshot removes the per-draw allocation, but it changes the flush and re-baseline order that PrepareLinearDraw relies on, so it needs its own change and a run.

Not done here:

  • No code change pushed. A shared snapshot cannot be verified in this session: it needs a full build (hours on this machine, so I compiled nothing) and a write-watched GPU run for agc_driver_linear_target_publication_alias and the 60/180-draw memory table.
  • The per-draw trace_digest comparison on a 24 MiB target was not run.
  • oneandonlydean's question (which CPU writes this PR saves that main's drawn-rectangle store loses) is not answered: no failing case on main was reproduced here.
  • The Tested section and Depends on were not updated.

Next step for the author: a minimal test on main that loses a CPU write, plus the shared-snapshot change with memory and trace numbers from a write-watched host.

@upipibi

upipibi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

RTX 3070 on Windows at the current head 3d135a1c43: agc_driver_linear_target_publication_alias fails here the same way as in @domx4q's 4090 run. agc_driver_linear_target_publication_reader also fails here, and it passed on the 4090.

Setup: NVIDIA GeForce RTX 3070 (Ampere), driver 616.56, Windows 11 Pro 10.0.26100, WinLibs GCC 15.2.0 r7, Release, Vulkan validation layer 1.4.363. Head merged onto main 61f7f5925c with --no-ff (clean). Env: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer, ctest -R '^agc_driver_graphics$|linear_target' -V, 3 runs each.

main this PR
Result 14 of 14 passed, 3 of 3 runs 23 of 25 passed, the same 2 failures in 3 of 3 runs
VUID- 0 0

Both failures:

agc_driver_linear_target_publication_alias:
linear publication alias: bytes=1114112, wrong GPU pixels=0, wrong CPU bytes=557056
AGC graphics: linear publication lost GPU results or CPU bytes

agc_driver_linear_target_publication_reader:
[gpu] storage image 0x200000000: guest memory changed while GPU results were pending; keeping the CPU's blocks
AGC graphics: the completion label was not GPU-visible

The alias numbers match the 4090's exactly: half of the CPU bytes are lost and the GPU pixels are all correct. The reader failure is new; it differs from the alias one and happens on every run here. The write-watch probe reports that host imports of write-watched memory keep the watch on this machine, if that helps narrow it down.

AI-assisted (Claude Code).

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 27, 2026
@ycbuzi

ycbuzi commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Tested 3d135a1c43 merged into main, with the whole ctest suite on each machine below. Nothing fails that does not also fail on main on the same machine.

  • Windows Server 2022 (GitHub-hosted runner), full build, WinLibs GCC 15.2.0: 99% tests passed, 2 tests failed out of 6829; 99% tests passed, 2 tests failed out of 6829. 2 of the failing tests fail on main too. run
  • Windows Server 2025 (GitHub-hosted runner), full build, WinLibs GCC 15.2.0: 100% tests passed, 0 tests failed out of 6829; 100% tests passed, 0 tests failed out of 6829. run

Not covered: GPU. This pull request changes GPU code, and the GitHub-hosted runners above have no GPU, so the Vulkan and GPU tests fail there on main and on this pull request alike. This result says nothing about the changed GPU paths; they still need a run on a real GPU.

AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs fix error Closes an issue (Fixes #N) needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AGC: a recorded draw into a resident linear color target stores the whole target back over CPU stores made after the draw