fix(agc): keep BGRA color targets resident between draws #65
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/65"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by SamG-Coder on 2026-09-28T06:27:21Z.
BGRA color targets fail the exact guest-texture-format lookup and fall back to a synchronous framebuffer round-trip for every draw. This keeps them resident using compatible RGBA storage with the original BGRA attachment view. Presentation checks the actual display channel order, attachment views request only attachment usage, and host-write barriers include the host stage.
This follows the existing linked PRX/Vulkan path. It adds no interpreter, separate runtime process, or new shader compilation path.
Validation
c368817; Windows Release build and four focused CTest tests pass atfa787cf.agc_driver,agc_driver_flip, andagc_driver_pm4remain. The full suite was not rerun after rebase; the relevant focused tests and rendered stress case were.These original measurements compare
e424b6bwith966c324(upstreamce6ac25plus this patch), on Windows / RTX 5080 / Ryzen 7 9800X3D. They use 10 warmup and 60 measured frames, host flip-completion timing, and captures after measurement. They are not physical PS5 results, GPU-only throughput, or a claim of consistently paced 60 FPS. A same-build control with resident targets disabled reproduced the slowdown. BGRA presentation still uses the existing once-per-frame transfer when storage/display channel order differs. Depth testing and full-game compatibility are outside this change.Separate known issue
We independently reproduced
VUID-vkDestroyDevice-device-05137during headless-to-windowed device replacement, including with resident targets disabled. This is the same lifetime error described in #59. It is recorded here but deliberately left out of this PR; #59 has not been incorporated or validated by these tests.Screenshots and the downloadable benchmark/validation report are attached in the PR conversation. Demo sources, images, logs, and reports remain outside the repository.
Imported from boykopovar/AnyPS5. Originally posted by SamG-Coder on 2026-09-28T06:28:35Z.
Test screenshots and report
These are captures from PS5 SDK demos converted to Windows executables with AnyPS5. They are not physical-console captures.
48 lit draws, 49,152 triangles, 1920×1080 — post-rebase commit
fa787cf. The fresh run measured 60.49 FPS; both checked frames matched the independent pixel reference within 1/255. Full-resolution framebuffer capture, frame 68:48 textured draws — original validated patch
966c324. Full-resolution framebuffer capture, frame 68; 58.99 FPS in the reported run and maximum sampled channel error 1/255:Actual GPU presentation capture, 12 textured draws. Frame 68 from the original patch validation; the existing capture utility downsamples to 480×270:
Download benchmark and validation report. Includes the standalone HTML report, all nine before/after measurements in JSON, screenshots, post-rebase stress log, and PR validation notes. The original report retains its measured commit IDs; the post-rebase notes and log identify the later check separately.
We also independently observed the device-lifetime validation error covered by #59, including with resident targets disabled. It remains outside this patch. All evidence files stay outside the Git repository.