feat(agc,videoout): save the displayed frame as a PNG with a screenshot key #4891

Merged
dantdmdarealguy merged 1 commit from upstream-pr/4891 into main 2026-10-20 08:40:03 +00:00
dantdmdarealguy commented 2026-10-13 02:05:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-13T02:05:32Z.


What

Adds a screenshot key. F12 in the game window saves the next displayed frame as a PNG at the display buffer's resolution, without the window's scaling, letterbox or performance overlay. Files go to anyps5-screenshots/ beside the executable, or to ANYPS5_SCREENSHOTS, and are named <title ID>-<YYYYMMDD-HHMMSS>.png. The key is a new Screenshot action in anyps5-input.ini. Like ToggleFullscreen and TogglePerformanceOverlay, it accepts only KEY: sources.

Today the only way to capture a frame is APS5_DUMP_FRAMES, which writes downscaled BMPs of the first N frames from start-up. That doesn't help with a frame at a particular moment (a rendering bug, a compatibility report), and CONTRIBUTING asks for screenshots in PRs.

How it works:

  • Pad::KeyboardMouse::HandleEvent returns a screenshot request on the key-down, next to toggleFullscreen and togglePerformanceOverlay: keyboard only, no key repeat. PadInput::HandleEvent calls the new AgcDriverRequestScreenshot_nid_postfix() when the event's window is the game window. That call sets an atomic flag (AgcDriver::Screenshot).

  • VulkanDevice::PresentDisplayBuffer takes the flag and reuses the GPU frame-dump readback that APS5_DUMP_FRAMES records in the presentation command buffer, at scale 1 on every present path:

    • drawn: PresentationPass::RecordDump(..., 1, ...) and DumpExtent(width, height, 1)
    • direct blit: DumpExtent(width, height, 1)
    • scaler: slot.dumpScale = 1
    • linear (tilingMode == 1)

    WriteFrameDump takes the full-resolution readback before the frame-dump downscale. Encoding runs after the slot's fence on the existing FrameDumpWriter thread, so the presenter never blocks on it.

  • On an HDR10 swapchain, present refuses GPU dumps through the scaler, and APS5_DUMP_FRAMES already reads those frames back on the CPU. The screenshot does the same: the linear path, or a tiled display with no resident image, reads ReadDisplayBuffer (or the DCC clear colour) and queues it after a successful present. A resident PQ display on HDR10 goes through the drawn path. In both cases a PQ frame is saved after the same PQ to SDR conversion that frame dumps use.

  • A request stays pending while the writer still has queued frames, so repeated presses can't overflow the writer's 64 MiB queue (one 4K frame is 33 MiB). A frame dropped because the swapchain is out of date puts the request back. On a frame that APS5_DUMP_FRAMES also dumps on the GPU, the screenshot waits for the next frame. A BMP write failure turns off the optional BMP dumps (FrameDumpOutput) but not screenshots.

  • Encoding uses the existing decoder_png (Decoder::Png::Encode, already used by libScePngEnc) as 8-bit RGB. Alpha is dropped because the presented image is opaque.

  • A screenshot that can't be written (for example, an unwritable directory) stops the process through the writer's existing failure path, following "every function either does what it is supposed to or throws".

Replaces #2501, which the intake pause closed and GitHub won't reopen. Rebased on current main as one commit.

No guest-visible behaviour changes. sceShareCaptureScreenshot is untouched.

Tested

Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1714), WinLibs GCC 15.2.0, full Release build (BUILD_TESTING=ON) on main 6b8228b2b:

  • cmake --build of everything and of the libs target succeed, with no warnings in the touched files. tools/check_test_registration.py and tools/check_conventions.py --base origin/main pass.

  • ctest -R "agc_screenshot|pad_input_mapping|pad_sdl|pad_keyboard_mouse|patched_libraries|video_out|agc_driver_mesh": 36/36 pass. The video_out_flip_* tests and guest_video_out_wqhd_detection_no_vulkan skip, the same as on main (35/35 there; main has no agc_screenshot).

  • agc_screenshot (new) covers:

    • merged requests
    • ANYPS5_SCREENSHOTS with a directory that doesn't exist yet
    • title-ID naming
    • no overwrite within the same second
    • BGRA to RGB with opaque alpha, decoded back with Decoder::Png::Decode
    • rejection of invalid frames

    It doesn't build on main, which has no AgcDriver::Screenshot.

  • pad_keyboard_mouse: F12 down asks for a screenshot and nothing else; a repeated F12 and F12 up ask for nothing. pad_input_mapping: F12 is the default Screenshot key, Screenshot = KEY:F9 moves it, and MOUSE: and WHEEL: sources are refused. Built against main's sources, both test files fail to compile ('Screenshot' is not a member of 'Pad::InputControl', 'struct Pad::InputRequests' has no member named 'screenshot').

  • patched_libraries passes, so the patched libSceVideoOut.prx loads with its new AgcDriverRequestScreenshot_nid_postfix import. decoder_png is linked into libSceAgcDriver with --exclude-libs, so libSceVideoOut keeps its own PNG decoder.

  • Drawn PresentationPass path, in two homebrew titles that present a resident render target that needs conversion. With APS5_CAPTURE_TRACE=1, every present line has resident=1 and every blit line has direct=0. With APS5_DUMP_FRAMES=1, the log says [gpu] frame_000.bmp: 480x270 (or 960x540) display read back on the GPU. That is the PresentationPass::DumpExtent extent; the scaler path would report the full source size.

    • SymphonyStation5 (PPSA17641), display buffer 1920x1080, window presented at 1258x708: F12 writes PPSA17641-20261019-023348.png, an 8-bit RGB PNG at 1920x1080. The blit line of that frame is direct=0 after present ... resident=1. The image matches the window without the letterbox.
    • ProsperoStore (PPSA99000), display buffer 3840x2160: F12 writes PPSA99000-20261019-023501.png at 3840x2160 (8-bit RGB), which matches the window.
  • Guest-memory (AGC compute presentation) path: DOOM Shareware (PPSA99666, lowbit/ps5-doom v1.1.1), display buffer 1920x1080, no resident presents in the capture trace. F12 writes PPSA99666-20261019-023545.png at 1920x1080, matching the window. No frame_*.bmp is written when APS5_DUMP_FRAMES is unset.

  • Not tested: the HDR10 swapchain path. The TV and the monitor here are not in HDR mode (video_out_hdr_present: "HDR output is unavailable on this host"), so the CPU readback for an HDR10 swapchain hasn't run here.

F12 screenshots (drawn path and guest-memory path)

SymphonyStation5 (PPSA17641), drawn PresentationPass path, 1920x1080:

SymphonyStation5 F12

ProsperoStore (PPSA99000), drawn path, 3840x2160:

ProsperoStore F12

DOOM (PPSA99666), guest-memory path, 1920x1080:

DOOM F12

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: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 5080, driver 32.0.16.1714, Windows 11 Pro
  • AI-assisted: yes, some AI assistance was used
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4837333241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891). Originally posted by [dantdmdarealguy](https://github.com/dantdmdarealguy) on 2026-10-13T02:05:32Z. --- ### What Adds a screenshot key. F12 in the game window saves the next displayed frame as a PNG at the display buffer's resolution, without the window's scaling, letterbox or performance overlay. Files go to `anyps5-screenshots/` beside the executable, or to `ANYPS5_SCREENSHOTS`, and are named `<title ID>-<YYYYMMDD-HHMMSS>.png`. The key is a new `Screenshot` action in `anyps5-input.ini`. Like `ToggleFullscreen` and `TogglePerformanceOverlay`, it accepts only `KEY:` sources. Today the only way to capture a frame is `APS5_DUMP_FRAMES`, which writes downscaled BMPs of the first N frames from start-up. That doesn't help with a frame at a particular moment (a rendering bug, a compatibility report), and CONTRIBUTING asks for screenshots in PRs. How it works: - `Pad::KeyboardMouse::HandleEvent` returns a `screenshot` request on the key-down, next to `toggleFullscreen` and `togglePerformanceOverlay`: keyboard only, no key repeat. `PadInput::HandleEvent` calls the new `AgcDriverRequestScreenshot_nid_postfix()` when the event's window is the game window. That call sets an atomic flag (`AgcDriver::Screenshot`). - `VulkanDevice::PresentDisplayBuffer` takes the flag and reuses the GPU frame-dump readback that `APS5_DUMP_FRAMES` records in the presentation command buffer, at scale 1 on every present path: - drawn: `PresentationPass::RecordDump(..., 1, ...)` and `DumpExtent(width, height, 1)` - direct blit: `DumpExtent(width, height, 1)` - scaler: `slot.dumpScale = 1` - linear (`tilingMode == 1`) `WriteFrameDump` takes the full-resolution readback before the frame-dump downscale. Encoding runs after the slot's fence on the existing `FrameDumpWriter` thread, so the presenter never blocks on it. - On an HDR10 swapchain, `present` refuses GPU dumps through the scaler, and `APS5_DUMP_FRAMES` already reads those frames back on the CPU. The screenshot does the same: the linear path, or a tiled display with no resident image, reads `ReadDisplayBuffer` (or the DCC clear colour) and queues it after a successful present. A resident PQ display on HDR10 goes through the drawn path. In both cases a PQ frame is saved after the same PQ to SDR conversion that frame dumps use. - A request stays pending while the writer still has queued frames, so repeated presses can't overflow the writer's 64 MiB queue (one 4K frame is 33 MiB). A frame dropped because the swapchain is out of date puts the request back. On a frame that `APS5_DUMP_FRAMES` also dumps on the GPU, the screenshot waits for the next frame. A BMP write failure turns off the optional BMP dumps (`FrameDumpOutput`) but not screenshots. - Encoding uses the existing `decoder_png` (`Decoder::Png::Encode`, already used by libScePngEnc) as 8-bit RGB. Alpha is dropped because the presented image is opaque. - A screenshot that can't be written (for example, an unwritable directory) stops the process through the writer's existing failure path, following "every function either does what it is supposed to or throws". Replaces #2501, which the intake pause closed and GitHub won't reopen. Rebased on current `main` as one commit. No guest-visible behaviour changes. `sceShareCaptureScreenshot` is untouched. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1714), WinLibs GCC 15.2.0, full Release build (`BUILD_TESTING=ON`) on `main` `6b8228b2b`: - `cmake --build` of everything and of the `libs` target succeed, with no warnings in the touched files. `tools/check_test_registration.py` and `tools/check_conventions.py --base origin/main` pass. - `ctest -R "agc_screenshot|pad_input_mapping|pad_sdl|pad_keyboard_mouse|patched_libraries|video_out|agc_driver_mesh"`: 36/36 pass. The `video_out_flip_*` tests and `guest_video_out_wqhd_detection_no_vulkan` skip, the same as on `main` (35/35 there; `main` has no `agc_screenshot`). - `agc_screenshot` (new) covers: - merged requests - `ANYPS5_SCREENSHOTS` with a directory that doesn't exist yet - title-ID naming - no overwrite within the same second - BGRA to RGB with opaque alpha, decoded back with `Decoder::Png::Decode` - rejection of invalid frames It doesn't build on `main`, which has no `AgcDriver::Screenshot`. - `pad_keyboard_mouse`: F12 down asks for a screenshot and nothing else; a repeated F12 and F12 up ask for nothing. `pad_input_mapping`: F12 is the default `Screenshot` key, `Screenshot = KEY:F9` moves it, and `MOUSE:` and `WHEEL:` sources are refused. Built against `main`'s sources, both test files fail to compile (`'Screenshot' is not a member of 'Pad::InputControl'`, `'struct Pad::InputRequests' has no member named 'screenshot'`). - `patched_libraries` passes, so the patched `libSceVideoOut.prx` loads with its new `AgcDriverRequestScreenshot_nid_postfix` import. `decoder_png` is linked into `libSceAgcDriver` with `--exclude-libs`, so `libSceVideoOut` keeps its own PNG decoder. - Drawn `PresentationPass` path, in two homebrew titles that present a resident render target that needs conversion. With `APS5_CAPTURE_TRACE=1`, every `present` line has `resident=1` and every `blit` line has `direct=0`. With `APS5_DUMP_FRAMES=1`, the log says `[gpu] frame_000.bmp: 480x270` (or `960x540`) `display read back on the GPU`. That is the `PresentationPass::DumpExtent` extent; the scaler path would report the full source size. - SymphonyStation5 (PPSA17641), display buffer 1920x1080, window `presented at 1258x708`: F12 writes `PPSA17641-20261019-023348.png`, an 8-bit RGB PNG at 1920x1080. The `blit` line of that frame is `direct=0` after `present ... resident=1`. The image matches the window without the letterbox. - ProsperoStore (PPSA99000), display buffer 3840x2160: F12 writes `PPSA99000-20261019-023501.png` at 3840x2160 (8-bit RGB), which matches the window. - Guest-memory (AGC compute presentation) path: DOOM Shareware (PPSA99666, lowbit/ps5-doom v1.1.1), display buffer 1920x1080, no resident presents in the capture trace. F12 writes `PPSA99666-20261019-023545.png` at 1920x1080, matching the window. No `frame_*.bmp` is written when `APS5_DUMP_FRAMES` is unset. - Not tested: the HDR10 swapchain path. The TV and the monitor here are not in HDR mode (`video_out_hdr_present`: "HDR output is unavailable on this host"), so the CPU readback for an HDR10 swapchain hasn't run here. <details><summary>F12 screenshots (drawn path and guest-memory path)</summary> SymphonyStation5 (PPSA17641), drawn `PresentationPass` path, 1920x1080: ![SymphonyStation5 F12](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/pr4891/f12-drawn-symphonystation5-1080p.png) ProsperoStore (PPSA99000), drawn path, 3840x2160: ![ProsperoStore F12](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/pr4891/f12-drawn-prosperostore-2160p.png) DOOM (PPSA99666), guest-memory path, 1920x1080: ![DOOM F12](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/pr4891/f12-guestmemory-doom-1080p.png) </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 5080, driver 32.0.16.1714, Windows 11 Pro - [x] AI-assisted: yes, some AI assistance was used
blawesom commented 2026-10-13 07:01:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-13T07:01:20Z.


Rebase handoff — rebased onto current main, authorship unchanged.

One conflict: the CMakeLists.txt test registration list — main's current list with this PR's agc_screenshot_tests inserted.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; tools/check_conventions.py --base origin/main passes
  • full suite: 1014/1015 — the only failure is the agc_driver_tessellation segfault that current main itself has (reported on #4727; not caused by this PR)

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/4891
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is 91382f55a.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6140163684 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#issuecomment-6140163684). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-13T07:01:20Z. --- **Rebase handoff** — rebased onto current `main`, authorship unchanged. One conflict: the `CMakeLists.txt` test registration list — main's current list with this PR's `agc_screenshot_tests` inserted. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; `tools/check_conventions.py --base origin/main` passes - **full suite: 1014/1015** — the only failure is the `agc_driver_tessellation` segfault that current `main` itself has (reported on #4727; not caused by this PR) **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/4891 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `91382f55a`.
adriadam10 commented 2026-10-13 11:47:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T11:47:58Z.


#5106 made agc_driver_mesh_tests link libSceAgcDriver instead of compiling the driver sources, so this PR conflicts on its link line: when rebasing, drop the decoder_png addition to agc_driver_mesh_tests (it comes through libSceAgcDriver now).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144849627 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#issuecomment-6144849627). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T11:47:58Z. --- #5106 made `agc_driver_mesh_tests` link `libSceAgcDriver` instead of compiling the driver sources, so this PR conflicts on its link line: when rebasing, drop the `decoder_png` addition to `agc_driver_mesh_tests` (it comes through `libSceAgcDriver` now).
blawesom commented 2026-10-13 18:57:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-13T18:57:19Z.


Rebase handoff (v2) — this morning's rebase/4891 went stale: main's #5106 switched agc_driver_mesh_tests to link the prebuilt libSceAgcDriver. This v2 rebases onto current main, authorship unchanged.

Two conflicts resolved:

  • the mesh-tests link line now keeps main's prebuilt libSceAgcDriver and this PR's screenshot dependencies (shader_recompiler_agc_driver, decoder_png, jpeg_turbo, libkernel, ${CMAKE_DL_LIBS}) plus its agc_trace_revision dependency;
  • the test-registration list keeps main's current entries with agc_screenshot_tests inserted.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; tools/check_conventions.py --base origin/main passes
  • full suite: 1071/1072 — the only failure is the known main regression (agc_driver_tessellation segfault, #4727). This PR's own screenshot tests pass.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/4891-v2
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is c1a49dfb3.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6152902293 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#issuecomment-6152902293). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-13T18:57:19Z. --- **Rebase handoff (v2)** — this morning's `rebase/4891` went stale: main's #5106 switched `agc_driver_mesh_tests` to link the prebuilt `libSceAgcDriver`. This v2 rebases onto current `main`, authorship unchanged. Two conflicts resolved: - the mesh-tests link line now keeps main's prebuilt `libSceAgcDriver` **and** this PR's screenshot dependencies (`shader_recompiler_agc_driver`, `decoder_png`, `jpeg_turbo`, `libkernel`, `${CMAKE_DL_LIBS}`) plus its `agc_trace_revision` dependency; - the test-registration list keeps main's current entries with `agc_screenshot_tests` inserted. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; `tools/check_conventions.py --base origin/main` passes - **full suite: 1071/1072** — the only failure is the known `main` regression (`agc_driver_tessellation` segfault, #4727). This PR's own screenshot tests pass. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/4891-v2 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `c1a49dfb3`.
dantdmdarealguy commented 2026-10-14 00:28:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-14T00:28:11Z.


Thanks @blawesom for the rebases and the Linux / RX 9070 XT run, and @adriadam10 for the note on #5106.

I rebased the branch myself onto 7a0c838ca (head ab0e383ac), so the rebase/4891 branches aren't needed. As you described, the agc_driver_mesh_tests link line is now main's (libSceAgcDriver SDL2-static libc), without decoder_png. agc_screenshot_tests is added to the test registration list.

Testing in a title found a bug from my earlier conflict resolution, and this head fixes it. WriteFrameDump never read slot.dumpScreenshot, so F12 wrote the frame as frame_000.bmp through the frame-dump path instead of a PNG. It now takes the screenshot branch before the frame-dump downscale.

Verified on Windows 11 Pro, i9-14900K, RTX 5080 (driver 32.0.16.1714), WinLibs GCC 15.2.0, Release:

  • The full build passes. The agc_screenshot, agc_driver_mesh, pad_input_mapping, pad_sdl, patched_libraries and video_out* tests pass (18 run, the 6 Vulkan-less video_out flip and WQHD tests skip). The conventions and test registration checks also pass.
  • DOOM Shareware (PPSA99666, lowbit/ps5-doom v1.1.1), with AGC compute presentation:
    • F12 in the launcher menu writes anyps5-screenshots/PPSA99666-20261013-182723.png, an 8-bit RGB PNG at 1920x1080 that matches the window without its scaling.
    • A second press writes a second file.
    • With APS5_NO_RESIDENT_PRESENT=1 it does the same, and no frame_*.bmp is written.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158111370 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#issuecomment-6158111370). Originally posted by [dantdmdarealguy](https://github.com/dantdmdarealguy) on 2026-10-14T00:28:11Z. --- Thanks @blawesom for the rebases and the Linux / RX 9070 XT run, and @adriadam10 for the note on #5106. I rebased the branch myself onto `7a0c838ca` (head `ab0e383ac`), so the `rebase/4891` branches aren't needed. As you described, the `agc_driver_mesh_tests` link line is now main's (`libSceAgcDriver SDL2-static libc`), without `decoder_png`. `agc_screenshot_tests` is added to the test registration list. Testing in a title found a bug from my earlier conflict resolution, and this head fixes it. `WriteFrameDump` never read `slot.dumpScreenshot`, so F12 wrote the frame as `frame_000.bmp` through the frame-dump path instead of a PNG. It now takes the screenshot branch before the frame-dump downscale. Verified on Windows 11 Pro, i9-14900K, RTX 5080 (driver 32.0.16.1714), WinLibs GCC 15.2.0, Release: - The full build passes. The `agc_screenshot`, `agc_driver_mesh`, `pad_input_mapping`, `pad_sdl`, `patched_libraries` and `video_out*` tests pass (18 run, the 6 Vulkan-less `video_out` flip and WQHD tests skip). The conventions and test registration checks also pass. - DOOM Shareware (PPSA99666, lowbit/ps5-doom v1.1.1), with AGC compute presentation: - F12 in the launcher menu writes `anyps5-screenshots/PPSA99666-20261013-182723.png`, an 8-bit RGB PNG at 1920x1080 that matches the window without its scaling. - A second press writes a second file. - With `APS5_NO_RESIDENT_PRESENT=1` it does the same, and no `frame_*.bmp` is written.
adriadam10 commented 2026-10-14 10:55:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T10:55:57Z.

Review: CHANGES_REQUESTED


Thanks for the rebase. main moved again and the PR now conflicts in four files, and two of them need the feature re-integrated rather than a textual merge:

  • core/libs/prx/libSceVideoOut/src/PadInput.cpp (HandleEvent/publish): key handling moved to KeyboardMouse::HandleEvent, which returns InputRequests (core/libs/prx/libSceVideoOut/src/KeyboardMouse.cpp:148). F12 should become a screenshot request there, next to toggleFullscreen (focused window, no key repeat, KEY: only), and PadInput should call AgcDriverRequestScreenshot_nid_postfix() from the returned requests. Please add a case to core/libs/prx/libSceVideoOut/tests/KeyboardMouse.cpp like the F11 one.
  • core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp (PresentDisplayBuffer/present): presentation now has a drawn path (PresentationPass, BT.2100 PQ on an SDR output) whose dump goes through state->presentation->RecordDump(commands, slotIndex, scale, ...). The screenshot has to pass scale 1 there too (the PR only sets it in the direct and scaler paths), and present(...) now takes a trailing layer argument. Please check that F12 gives the full-resolution frame on this path as well and say what you ran.
  • core/libs/prx/libSceAgcDriver/CMakeLists.txt (source list next to PresentationPass.cpp) and VulkanDevice.hpp (present signature) are plain adjacency conflicts.

Please rebase onto current main, rerun agc_screenshot and the video-out tests, and push; I'll look at it again then.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5516820727 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#pullrequestreview-5516820727). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T10:55:57Z. **Review:** CHANGES_REQUESTED --- Thanks for the rebase. `main` moved again and the PR now conflicts in four files, and two of them need the feature re-integrated rather than a textual merge: - `core/libs/prx/libSceVideoOut/src/PadInput.cpp` (`HandleEvent`/`publish`): key handling moved to `KeyboardMouse::HandleEvent`, which returns `InputRequests` (`core/libs/prx/libSceVideoOut/src/KeyboardMouse.cpp:148`). F12 should become a `screenshot` request there, next to `toggleFullscreen` (focused window, no key repeat, `KEY:` only), and `PadInput` should call `AgcDriverRequestScreenshot_nid_postfix()` from the returned requests. Please add a case to `core/libs/prx/libSceVideoOut/tests/KeyboardMouse.cpp` like the F11 one. - `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` (`PresentDisplayBuffer`/`present`): presentation now has a `drawn` path (`PresentationPass`, BT.2100 PQ on an SDR output) whose dump goes through `state->presentation->RecordDump(commands, slotIndex, scale, ...)`. The screenshot has to pass scale 1 there too (the PR only sets it in the `direct` and scaler paths), and `present(...)` now takes a trailing `layer` argument. Please check that F12 gives the full-resolution frame on this path as well and say what you ran. - `core/libs/prx/libSceAgcDriver/CMakeLists.txt` (source list next to `PresentationPass.cpp`) and `VulkanDevice.hpp` (`present` signature) are plain adjacency conflicts. Please rebase onto current `main`, rerun `agc_screenshot` and the video-out tests, and push; I'll look at it again then.
github-actions[bot] commented 2026-10-15 12:07:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:07:05Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 7622 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L162-163
PR 8160 docs/dev/ENVIRONMENT.md L75
PR 8161 docs/dev/ENVIRONMENT.md L75

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 674 core/libs/prx/libSceVideoOut/src/InputMapping.cpp
core/libs/prx/libSceVideoOut/src/PadInput.cpp
docs/user/INPUT_MAPPING.md
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/user/USAGE.md
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 5441 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/user/USAGE.md
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6146 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6171 docs/user/USAGE.md
PR 6177 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6611 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6615 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6636 docs/dev/ENVIRONMENT.md
PR 6658 core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp
docs/dev/ENVIRONMENT.md
PR 6682 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6683 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6718 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp
PR 6759 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/user/USAGE.md
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6820 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6937 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 6951 docs/dev/ENVIRONMENT.md
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/include/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7002 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7085 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceVideoOut/src/InputMapping.cpp
PR 7223 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7332 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 7395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7446 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 7464 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 7484 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 7499 core/libs/prx/libScePad/include/InputMapping.hpp
core/libs/prx/libSceVideoOut/src/InputMapping.cpp
core/libs/prx/libSceVideoOut/src/PadInput.cpp
core/libs/prx/libSceVideoOut/tests/InputMapping.cpp
docs/user/INPUT_MAPPING.md
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 7615 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7618 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 7677 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7862 docs/user/USAGE.md
PR 7881 core/libs/prx/libSceVideoOut/src/PadInput.cpp
docs/user/INPUT_MAPPING.md
PR 7888 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7922 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 7933 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7948 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191657982 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#issuecomment-6191657982). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:07:05Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 7622](https://www.github.com/boykopovar/AnyPS5/pull/7622) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` [L162-163](https://github.com/boykopovar/AnyPS5/blob/a3c956a2f38a1007dd185983f464a7305fe15d83/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L162-L163) | | | | [PR 8160](https://www.github.com/boykopovar/AnyPS5/pull/8160) | `docs/dev/ENVIRONMENT.md` [L75](https://github.com/boykopovar/AnyPS5/blob/a3c956a2f38a1007dd185983f464a7305fe15d83/docs/dev/ENVIRONMENT.md#L75) | | | | [PR 8161](https://www.github.com/boykopovar/AnyPS5/pull/8161) | `docs/dev/ENVIRONMENT.md` [L75](https://github.com/boykopovar/AnyPS5/blob/a3c956a2f38a1007dd185983f464a7305fe15d83/docs/dev/ENVIRONMENT.md#L75) | | | 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 674](https://www.github.com/boykopovar/AnyPS5/pull/674) | `core/libs/prx/libSceVideoOut/src/InputMapping.cpp`<br>`core/libs/prx/libSceVideoOut/src/PadInput.cpp`<br>`docs/user/INPUT_MAPPING.md` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/user/USAGE.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/user/USAGE.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6171](https://www.github.com/boykopovar/AnyPS5/pull/6171) | `docs/user/USAGE.md` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6611](https://www.github.com/boykopovar/AnyPS5/pull/6611) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6636](https://www.github.com/boykopovar/AnyPS5/pull/6636) | `docs/dev/ENVIRONMENT.md` | | [PR 6658](https://www.github.com/boykopovar/AnyPS5/pull/6658) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 6682](https://www.github.com/boykopovar/AnyPS5/pull/6682) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp` | | [PR 6759](https://www.github.com/boykopovar/AnyPS5/pull/6759) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/user/USAGE.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6937](https://www.github.com/boykopovar/AnyPS5/pull/6937) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ENVIRONMENT.md`<br>`docs/user/USAGE.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md`<br>`docs/user/USAGE.md` | | [PR 6951](https://www.github.com/boykopovar/AnyPS5/pull/6951) | `docs/dev/ENVIRONMENT.md` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceVideoOut/src/InputMapping.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7292](https://www.github.com/boykopovar/AnyPS5/pull/7292) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md`<br>`docs/user/USAGE.md` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7457](https://www.github.com/boykopovar/AnyPS5/pull/7457) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ENVIRONMENT.md` | | [PR 7464](https://www.github.com/boykopovar/AnyPS5/pull/7464) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 7499](https://www.github.com/boykopovar/AnyPS5/pull/7499) | `core/libs/prx/libScePad/include/InputMapping.hpp`<br>`core/libs/prx/libSceVideoOut/src/InputMapping.cpp`<br>`core/libs/prx/libSceVideoOut/src/PadInput.cpp`<br>`core/libs/prx/libSceVideoOut/tests/InputMapping.cpp`<br>`docs/user/INPUT_MAPPING.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ENVIRONMENT.md` | | [PR 7615](https://www.github.com/boykopovar/AnyPS5/pull/7615) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7618](https://www.github.com/boykopovar/AnyPS5/pull/7618) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md`<br>`docs/user/USAGE.md` | | [PR 7677](https://www.github.com/boykopovar/AnyPS5/pull/7677) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7862](https://www.github.com/boykopovar/AnyPS5/pull/7862) | `docs/user/USAGE.md` | | [PR 7881](https://www.github.com/boykopovar/AnyPS5/pull/7881) | `core/libs/prx/libSceVideoOut/src/PadInput.cpp`<br>`docs/user/INPUT_MAPPING.md` | | [PR 7888](https://www.github.com/boykopovar/AnyPS5/pull/7888) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7922](https://www.github.com/boykopovar/AnyPS5/pull/7922) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 7933](https://www.github.com/boykopovar/AnyPS5/pull/7933) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7948](https://www.github.com/boykopovar/AnyPS5/pull/7948) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8004](https://www.github.com/boykopovar/AnyPS5/pull/8004) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md` |
dantdmdarealguy commented 2026-10-19 07:54:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-19T07:54:39Z.


Rebased onto main 6b8228b2b as one commit.

  • PadInput.cpp / KeyboardMouse: F12 is now a screenshot request in InputRequests. KeyboardMouse::HandleEvent sets it under the same condition as toggleFullscreen and togglePerformanceOverlay: keyboard only, key-down, not already pressed, key repeats dropped. KeyboardMouse::Compose ignores the control. PadInput::HandleEvent calls AgcDriverRequestScreenshot_nid_postfix() from the returned requests when the event's window is the game window, like the other two. parseBinding refuses MOUSE: for Screenshot with its own message, like TogglePerformanceOverlay; WHEEL: was already refused for every non-button action. Tests:
    • tests/KeyboardMouse.cpp (pad_keyboard_mouse) has a case next to the F11/F10 one: F12 down gives screenshot and nothing else, and a repeated F12 and F12 up give nothing.
    • tests/InputMapping.cpp (pad_input_mapping) has screenshotBinding, like performanceOverlayBinding: F12 is the default, Screenshot = KEY:F9 moves it, and MOUSE:Left and WHEEL:Up are refused.
  • VulkanDevice.cpp: present uses const auto scale = state->nextDumpScreenshot ? 1 : DumpScale(); for the drawn, direct and scaler paths alike. So the drawn path gets PresentationPass::DumpExtent(width, height, 1) and state->presentation->RecordDump(commands, slotIndex, 1, ...). present(...) keeps main's trailing layer argument and the newer passthrough argument, and WriteFrameDump keeps its if (slot.dumpScreenshot) branch. Two things on current main needed handling as well:
    • On an HDR10 swapchain, present refuses GPU dumps through the scaler ("dumps on the CPU"). There the screenshot now takes the same CPU readback as APS5_DUMP_FRAMES (ReadDisplayBuffer, or the DCC clear colour) and queues it after a successful present. A resident PQ display on HDR10 is drawn and uses RecordDump.
    • FrameDumpWriter::Enqueue now drops frames once a BMP write has failed. Screenshots are exempt, so a failed optional BMP dump can't silently swallow a screenshot.
  • CMakeLists.txt and VulkanDevice.hpp: adjacency only. Screenshot.cpp sits next to PresentationPass.cpp/PerformanceOverlay.cpp, and takeScreenshot is declared after main's present signature. ANYPS5_SCREENSHOTS has a row in docs/dev/ENVIRONMENT.md.

What I ran for the drawn path, on Windows 11 Pro with an RTX 5080 (driver 32.0.16.1714):

  • I picked titles that reach it with APS5_CAPTURE_TRACE=1: every present line has resident=1 and every blit line direct=0. With APS5_DUMP_FRAMES=1, the GPU dump reports the DumpExtent size (480x270 at 1920x1080) instead of the scaler's full source size.
  • SymphonyStation5 (PPSA17641, 1920x1080): F12 gives a 1920x1080 8-bit RGB PNG that matches the window without its letterbox.
  • ProsperoStore (PPSA99000, 3840x2160): same checks, a 3840x2160 PNG.
  • DOOM (PPSA99666), which presents from guest memory: still 1920x1080.
  • ctest -R "agc_screenshot|pad_input_mapping|pad_sdl|pad_keyboard_mouse|patched_libraries|video_out|agc_driver_mesh": 36/36 pass.
  • Not run: the HDR10 swapchain, because there is no HDR display here.
F12 screenshots (drawn path and guest-memory path)

SymphonyStation5 (PPSA17641), drawn PresentationPass path, 1920x1080:

SymphonyStation5 F12

ProsperoStore (PPSA99000), drawn path, 3840x2160:

ProsperoStore F12

DOOM (PPSA99666), guest-memory path, 1920x1080:

DOOM F12

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6262431980 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#issuecomment-6262431980). Originally posted by [dantdmdarealguy](https://github.com/dantdmdarealguy) on 2026-10-19T07:54:39Z. --- Rebased onto `main` `6b8228b2b` as one commit. - `PadInput.cpp` / `KeyboardMouse`: F12 is now a `screenshot` request in `InputRequests`. `KeyboardMouse::HandleEvent` sets it under the same condition as `toggleFullscreen` and `togglePerformanceOverlay`: keyboard only, key-down, not already pressed, key repeats dropped. `KeyboardMouse::Compose` ignores the control. `PadInput::HandleEvent` calls `AgcDriverRequestScreenshot_nid_postfix()` from the returned requests when the event's window is the game window, like the other two. `parseBinding` refuses `MOUSE:` for `Screenshot` with its own message, like `TogglePerformanceOverlay`; `WHEEL:` was already refused for every non-button action. Tests: - `tests/KeyboardMouse.cpp` (`pad_keyboard_mouse`) has a case next to the F11/F10 one: F12 down gives `screenshot` and nothing else, and a repeated F12 and F12 up give nothing. - `tests/InputMapping.cpp` (`pad_input_mapping`) has `screenshotBinding`, like `performanceOverlayBinding`: F12 is the default, `Screenshot = KEY:F9` moves it, and `MOUSE:Left` and `WHEEL:Up` are refused. - `VulkanDevice.cpp`: `present` uses `const auto scale = state->nextDumpScreenshot ? 1 : DumpScale();` for the drawn, direct and scaler paths alike. So the drawn path gets `PresentationPass::DumpExtent(width, height, 1)` and `state->presentation->RecordDump(commands, slotIndex, 1, ...)`. `present(...)` keeps `main`'s trailing `layer` argument and the newer `passthrough` argument, and `WriteFrameDump` keeps its `if (slot.dumpScreenshot)` branch. Two things on current `main` needed handling as well: - On an HDR10 swapchain, `present` refuses GPU dumps through the scaler ("dumps on the CPU"). There the screenshot now takes the same CPU readback as `APS5_DUMP_FRAMES` (`ReadDisplayBuffer`, or the DCC clear colour) and queues it after a successful present. A resident PQ display on HDR10 is drawn and uses `RecordDump`. - `FrameDumpWriter::Enqueue` now drops frames once a BMP write has failed. Screenshots are exempt, so a failed optional BMP dump can't silently swallow a screenshot. - `CMakeLists.txt` and `VulkanDevice.hpp`: adjacency only. `Screenshot.cpp` sits next to `PresentationPass.cpp`/`PerformanceOverlay.cpp`, and `takeScreenshot` is declared after `main`'s `present` signature. `ANYPS5_SCREENSHOTS` has a row in `docs/dev/ENVIRONMENT.md`. What I ran for the drawn path, on Windows 11 Pro with an RTX 5080 (driver 32.0.16.1714): - I picked titles that reach it with `APS5_CAPTURE_TRACE=1`: every `present` line has `resident=1` and every `blit` line `direct=0`. With `APS5_DUMP_FRAMES=1`, the GPU dump reports the `DumpExtent` size (`480x270` at 1920x1080) instead of the scaler's full source size. - SymphonyStation5 (PPSA17641, 1920x1080): F12 gives a 1920x1080 8-bit RGB PNG that matches the window without its letterbox. - ProsperoStore (PPSA99000, 3840x2160): same checks, a 3840x2160 PNG. - DOOM (PPSA99666), which presents from guest memory: still 1920x1080. - `ctest -R "agc_screenshot|pad_input_mapping|pad_sdl|pad_keyboard_mouse|patched_libraries|video_out|agc_driver_mesh"`: 36/36 pass. - Not run: the HDR10 swapchain, because there is no HDR display here. <details><summary>F12 screenshots (drawn path and guest-memory path)</summary> SymphonyStation5 (PPSA17641), drawn `PresentationPass` path, 1920x1080: ![SymphonyStation5 F12](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/pr4891/f12-drawn-symphonystation5-1080p.png) ProsperoStore (PPSA99000), drawn path, 3840x2160: ![ProsperoStore F12](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/pr4891/f12-drawn-prosperostore-2160p.png) DOOM (PPSA99666), guest-memory path, 1920x1080: ![DOOM F12](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/pr4891/f12-guestmemory-doom-1080p.png) </details>
dantdmdarealguy commented 2026-10-19 12:02:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-19T12:02:03Z.


I tried to run the HDR10 screenshot path on Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1714), with this branch (1c1665f58, on main 6b8228b2b). It still hasn't run on an HDR10 swapchain. The only spare display here is a Samsung TV at 1280x720 60 Hz. Windows reports it as not HDR-capable in that mode: DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO_2 gives highDynamicRangeSupported = 0, and DISPLAYCONFIG_DEVICE_INFO_SET_HDR_STATE returns ERROR_NOT_SUPPORTED. Turning on advanced colour only gives the wide-colour SDR mode. IDXGIOutput6::GetDesc1 stays at DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709, and the Vulkan surface on that display offers no HDR10 format. HostHdrProbe therefore reports no HDR output and SelectDynamicRange keeps the SDR swapchain, which is correct.

I did run the screenshot on PQ display buffers through the SDR swapchain on that display. A small host program registers one 1920x1080 buffer and flips it at 60 Hz: BT.2100 PQ colour bars at codes 520 and 769 over a 0–1023 grey ramp. I pressed F12 once per buffer kind:

Display buffer Path in PresentDisplayBuffer PNG vs DecodeDisplayBuffer / PqToSdrPixel
B10G10R10A2 BT.2100 PQ, tiled GPU detile + scaler readback 1920x1080 RGB8 identical (0 of 6,220,800 channels differ)
R10G10B10A2 BT.2100 PQ, linear CPU decode, GPU readback 1920x1080 RGB8 identical
R10G10B10A2 BT.2100 PQ, DCC fully cleared clear-colour path 1920x1080 RGB8 identical
B8G8R8A8, tiled scaler readback 1920x1080 RGB8 identical

Each PNG matches the window without its letterbox (the window shows it at 1258x708). There was one screenshot saved line per press, no frame_*.bmp, and no errors. The PQ frames are tone-mapped at the SDR white of 100 nits, so both bar rows come out as fully saturated primaries and the grey ramp reaches white about half way. The tiled PQ case also ran once with advanced colour off: identical too.

So the CPU readback for an HDR10 swapchain (ReadDisplayBuffer, DisplayPixels, queued after present) and the drawn RecordDump on HDR10 still need a run on a display in HDR mode.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6266725385 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#issuecomment-6266725385). Originally posted by [dantdmdarealguy](https://github.com/dantdmdarealguy) on 2026-10-19T12:02:03Z. --- I tried to run the HDR10 screenshot path on Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1714), with this branch (`1c1665f58`, on `main` `6b8228b2b`). It still hasn't run on an HDR10 swapchain. The only spare display here is a Samsung TV at 1280x720 60 Hz. Windows reports it as not HDR-capable in that mode: `DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO_2` gives `highDynamicRangeSupported = 0`, and `DISPLAYCONFIG_DEVICE_INFO_SET_HDR_STATE` returns `ERROR_NOT_SUPPORTED`. Turning on advanced colour only gives the wide-colour SDR mode. `IDXGIOutput6::GetDesc1` stays at `DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709`, and the Vulkan surface on that display offers no HDR10 format. `HostHdrProbe` therefore reports no HDR output and `SelectDynamicRange` keeps the SDR swapchain, which is correct. I did run the screenshot on PQ display buffers through the SDR swapchain on that display. A small host program registers one 1920x1080 buffer and flips it at 60 Hz: BT.2100 PQ colour bars at codes 520 and 769 over a 0–1023 grey ramp. I pressed F12 once per buffer kind: | Display buffer | Path in `PresentDisplayBuffer` | PNG | vs `DecodeDisplayBuffer` / `PqToSdrPixel` | |---|---|---|---| | `B10G10R10A2` BT.2100 PQ, tiled | GPU detile + scaler readback | 1920x1080 RGB8 | identical (0 of 6,220,800 channels differ) | | `R10G10B10A2` BT.2100 PQ, linear | CPU decode, GPU readback | 1920x1080 RGB8 | identical | | `R10G10B10A2` BT.2100 PQ, DCC fully cleared | clear-colour path | 1920x1080 RGB8 | identical | | `B8G8R8A8`, tiled | scaler readback | 1920x1080 RGB8 | identical | Each PNG matches the window without its letterbox (the window shows it at 1258x708). There was one `screenshot saved` line per press, no `frame_*.bmp`, and no errors. The PQ frames are tone-mapped at the SDR white of 100 nits, so both bar rows come out as fully saturated primaries and the grey ramp reaches white about half way. The tiled PQ case also ran once with advanced colour off: identical too. So the CPU readback for an HDR10 swapchain (`ReadDisplayBuffer`, `DisplayPixels`, queued after `present`) and the drawn `RecordDump` on HDR10 still need a run on a display in HDR mode.
adriadam10 commented 2026-10-20 08:40:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T08:40:38Z.


Re-checked against current main: the rebase only moves the test registration line in libSceAgcDriver/CMakeLists.txt and the surrounding context in PadInput.cpp; the screenshot code is unchanged, the PR applies cleanly and the earlier points remain resolved. The new tests use symbols that don't exist on main, so they fail without the change. Merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6287002529 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4891#issuecomment-6287002529). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T08:40:38Z. --- Re-checked against current `main`: the rebase only moves the test registration line in `libSceAgcDriver/CMakeLists.txt` and the surrounding context in `PadInput.cpp`; the screenshot code is unchanged, the PR applies cleanly and the earlier points remain resolved. The new tests use symbols that don't exist on `main`, so they fail without the change. Merged.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!4891
No description provided.