feat(agc): scale the presentation with FSR 1 under ANYPS5_UPSCALE=fsr #10043

Merged
EagleBearerYS merged 17 commits from upstream-pr/10043 into main 2026-11-08 05:44:24 +00:00
EagleBearerYS commented 2026-10-23 06:03:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-23T06:03:56Z.


What

An optional scaler for the presented image: AMD FidelityFX Super Resolution 1.0, EASU upscaling plus RCAS sharpening. ANYPS5_UPSCALE=fsr turns it on. The default stays today's bilinear scaler.

No title needs this to run, and nothing changes unless it's set. With ANYPS5_UPSCALE unset, no upscaler object exists. The present path records exactly what it records today, and a test checks the output is bit-identical.

Where it helps: a display buffer shown in a larger window, for example a 1920x1080 buffer in a 2560x1440 or 3840x2160 window, which today is a bilinear stretch. Here is Planet of Lana (PPSA19450) with platform-ps5-video-out-width=1920 in its app0/Media/boot.config, maximized on a 2560x1440 panel, where the 1920x1080 buffer is presented at 2372x1334. The main menu at 1:1, bilinear on the left and FSR at the default sharpness 0.2 on the right:

Planet of Lana's menu, bilinear against FSR, 1:1

The crops on their own: bilinear and FSR. The full frames: bilinear and FSR. That one-line edit of the title's own data file isn't part of this PR. megood's run of Bendy and the Ink Machine at 1920x1080 in a larger window, shared in the AnyPS5 Discord dev chat, is what pointed us at Unity's resolution settings. Titles that present 3840x2160 buffers in play, such as Resident Evil Village (PPSA01556) and Animal Well (PPSA22520), keep today's scaler in any smaller window, since FSR stays off where it can't upscale.

How to try it on a title: for Planet of Lana (PPSA19450), set platform-ps5-video-out-width=1920 in the dump's app0/Media/boot.config (it ships with 3840), run it in a window larger than 1920x1080, and compare ANYPS5_UPSCALE unset with ANYPS5_UPSCALE=fsr. Other Unity titles may have the same line, but none has been checked yet.

The test's synthetic pattern shows the difference in numbers. It's a 960x540 pattern upscaled to 1920x1080, shown as a 320x180 crop at 2x, with bilinear on the left and FSR at 0.2 on the right:

Bilinear against FSR

The one-pixel grid lines peak at 179 under bilinear and at 219 with FSR (the source line is 230). A 51/204 edge goes 89 → 166 under bilinear and 65 → 190 with FSR.

Sharpness 0.2 (left) against 2.0, the weakest (right). EASU is the same in both; RCAS's halo is 5-9 levels at 0.2 and 1 level at 2.0:

Sharpness 0.2 against 2.0

The whole synthetic FSR frame at half size, for context: image. These three are rendered by this PR's own code on lavapipe.

How:

  • ANYPS5_UPSCALE and ANYPS5_FSR_SHARPNESS (0.0 sharpest to 2.0 weakest, default 0.2) are read once when the window's device is created, like ANYPS5_PRESENT_MODE. An empty value is the same as unset; any other bad value stops the start with a message naming the variable.

  • With fsr, a presentation whose fitted image is larger than the display buffer on either axis goes through FSR:

    • present() renders today's output at the buffer's own size into a per-slot stage image;
    • EASU (FsrEasu.frag) scales it to the fitted size;
    • RCAS (FsrRcas.frag) sharpens it into the swapchain image, with the black letterbox around it.
      This covers the drawn, direct and shared present paths. Clear-only presents skip it.
  • With the performance overlay (#6012) on: RCAS ends in COLOR_ATTACHMENT_OPTIMAL, and the overlay records from there when the frame was drawn or upscaled. Otherwise the overlay records from TRANSFER_DST_OPTIMAL as it does today. The overlay's entry dependency orders it after RCAS's writes, so its text is neither scaled nor sharpened.

  • With main's overlay plane (#10507) and system keyboard (#11207): they draw after RCAS too, over the upscaled output at display resolution. RCAS ends in COLOR_ATTACHMENT_OPTIMAL whenever the plane, the keyboard or the performance overlay draws next, and each of them starts from that layout after an upscale; with nothing drawn over it, RCAS ends in PRESENT_SRC_KHR.

  • Where it can't upscale (1:1 or a smaller window), FSR stays off for that frame, which is presented exactly as without ANYPS5_UPSCALE. RCAS alone would cost frame rate there without adding detail.

    • On lavapipe it costs 2.8x today's blit at 2560x1440.
    • Before this gate, Planet of Lana (PPSA19450), showing a 3840x2160 buffer in a 1084x610 window, dropped from 12.05 to 5.75 fps with RCAS alone.
    • On lavapipe the cost shows up as draws waiting while the presentation holds the GPU mutex, since QueuePresent waits for the presentation's rendering inside it.
    • FSR's start line says so: [present] ANYPS5_UPSCALE=fsr: FSR 1 EASU and RCAS when the window is larger than the display buffer, the normal scaler otherwise; RCAS sharpness 0.20.
  • HDR10 (#5697) and SDR: FSR runs on the values the display receives, sRGB-encoded for SDR and PQ code values for HDR10, never on linear light. Both are perceptual encodings, which is what FSR 1 expects. EASU's deringing keeps each output inside its 2x2 neighbourhood. RCAS limits its negative lobe to stay inside [0, 1], and the shader clamps its result to [0, 1] after AMD's approximate reciprocal, so PQ output stays a valid code.

  • Cost when upscaling: two images per presentation in flight (7.9 + 31.6 MiB per slot for a 1080p buffer in a 4K window) and two extra passes per frame. The table gives FSR's GPU time per frame (the stage write, EASU and RCAS) against today's bilinear blit, as the median over 200 frames from agc_driver_presentation_pass_tests --fsr-cost. The times are GPU timestamps of 200 back-to-back frames after 20 warm-up frames, offscreen with no other GPU work. The RTX 3070 column is from this head. Its clocks weren't held: during the measured frames nvidia-smi (every 100 ms) showed it in P3 and P0, at 780 to 945 MHz graphics and 5,501 to 6,001 MHz memory. So these are mid-clock figures, upper bounds for both passes at full clock. FSR and the blit were timed in the same frames at the same clocks, so the comparison is like for like at those clocks. lavapipe runs on the CPU, so only its ratios mean anything. Recording FSR costs 45-55 µs of CPU per frame on the RTX 3070 when it upscales (median; 89-101 at p95), against 3-4 µs for the blit.

    Case RTX 3070 Laptop: FSR / blit, median (p95) lavapipe: FSR / blit
    1920x1080 into 2560x1440 0.53 (0.55) / 0.07 (0.08) ms 74.3 / 7.8 ms
    1920x1080 into 3840x2160 1.13 (1.19) / 0.14 (0.15) ms 165.2 / 16.8 ms
    1280x720 into 3840x2160 (EASU beyond 2x) 1.33 (1.33) / 0.14 (0.14) ms 153.6 / 16.1 ms
    1920x1080 or 3840x2160 at 1:1, 3840x2160 into 2560x1440 FSR off: the blit alone FSR off: the blit alone

    The cost mode measures RCAS alone too, which is what FSR would run where it can't upscale. At 1920x1080 1:1 it costs 0.12 ms against the blit's 0.05 on the RTX 3070 (20.6 against 5.0 on lavapipe), at 3840x2160 1:1 0.46 against 0.20, and for 3840x2160 into 2560x1440 0.29 against 0.15 (34.7 against 9.2 on lavapipe). That gives no detail for the cost, so FSR stays off there.

    The shaders derive the EASU and RCAS constants per pixel from the sizes and the sharpness in their push constants, about 20 ALU per pixel; AMD's samples compute them once on the CPU, which would save that at the cost of a larger push-constant block. When off, the cost is two getenv calls at device creation and one bool per present.

Things to know:

  • EASU is designed for up to twice the display buffer's size on each axis. Larger factors, such as a 1280x720 buffer in a 3840x2160 window, still work but look softer.
  • RCAS normalizes with AMD's approximate reciprocal (APrxMedRcpF1), so it darkens flat areas by a fixed fraction of their value that depends only on the sharpness: 0.17% at the default 0.2 (0.5 → 0.4992), 0.32% at 0.0 and 0.07% at 2.0. That's at most one 8-bit level in SDR and three 10-bit codes in HDR10. Fixing it would mean editing AMD's header, so it's left as is; USAGE says so, and the tests bound it.
  • 2.0 is RCAS's weakest setting, not off. With fsr selected, RCAS always runs.
  • An invalid ANYPS5_FSR_SHARPNESS stops the start even without fsr, like any invalid setting.
  • When the window shrinks from larger than the display buffer to smaller, each presentation slot keeps its upscaled image until EASU runs again or the device is torn down: the window's size at 4 bytes a pixel, so about 33 MB per slot at 3840x2160.

Third-party code: the FSR headers are vendored, not a submodule, which departs from AGENTS.md's submodule rule. A maintainer agreed in the dev chat that vendoring these two headers is fine. 3rdparty/FidelityFX-FSR/ holds ffx-fsr/ffx_a.h, ffx-fsr/ffx_fsr1.h and license.txt (MIT), copied unmodified from tag v1.0.2 (a21ffb8f6c). Its README gives the source, the commit and each file's SHA-256.

  • Why: every FSR 1 release tag carries two submodules for AMD's sample, Cauldron and Cauldron-Media. The project's recursive checkouts (CI, release.yml, BUILD.md) would fetch them: about 337 MB at depth 1 and 1.47 GB with full history, for 243 KB of headers. .gitmodules can't stop recursion into a submodule's own submodules.
  • The three files match tag v1.0.2 byte for byte, and the README's SHA-256 table matches them.
  • If a submodule is wanted after all, commit 1 switches and the include path stays the same.

Commits:

  1. build(agc): the vendored FSR 1.0.2 headers and license, with the README.
  2. feat(agc): PresentationUpscaler, UpscaleMode, the EASU and RCAS shaders, and the hooks into PresentationPass, PresentationScaler and VulkanDevice::present.
    • FSR runs only for presentations it can upscale (50aa233a0's gate).
    • The stage's render pass ends with a dependency that orders its writes and final layout transition before EASU and RCAS sample it (PresentationPass::ExitDependency, shared with the upscaler's passes).
    • With the performance overlay on, the overlay draws after RCAS, unscaled.
    • The three shader modules are created with Graphics::CreateShaderModule, as main's presentation pass and overlay create theirs.
    • docs/dev/ENVIRONMENT.md gets rows for ANYPS5_UPSCALE and ANYPS5_FSR_SHARPNESS.
    • USAGE gets its "Upscaling" section, after "Storing GPU results at each flip".
  3. test(agc): agc_driver_presentation_fsr, with the exit dependency's three layouts; agc_driver_present_upscale, which presents through VulkanDevice on a headless surface in all four combinations of FSR and the overlay and counts the presentations that ran FSR; and agc_performance_overlay's over-FSR case.
  4. test(agc): the --fsr-cost mode of agc_driver_presentation_pass_tests (30febcf78), not registered with ctest.

Tested

  • Planet of Lana (PPSA19450) with platform-ps5-video-out-width=1920 in app0/Media/boot.config, built at this head, on the RTX 3070 Laptop GPU (driver 617.42, Windows 11), maximized on a 2560x1440 panel, with the performance overlay on. Six runs: four in the order bilinear, FSR, FSR, bilinear, then a later pair, FSR then bilinear (ANYPS5_UPSCALE unset or fsr). Clocks weren't held; nvidia-smi logged them every second.

    • The log has guest 1920x1080 presented at 2372x1334, and with fsr the start line [present] ANYPS5_UPSCALE=fsr: FSR 1 EASU and RCAS when the window is larger than the display buffer, the normal scaler otherwise; RCAS sharpness 0.20. The performance overlay reads RES: 1920X1080 / 2560X1334.
    Run Main menu, +90 to +150 s In play, +420 to +500 s
    1, bilinear 26.8 fps (GPU 33%, median 870 MHz; P0 42%, P3 38%, P5 19%) 16.2 fps (GPU 30%, 885 MHz; P0 38%, P3 28%, P5 33%)
    2, FSR 28.2 fps (GPU 32%, 975 MHz; P0 78%) 12.7 fps (GPU 33%, 765 MHz; P5 75%)
    3, FSR 38.0 fps (GPU 36%, 1,185 MHz; P0 83%) not measured (the Controls screen, not play)
    4, bilinear 36.4 fps (GPU 38%, 1,125 MHz; P0 80%) 18.3 fps (GPU 32%, 945 MHz; P0 61%)
    5, FSR 37.1 fps (GPU 44%, 930 MHz; P0 14%, P3 85%) 19.3 fps (GPU 34%, 930 MHz; P0 76%, P3 19%, P5 3%)
    6, bilinear 34.8 fps (GPU 37%, 1,050 MHz; P0 82%, P3 17%) 21.7 fps (GPU 34%, 930 MHz; P0 90%, P3 6%, P5 3%)
    • Main menu: FSR was ahead of bilinear in all three pairs, by 5% (28.2 against 26.8), 4% (38.0 against 36.4) and 7% (37.1 against 34.8). The pairs ran at different clocks from one another, so each comparison is within its pair, and in the third the two arms' clocks differed too (FSR mostly in P3, bilinear mostly in P0).
    • In play, the pair at similar clocks is runs 5 and 6: both at a 930 MHz median, mostly in P0 (FSR 76%, bilinear 90%; clocks weren't locked), and captures at +420 s show both in play. FSR ran at 19.3 fps against bilinear's 21.7, about 11% lower. That's FSR's cost in this scene in that one pair. The first pair's larger gap (12.7 against 16.2) had the FSR run in P5 for 75% of its window, so it mixes in the clock state. Run 3's play window reached the Controls screen instead of play.
    • The 1:1 menu crops above show FSR visibly sharper than bilinear.
  • agc_driver_presentation_fsr (Vulkan; it runs agc_driver_presentation_pass_tests --fsr) covers:

    • upscale-mode parsing;
    • EASU from 960x540 to 1920x1080 on edges, a thin-line grid and a gradient: no NaN or Inf, values in [0, 1], flat regions flat, the gradient monotonic, and a 10-90% edge rise of 1.52 px against 2.20 for bilinear, across vertical and horizontal edges;
    • RCAS at 1:1: at sharpness 2.0 the image changes by at most 0.024; at 0.2 edge contrast goes from 0.2331 to 0.2482; flat areas stay uniform;
    • the default path: with ANYPS5_UPSCALE unset the output is bit-identical, and the stage equals today's fitted image when FSR doesn't upscale;
    • SDR and HDR10 presents: B8G8R8A8 flat greys within one code; a PQ checkerboard into A2B10G10R10 at sharpness 0 gives valid codes, a flat region stays flat, and the letterbox is black.
  • agc_driver_present_upscale presents through VulkanDevice on a VK_EXT_headless_surface swapchain (1084x610) and counts the presentations that ran FSR. With fsr, 3840x2160, 1084x610 and 1920x1080 buffers don't run it and a 960x540 buffer does; with the variable empty, nothing does. With the gate removed it fails: "FSR ran on a 3840x2160 display buffer in a 1084x610 window, where it cannot upscale". It skips where the extension is missing.

  • Linux, CI's Linux job (Ubuntu 24.04, GCC 13.3, CI's configure flags, lavapipe, an unprivileged user), at the head, against main 7e69be6793 built the same way:

    • 1,864 of 1,868 tests pass, against 1,862 of 1,866 on main.
    • Per test, every test on main has the same status here. The two new tests, agc_driver_presentation_fsr and agc_driver_present_upscale, pass.
    • The 4 failures are the same on both: that machine's three IPv6 socket tests, and guest_net_buffer_validation, which fails on main there too.
    • check_test_registration.py finds nothing unregistered on either. check_skips.py flags only guest_sce_net on both, as on every branch on that machine.
    • Each of the four commits builds and passes the presentation and overlay tests that exist at it, headless and under Xvfb.
    • agc_driver_presentation_pass, agc_driver_presentation_fsr, agc_driver_present_upscale, agc_performance_overlay and agc_performance_overlay_statistics pass 10 of 10, headless and under Xvfb.
  • Validation with VK_LAYER_KHRONOS_validation and synchronization validation. The layer reports a planted write-after-write hazard on that machine, so validation was on.

    • Setup: Xvfb at 1920x1080. The 18 VideoOut and presentation tests that CTest runs offscreen ran again on X11, in a window larger than their buffers, so EASU runs. For example, video_out_hdr_present's 259x137 buffer is presented at 1152x609.
    • Tests: the presentation, present-upscale, overlay and VideoOut display tests: 43 here and 41 on main, plus the 18 on X11.
    • Configurations: main, then this PR unset, with fsr, with fsr at sharpness 2.0, and with fsr and the performance overlay on (ANYPS5_OVERLAY=1).
    • Messages: the only one in any configuration is VUID-VkDeviceCreateInfo-pNext-pNext, once per device, from a device struct that layer version doesn't know. Every test main has gets the same count here. The 6 extra come from agc_driver_present_upscale, which opens a device per case.
    • No synchronization hazard appears, and no other message of any severity. Before H1's fix, agc_driver_presentation_fsr had 10.
    • Pass and fail are the same in all five.
    • Where FSR ran: with fsr, FSR's start line appears 13 times in each configuration, from video_out_hdr_present, six guest_video_out_* tests, agc_driver_present_upscale and three X11 flip and frame-dump tests. With the overlay on as well, the overlay tests pass, and the screen capture below shows the overlay drawn over an FSR presentation.
  • Off is bit-identical on screen too: X screen captures at the third present of video_out_hdr_present, compared pixel by pixel.

    • With ANYPS5_UPSCALE unset, main and this PR differ in 0 of 2,073,600 pixels, in three capture pairs.
    • With the overlay on and FSR unset, they differ only inside the overlay panel's numbers: 151 and 130 pixels, against 171 and 128 between two runs of the same tree. With the panel painted out, they differ in 0.
    • With fsr, 679,356 pixels differ, all in the presented image: the frame is sharper at the band edges. Adding the overlay to fsr changes only the panel (11,023 pixels).
  • GitHub's runners at 672308b453 (run): the presentation, present-upscale and overlay tests pass 10 runs in a row on Linux, with none skipped. On Windows they build and pass, with 5 of the 8 skipping: the runner has no Vulkan device, so the RTX 3070 run below covers those. The libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • Validation, main against this PR, on GitHub's Linux runner (run): VK_LAYER_KHRONOS_validation with ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1 on llvmpipe, for the same tests plus agc_driver_image_table_vouched_lookups. The loader inserted the layer 5 times on main and 12 with this PR. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.

  • RTX 3070 Laptop GPU at this head (driver 617.42, Windows 11 10.0.26300), offscreen, no other GPU work: agc_driver_presentation_pass (3.7 s), agc_driver_presentation_fsr (10.9 s) and agc_performance_overlay (2.5 s) pass. agc_driver_present_upscale skips: NVIDIA's Windows driver has no VK_EXT_headless_surface, which it needs. The figures match lavapipe's: EASU's edge rise is 1.52 px against bilinear's 2.20 on both axes, RCAS at sharpness 2.0 changes the image by at most 0.0241, and edge contrast goes 0.2331 → 0.2482 at 0.2. The tests take the first Vulkan device, which on this laptop is the integrated GPU, so the loader was limited to NVIDIA's driver for that run. The cost mode (--fsr-cost) gives the RTX 3070 column above.

  • HDR10 is tested at the component level only: no HDR10 swapchain was available. lavapipe's offers only SRGB_NONLINEAR, and this PC's displays run SDR.

  • 7ed09f9c3a, a merge of main 5b85225ef3 (run), which brings #7705, #8552 and milescoviello's #10807. #10807 adds a test of the presentation source in host memory to tests/PresentationPass.cpp where this PR adds its FSR tests; the merge keeps both, and nothing else conflicted. That test uses PresentationScaler's constructor and source-image calls, which this PR leaves unchanged. This PR's changed lines are the same as before the merge. The present, upscale, FSR, presentation-pass and performance overlay tests pass 10 runs in a row. Linux: 8 run, 8 pass, 0 skip, 0 fail. Windows: 8 run, 3 pass, 5 skip, 0 fail; the device tests skip, since that runner has no Vulkan device. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). Windows' libkernel suite runs 227 tests and fails guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web, which this PR doesn't touch; main 88f99678bf fails the same two in this verify's Windows job (run), and main's own Windows CI passes them. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 711dd2ac58: 59245dfc48, a merge of main 0cd07dc4ab, and a test commit (sweep run, validation run). main now has orezraey's #10507, which composites the overlay plane over the main output, our #11207, which draws the system keyboard over the presented frame, and #8160, #8161 and #9408. The conflicts were in PresentationPass.hpp, PresentationPass.cpp, VulkanDevice.cpp and docs/dev/ENVIRONMENT.md.

    • PresentationPass: this PR's recordInto, which FSR's last pass uses, now draws through main's target, destinationFramebuffer and scissored draw. The pass keeps both main's entry dependency and this PR's exit dependency.
    • VulkanDevice: the plane, keyboard and overlay order after an upscale as in What. The upscaler, the keyboard and the plane pass are all kept in the device and retired with its slots, and this PR's UpscaledPresents and main's PresentCounts both count.
    • ENVIRONMENT.md keeps both rows.
    • The test commit adds a case to agc_driver_present_upscale: a 960x540 display buffer with a 960x540 overlay plane, presented into its 1084x610 headless window with ANYPS5_UPSCALE=fsr, must be upscaled with the plane composited.
    • ×10 sweep over ^agc, ^video_out and ^guest_video_out, with no before arm. Linux: 1121 run, 1022 pass, 99 skip, 0 fail. Windows: 1143 run, 328 pass, 811 skip, 4 fail: agc_driver_pipelined_metadata_pass, agc_driver_pipelined_metadata_pass_draw_pipeline, agc_submit_progress and agc_submit_progress_no_timeline need a Vulkan device and fail creating it on GitHub's device-less runner, as main's do there (run). The libc and libkernel suites run 166 and 264 tests on Linux and 194 and 286 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation, VK_LAYER_KHRONOS_validation on llvmpipe, main against this head, for the present, upscale, FSR, presentation-pass, overlay and VideoOut tests: the one message is VUID-VkDeviceCreateInfo-pNext-pNext, from agc_driver_present_upscale's devices, a device struct this layer version doesn't know, as in the validation run above. main's tree has no such test, and neither side reports any other VUID- message.
    • Planet of Lana (PPSA19450) at this head, built from it, with the same platform-ps5-video-out-width=1920 boot.config change, maximized on the 2560x1440 panel. Environment: ANYPS5_UPSCALE=fsr, the performance overlay on (ANYPS5_OVERLAY=1), APS5_STORAGE_CACHE_ENTRIES=1024 and APS5_THREAD_PRIORITY=high. APS5_STORAGE_CACHE_ENTRIES is the variable #14220 adds: neither this PR nor main reads it, so it had no effect in this run.
      • The log has the same FSR start line and guest 1920x1080 presented at 2372x1334, and the overlay reads RES: 1920X1080 / 2560X1334.
      • Main menu, full size (2582x1390 PNG, 6.8 MB), at the title's present 4838: FSR still runs after this merge, with the overlay drawn over the upscaled output.
      • It's one run with no bilinear arm, so it shows the FSR path, not a timing comparison. Clocks weren't held: nvidia-smi over the capture had P0 in 71 of 79 one-second samples and a graphics clock of 810 to 1,170 MHz.
  • 439f6720f2, a merge of main edf6804cf5 (×10 run, validation run). The merge was clean: CMakeLists.txt, VulkanDevice.hpp, VulkanDevice.cpp, tests/PerformanceOverlay.cpp, ENVIRONMENT.md and USAGE.md merged without conflicts. The PR's patch-id is unchanged, so the vendored FidelityFX headers are byte-identical. The Planet of Lana (PPSA19450) screenshot above is from 711dd2ac58, whose patch this merge doesn't change.

    • ×10: agc_driver_present_upscale, agc_driver_presentation_fsr, ^agc_driver_presentation_pass, ^agc_performance_overlay, ^video_out and ^guest_video_out. Linux: 40 run, 13 pass, 27 skip, 0 fail. Windows: 38 run, 8 pass, 30 skip, 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation, VK_LAYER_KHRONOS_validation on llvmpipe, main against this head, for the same tests as the validation run above. One VUID appears only with this PR: VUID-VkDeviceCreateInfo-pNext-pNext, from the devices agc_driver_present_upscale creates, whose device struct this layer version doesn't know. main can't show it, because its tree has no agc_driver_present_upscale. Neither side reports any other VUID- message.
  • c88633cf17, a merge of main 0afe7a4755 (×10 run, validation run), as MarcZX10 asked. main now has Get-fix's #9431, which adds a GCN check (tile mode, pitch and display height) to ResidentPresentable in VulkanDevice.cpp. This PR changes present() and the device's state setup, not ResidentPresentable. The merge was clean, and this PR's own diff is unchanged.

    • ×10: the tests above plus agc_resident_present, the resident-present tests. Linux: 41 run, 14 pass, 27 skip, 0 fail. Windows: 39 run, 8 pass, 31 skip, 0 fail. The libc and libkernel suites run 193 and 292 tests on Linux and 223 and 315 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation, as above, with agc_resident_present added. The loader inserted the layer 4 times on main and 12 with this PR. The one VUID that appears only with this PR is again VUID-VkDeviceCreateInfo-pNext-pNext, from the devices agc_driver_present_upscale creates, a test main's tree doesn't have. Neither side reports any other VUID- message.
  • 51655586c5, a merge of main 1a217758a5, which brings f0d5ff528f, the system dialog drawn in the presentation.

    • The conflict: the keyboard overlay's RecordRects call in VulkanDevice.cpp. The merge keeps main's *systemLayout and this PR's upscaled in the layout condition.
    • This PR's other added and removed lines are unchanged.
    • ×10 (run), the presentation, upscale, FSR, overlay, VideoOut and resident-present tests:
      • Linux: 42 run, 15 pass, 27 skip, 0 fail.
      • Windows: 40 run, 9 pass, 31 skip (no Vulkan device), 0 fail.
      • The libc and libkernel suites run 194 and 294 tests on Linux and 224 and 318 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation (run), main 1a217758a5 against this head, the same tests plus agc_driver_sample_multisample_target, a main test that opens a real device:
      • Linux: 43 run, 16 pass, 27 skip, 0 fail. The loader inserted VK_LAYER_KHRONOS_validation 5 times on main and 13 with this PR.
      • The only VUID in either arm is VUID-VkDeviceCreateInfo-pNext-pNext: once on main, 8 times with this PR, all for VkStructureType 1000574000. This PR adds no VUID.
      • That structure is VkPhysicalDeviceMaintenance8FeaturesKHR, which main's VulkanDevice.cpp chains into every device it creates. The runner's vulkan-validationlayers 1.3.275.0-1 doesn't know it.
  • d0bd686d8d, a merge of main 2b1ae87c69, which brings MarcZX10's #12702 (the pad status overlay) (run).

    • The conflicts: two hunks in VulkanDevice::present, where this PR adds upscaled (FSR) wherever drawn means "the swapchain image is already in COLOR_ATTACHMENT_OPTIMAL", and #12702 adds padStatusShown. The merge keeps both:
      • planePass->RecordOverlay: initial layout drawn || upscaled, final overlay || keyboard || padStatusShown;
      • overlay->Record: initial drawn || upscaled || plane != nullptr || keyboard || padStatusShown, and the else if the negation of all five.
    • One line beyond both sides: #12702's new padStatus->RecordRects gets the same upscaled this PR gives the keyboard overlay's RecordRects, so its initial layout is drawn || upscaled || plane != nullptr. Without it, an upscaled frame that shows the pad status records the wrong initial layout. The merge commit's message names it.
    • This PR's own diff changes only in those combined conditions. main's drawsOver already includes padStatusShown, and this PR's upscaler->RecordPresent uses it.
    • ×10: this PR's present, FSR, presentation-pass and performance-overlay tests, ^video_out, ^guest_video_out, agc_resident_present and agc_driver_sample_multisample_target.
      • Linux: 44 run, 16 pass, 28 skip (they need a display), 0 fail.
      • Windows: 42 run, 9 pass, 33 skip (no display or Vulkan device), 0 fail.
      • The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • On a cloud Linux machine (lavapipe): this PR's tests with #12702's agc_pad_status_overlay, _shared, _events and _invalid, agc_keyboard_overlay, agc_performance_overlay_statistics, agc_resident_present, video_out_flip_overlay and video_out_flip_padstatus pass 10 of 10, 15 tests in all; the two video_out_flip_* tests skip without a display. ctest -R '^(agc|shader)': 1,157 passed, 0 failed.
  • bef132589c, jotitadev's fix for VUID-vkCmdBeginRenderPass-initialLayout-00897 (review), with jotitadev as co-author.

    • The cause: the FSR stage pass and the EASU pass end in SHADER_READ_ONLY_OPTIMAL, but PresentationPass::destinationFramebuffer and PresentationUpscaler::transientFramebuffer narrowed their views' usage through VkImageViewUsageCreateInfo to COLOR_ATTACHMENT and transfer bits. The commit adds SAMPLED to the view when the pass uses that layout. Both images were already created with SAMPLED.
    • Layer 1.4.341, red/green (cloud Linux machine, Ubuntu 24.04, lavapipe: Mesa 25.2.8, LLVM 20.1.2). The layer was built from KhronosGroup's vulkan-sdk-1.4.341.0 tag (14de3c0d7b) and loaded through VK_LAYER_PATH. The 44 tests of the ×10 set below ran 3 times per tree, as an unprivileged user, with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1:
      • d0bd686d8d: 20 00897 messages per run, in all 3 runs: agc_driver_presentation_fsr 10, agc_driver_present_upscale 8, agc_performance_overlay 2.
      • bef132589c: 0 validation messages of any kind, in all 3 runs.
      • In every run, 16 pass and 28 skip (they need a display), 0 fail. Under Xvfb, 43 of the 44 run, with the same red/green; guest_video_out_high_frame_rate skips, since Xvfb has no 120 Hz mode.
    • Layer 1.3.275 (Ubuntu 24.04's vulkan-validationlayers, the one GitHub's runner and the NVIDIA bot use): neither tree logs 00897. Both log the same 8 VUID-VkDeviceCreateInfo-pNext-pNext messages, for VkPhysicalDeviceMaintenance8FeaturesKHR, which that layer predates.
    • ×10 on GitHub's runners (run): this PR's present, FSR, presentation-pass and performance-overlay tests, ^video_out, ^guest_video_out, agc_resident_present and agc_driver_sample_multisample_target.
      • Linux: 44 run, 16 pass, 28 skip (they need a display), 0 fail.
      • Windows: 42 run, 9 pass, 33 skip (no display or Vulkan device), 0 fail.
      • The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation on GitHub's Linux runner (run), layer 1.3.275, d0bd686d8d against bef132589c, the same tests:
      • Linux: 44 run, 16 pass, 28 skip, 0 fail, in each arm. The loader inserted VK_LAYER_KHRONOS_validation 13 times in each.
      • The only VUID in either arm is VUID-VkDeviceCreateInfo-pNext-pNext, so the fix adds none.
  • affd3b1699, a merge of main 0836dfdf4f (run). #12862 moved libSceAgcDriver's test registrations into tests/cmake/; the conflict in CMakeLists.txt is resolved with tools/agc_test_split.py resolve, which moves this PR's registrations into tests/cmake/agc_driver_presentation_pass_tests.cmake (+6 lines). Nothing else conflicted. Its FSR shader build rules and PresentationUpscaler.cpp stay in CMakeLists.txt, unchanged, since they aren't test registrations. Apart from the move, this PR's diff is unchanged. With -DBUILD_TESTING=ON, ctest -N gives 3077 tests: main's 3075 plus its 2 tests, each listed once. The 54 tests of this PR's verify set pass 10 runs in a row. Linux: 54 run, 18 pass, 36 skip, 0 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • Layer 1.4.341 on this head and current main, as MarcZX10 asked (review): main cbcb37b314 against affd3b1699 on one cloud Linux machine (Ubuntu 24.04.5, lavapipe: Mesa 25.2.8, LLVM 20.1.2), both built with CI's Linux configure.

    • The layer was built from KhronosGroup's vulkan-sdk-1.4.341.0 tag (14de3c0d7b) and loaded through VK_LAYER_PATH. VK_LOADER_DEBUG=layer shows it inserted inside a test process on each tree.
    • The runs: the presentation, FSR, upscale, overlay, VideoOut, resident-present and multisample-target tests, 3 times offscreen and once under Xvfb per tree, as an unprivileged user, with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.
    • The result: neither tree logs a validation message of any kind, in any run, so there is no 00897.
    • main: 52 run. Offscreen: 16 pass, 36 skip, 0 fail. Xvfb: 51 pass, 1 skip, 0 fail.
    • This head: 54 run, main's 52 plus this PR's two. Offscreen: 18 pass, 36 skip, 0 fail. Xvfb: 53 pass, 1 skip, 0 fail.
    • The skips: offscreen, 29 tests get no Vulkan surface from SDL's offscreen driver and 7 find no wayland or x11. Under Xvfb, guest_video_out_high_frame_rate skips, since Xvfb has no 120 Hz mode.
    • The red control: this head with only the sampled-usage fix reversed logs 20 00897 messages: agc_driver_presentation_fsr 10, agc_driver_present_upscale 8, agc_performance_overlay 2. Those are d0bd686d8d's counts. With the fix restored, it logs 0.
  • Layer 1.4.341 again, on main cf79276fee, as MarcZX10 asked (review), since cbcb37b314 predates #13807's VulkanDevice::buildTarget() line.

    • The trees: main cf79276fee, affd3b1699, and their clean local merge caa72b2703, which brings that line into this PR. They used the same machine, layer, insertion check and command as the bullet above.
    • The result: no tree logs a validation message of any kind, in any run, so there is no 00897.
    • main: 52 run. Offscreen: 16 pass, 36 skip, 0 fail. Xvfb: 51 pass, 1 skip, 0 fail.
    • This head and the merge: 54 run each. Offscreen: 18 pass, 36 skip, 0 fail. Xvfb: 53 pass, 1 skip, 0 fail. The skips are the same as above.
    • The red control, on the merge: with only the sampled-usage fix reversed, it logs 20 00897 messages, the same counts; with the fix restored, 0.
  • NVIDIA RTX 2000 Ada Generation at affd3b1699, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, validation layer 1.3.275.

    • 3,033 passed, 5 failed and 51 skipped. None of the failures is new: 4 also fail on main, and 1 is unstable on main.
    • agc_driver_present_upscale skips there, since that runner has no VK_EXT_headless_surface.
  • 57f34f0692, a merge of main 4a58bc29ad, which brings MarcZX10's #12536 (ANYPS5_FPS_LIMIT) (×10, validation).

    • The conflicts were VulkanDevice::present and docs/dev/ENVIRONMENT.md. The merge keeps both sides in each, and this PR's other changed lines are the same:
      • in present, the overlay's NotePresent takes main's frame limit argument, and its Record and the else branch keep this PR's upscaled condition;
      • ENVIRONMENT.md keeps both rows.
    • ×10: this PR's verify set. Linux: 55 run, 18 pass, 37 skip, 0 fail. Windows: 53 run, 11 pass, 42 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation (VK_LAYER_KHRONOS_validation on GitHub's Linux runner), main 4a58bc29ad against this merge, for the same tests:
      • the layer was inserted in both arms, 5 times on main and 13 with this merge;
      • the only VUID in either arm is VUID-VkDeviceCreateInfo-pNext-pNext, so the merge adds none.
  • NVIDIA RTX 2000 Ada Generation at 57f34f0692, from TechLevelZero's NVIDIA bot (report): this head merged onto main e6f5730, driver 595.99.02, Ubuntu 26.04.1.

    • 3,091 passed, 7 failed and 52 skipped. None of the failures is new: 3 also fail on main, and 4 are unstable on main.
    • With VK_LAYER_KHRONOS_validation, no new validation IDs over 1,241 GPU tests. agc_driver_presentation_fsr passed. agc_driver_present_upscale skips again, since that runner's Vulkan loader has no VK_EXT_headless_surface. Neither is in main's baseline, so neither was compared.
  • 03c1bad1f4, a merge of main 88e804b0a7 (run). Two conflicts, each a pair of additions at the same place, and the merge keeps both: this PR's VulkanDevice::UpscaledPresents in VulkanDevice.cpp beside main's new FillCompletionSyncCount, and this PR's ANYPS5_UPSCALE row in docs/dev/ENVIRONMENT.md beside main's new ANYPS5_TEST_HOST_IMPORT_ALIGNMENT row. This PR's diff over main is unchanged. agc_driver_present_upscale, agc_driver_presentation_fsr, agc_driver_sample_multisample_target and agc_resident_present, with the presentation-pass, performance-overlay and VideoOut tests, ran 10 times with no failure. Linux: 55 run, 18 pass, 37 skip (the VideoOut flip and guest VideoOut tests, which need a display), 0 fail. Windows: 53 run, 11 pass, 42 skip (the same VideoOut tests, and the AGC presentation and overlay tests, this PR's four among them; no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • AMD Radeon RX 6300 (RADV NAVI24) at 03c1bad1f4, from TechLevelZero's AMD bot (report): this head merged onto main 1c8c0ef, Mesa 25.2.8, Ubuntu 26.04.1, the full suite, since this PR changes 3rdparty/FidelityFX-FSR.

    • 3,765 passed, 17 failed and 62 skipped. None of the failures is new: 11 also fail on main, and 6 are unstable on main.
    • With VK_LAYER_KHRONOS_validation, no new validation IDs over 1,367 GPU tests. agc_driver_present_upscale (29.78 s), agc_driver_presentation_pass and the performance-overlay tests passed on the GPU.
    • agc_driver_presentation_fsr printed its passed line and then hit its 30 s timeout in the bot's 4-way parallel run, at 30.03 s. Run alone under VK_LAYER_KHRONOS_validation on the RX 6300, in the bot's retry, it passed in 19.95 s. 933b263a6d, below, gives it 60 s.
  • AMD Radeon RX 9060 XT (RADV GFX1200), by @RNK123 (comment): Mesa 26.2.5, CachyOS, this head 03c1bad1f4 merged onto main 1c8c0efc8c.

    • agc_driver_presentation_pass and agc_performance_overlay pass on main and on the merge. agc_driver_presentation_fsr passes 3 of 3, and agc_driver_present_upscale 3 of 3 with real headless swapchains, the overlay cases included. TechLevelZero's NVIDIA bot skips that test, since its loader has no VK_EXT_headless_surface.
    • No test skipped. With the validation layer loaded, neither arm logs a VUID- or SYNC-HAZARD- message.
    • A sensitivity check (a mutation, not a main comparison): with if (false && upscale.fsr) on the merge, agc_driver_present_upscale fails 3 of 3 at "FSR without the overlay ... was not upscaled".
  • 933b263a6d: agc_driver_presentation_fsr gets 60 s (×10). Its TIMEOUT in tests/cmake/agc_driver_presentation_pass_tests.cmake goes from 30 to 60, and nothing else changes. The test takes 19.95 s alone under VK_LAYER_KHRONOS_validation on the RX 6300, against a 30.03 s timeout in the bot's 4-way parallel run.

    • ×10: this PR's verify set. Linux: 55 run, 18 pass, 37 skip (the VideoOut flip and guest VideoOut tests, which need a display), 0 fail. Windows: 53 run, 11 pass, 42 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • d7a519d557, a merge of main 06a9092274, which brings SuarezPM's #14943 (draw names in device-lost fault reports) (×10, validation).

    • The conflict was the includes of VulkanDevice.cpp, where #14943 adds SubmissionSnapshots.hpp and TraceRevision.hpp and this PR adds UpscaleMode.hpp at the same place. The merge keeps all three. This PR's diff over main is unchanged.
    • ×10: this PR's verify set. Linux: 63 run, 19 pass, 44 skip (the VideoOut flip and guest VideoOut tests, which need a display), 0 fail. Windows: 61 run, 12 pass, 49 skip (the same VideoOut tests, and the AGC presentation and overlay tests, this PR's among them; no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (324 and 342) and on Windows (355 and 369). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation (VK_LAYER_KHRONOS_validation on GitHub's Linux runner), main 06a9092274 against this merge, for the same tests:
      • the layer was inserted in both arms, 5 times on main and 13 with this merge;
      • the only VUID in either arm is VUID-VkDeviceCreateInfo-pNext-pNext, so the merge adds none.

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 (AMD's headers are vendored as they are)
  • 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, except AMD's two FSR 1 headers and license, which are vendored, as a maintainer agreed in the dev chat (see above)
  • Generic behaviour, not specific to one title
  • Depends on: none open. #7705, #8160, #8161, #8552, #9408 and #10807, the merge-order dependencies, have merged, and this branch merges them
  • Fixes: none
  • Unblocks: none (an opt-in scaler; no title needs it to run)
  • GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42, Windows 11 10.0.26300; the tests offscreen and Planet of Lana (PPSA19450)); NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8; TechLevelZero's AMD bot); AMD Radeon RX 9060 XT (RADV GFX1200, Mesa 26.2.5, CachyOS; RNK123); lavapipe (Mesa 25.2.8, LLVM 20.1.2, Ubuntu 24.04)
  • AI-assisted: yes

Overlap:

  • The performance overlay, #6012 (ours), is merged. This PR composes with it in VulkanDevice::present (commit 2) and covers both on together (commit 3), as described under How.
  • Open PRs this one conflicts with (merge-tree of each head against this one, 2026-10-23; #7705 and #8552 have merged since), each a small textual conflict:
    • #7705 (AnthonyClemens, bounded depth-plane copies), #8160 and #8161 (Celegans12, A/B runtime switch phases and their reports): rows at the same place in docs/dev/ENVIRONMENT.md.
    • #8552 (Sam-mon7, Demon's Souls copy kernel): neighbouring lines in libSceAgcDriver/CMakeLists.txt.
    • #9408 (rursache, relinker import tracing on macOS): neighbouring sections in docs/user/USAGE.md.
    • #9508 (Raghav314, GPU descriptor heap): one declaration in PresentationPass.hpp. #9508 makes draw()'s Slot& non-const, and this PR adds recordInto() next to it; both apply.
  • Merge order: this PR goes after #8160, #8161 and #9408, and adds its rows and lines next to theirs when it merges main. #7705, #8552 and #10807 merged first, and this branch now has them. Against #9508, which is much larger, it can go first; if #9508 lands first, this PR keeps its non-const Slot&.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4978578887 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-23T06:03:56Z. --- ### What An optional scaler for the presented image: AMD FidelityFX Super Resolution 1.0, EASU upscaling plus RCAS sharpening. `ANYPS5_UPSCALE=fsr` turns it on. The default stays today's bilinear scaler. No title needs this to run, and nothing changes unless it's set. With `ANYPS5_UPSCALE` unset, no upscaler object exists. The present path records exactly what it records today, and a test checks the output is bit-identical. **Where it helps:** a display buffer shown in a larger window, for example a 1920x1080 buffer in a 2560x1440 or 3840x2160 window, which today is a bilinear stretch. Here is Planet of Lana (PPSA19450) with `platform-ps5-video-out-width=1920` in its `app0/Media/boot.config`, maximized on a 2560x1440 panel, where the 1920x1080 buffer is presented at 2372x1334. The main menu at 1:1, bilinear on the left and FSR at the default sharpness 0.2 on the right: ![Planet of Lana's menu, bilinear against FSR, 1:1](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/fsr/lana-1920-menu-bilinear-vs-fsr-1to1.png) The crops on their own: [bilinear](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/fsr/lana-1920-menu-bilinear-crop.png) and [FSR](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/fsr/lana-1920-menu-fsr-crop.png). The full frames: [bilinear](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/fsr/lana-1920-menu-bilinear-full.png) and [FSR](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/fsr/lana-1920-menu-fsr-full.png). That one-line edit of the title's own data file isn't part of this PR. megood's run of Bendy and the Ink Machine at 1920x1080 in a larger window, shared in the AnyPS5 Discord dev chat, is what pointed us at Unity's resolution settings. Titles that present 3840x2160 buffers in play, such as Resident Evil Village (PPSA01556) and Animal Well (PPSA22520), keep today's scaler in any smaller window, since FSR stays off where it can't upscale. **How to try it on a title:** for Planet of Lana (PPSA19450), set `platform-ps5-video-out-width=1920` in the dump's `app0/Media/boot.config` (it ships with 3840), run it in a window larger than 1920x1080, and compare `ANYPS5_UPSCALE` unset with `ANYPS5_UPSCALE=fsr`. Other Unity titles may have the same line, but none has been checked yet. The test's synthetic pattern shows the difference in numbers. It's a 960x540 pattern upscaled to 1920x1080, shown as a 320x180 crop at 2x, with bilinear on the left and FSR at 0.2 on the right: ![Bilinear against FSR](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/fsr/fsr-bilinear-vs-easu-2x.png) The one-pixel grid lines peak at 179 under bilinear and at 219 with FSR (the source line is 230). A 51/204 edge goes 89 → 166 under bilinear and 65 → 190 with FSR. Sharpness 0.2 (left) against 2.0, the weakest (right). EASU is the same in both; RCAS's halo is 5-9 levels at 0.2 and 1 level at 2.0: ![Sharpness 0.2 against 2.0](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/fsr/fsr-sharpness-0.2-vs-2.0-2x.png) The whole synthetic FSR frame at half size, for context: [image](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/fsr/fsr-full-frame-half-size.png). These three are rendered by this PR's own code on lavapipe. How: - `ANYPS5_UPSCALE` and `ANYPS5_FSR_SHARPNESS` (0.0 sharpest to 2.0 weakest, default 0.2) are read once when the window's device is created, like `ANYPS5_PRESENT_MODE`. An empty value is the same as unset; any other bad value stops the start with a message naming the variable. - With `fsr`, a presentation whose fitted image is larger than the display buffer on either axis goes through FSR: - `present()` renders today's output at the buffer's own size into a per-slot stage image; - EASU (`FsrEasu.frag`) scales it to the fitted size; - RCAS (`FsrRcas.frag`) sharpens it into the swapchain image, with the black letterbox around it. This covers the drawn, direct and shared present paths. Clear-only presents skip it. - **With the performance overlay (#6012) on:** RCAS ends in `COLOR_ATTACHMENT_OPTIMAL`, and the overlay records from there when the frame was drawn or upscaled. Otherwise the overlay records from `TRANSFER_DST_OPTIMAL` as it does today. The overlay's entry dependency orders it after RCAS's writes, so its text is neither scaled nor sharpened. - **With `main`'s overlay plane (#10507) and system keyboard (#11207):** they draw after RCAS too, over the upscaled output at display resolution. RCAS ends in `COLOR_ATTACHMENT_OPTIMAL` whenever the plane, the keyboard or the performance overlay draws next, and each of them starts from that layout after an upscale; with nothing drawn over it, RCAS ends in `PRESENT_SRC_KHR`. - **Where it can't upscale** (1:1 or a smaller window), FSR stays off for that frame, which is presented exactly as without `ANYPS5_UPSCALE`. RCAS alone would cost frame rate there without adding detail. - On lavapipe it costs 2.8x today's blit at 2560x1440. - Before this gate, Planet of Lana (PPSA19450), showing a 3840x2160 buffer in a 1084x610 window, dropped from 12.05 to 5.75 fps with RCAS alone. - On lavapipe the cost shows up as draws waiting while the presentation holds the GPU mutex, since `QueuePresent` waits for the presentation's rendering inside it. - FSR's start line says so: `[present] ANYPS5_UPSCALE=fsr: FSR 1 EASU and RCAS when the window is larger than the display buffer, the normal scaler otherwise; RCAS sharpness 0.20`. - **HDR10 (#5697) and SDR:** FSR runs on the values the display receives, sRGB-encoded for SDR and PQ code values for HDR10, never on linear light. Both are perceptual encodings, which is what FSR 1 expects. EASU's deringing keeps each output inside its 2x2 neighbourhood. RCAS limits its negative lobe to stay inside [0, 1], and the shader clamps its result to [0, 1] after AMD's approximate reciprocal, so PQ output stays a valid code. - **Cost when upscaling:** two images per presentation in flight (7.9 + 31.6 MiB per slot for a 1080p buffer in a 4K window) and two extra passes per frame. The table gives FSR's GPU time per frame (the stage write, EASU and RCAS) against today's bilinear blit, as the median over 200 frames from `agc_driver_presentation_pass_tests --fsr-cost`. The times are GPU timestamps of 200 back-to-back frames after 20 warm-up frames, offscreen with no other GPU work. The RTX 3070 column is from this head. Its clocks weren't held: during the measured frames nvidia-smi (every 100 ms) showed it in P3 and P0, at 780 to 945 MHz graphics and 5,501 to 6,001 MHz memory. So these are mid-clock figures, upper bounds for both passes at full clock. FSR and the blit were timed in the same frames at the same clocks, so the comparison is like for like at those clocks. lavapipe runs on the CPU, so only its ratios mean anything. Recording FSR costs 45-55 µs of CPU per frame on the RTX 3070 when it upscales (median; 89-101 at p95), against 3-4 µs for the blit. | Case | RTX 3070 Laptop: FSR / blit, median (p95) | lavapipe: FSR / blit | |---|---|---| | 1920x1080 into 2560x1440 | 0.53 (0.55) / 0.07 (0.08) ms | 74.3 / 7.8 ms | | 1920x1080 into 3840x2160 | 1.13 (1.19) / 0.14 (0.15) ms | 165.2 / 16.8 ms | | 1280x720 into 3840x2160 (EASU beyond 2x) | 1.33 (1.33) / 0.14 (0.14) ms | 153.6 / 16.1 ms | | 1920x1080 or 3840x2160 at 1:1, 3840x2160 into 2560x1440 | FSR off: the blit alone | FSR off: the blit alone | The cost mode measures RCAS alone too, which is what FSR would run where it can't upscale. At 1920x1080 1:1 it costs 0.12 ms against the blit's 0.05 on the RTX 3070 (20.6 against 5.0 on lavapipe), at 3840x2160 1:1 0.46 against 0.20, and for 3840x2160 into 2560x1440 0.29 against 0.15 (34.7 against 9.2 on lavapipe). That gives no detail for the cost, so FSR stays off there. The shaders derive the EASU and RCAS constants per pixel from the sizes and the sharpness in their push constants, about 20 ALU per pixel; AMD's samples compute them once on the CPU, which would save that at the cost of a larger push-constant block. When off, the cost is two `getenv` calls at device creation and one bool per present. Things to know: - EASU is designed for up to twice the display buffer's size on each axis. Larger factors, such as a 1280x720 buffer in a 3840x2160 window, still work but look softer. - RCAS normalizes with AMD's approximate reciprocal (`APrxMedRcpF1`), so it darkens flat areas by a fixed fraction of their value that depends only on the sharpness: 0.17% at the default 0.2 (0.5 → 0.4992), 0.32% at 0.0 and 0.07% at 2.0. That's at most one 8-bit level in SDR and three 10-bit codes in HDR10. Fixing it would mean editing AMD's header, so it's left as is; USAGE says so, and the tests bound it. - `2.0` is RCAS's weakest setting, not off. With `fsr` selected, RCAS always runs. - An invalid `ANYPS5_FSR_SHARPNESS` stops the start even without `fsr`, like any invalid setting. - When the window shrinks from larger than the display buffer to smaller, each presentation slot keeps its upscaled image until EASU runs again or the device is torn down: the window's size at 4 bytes a pixel, so about 33 MB per slot at 3840x2160. **Third-party code:** the FSR headers are vendored, not a submodule, which departs from AGENTS.md's submodule rule. A maintainer agreed in the dev chat that vendoring these two headers is fine. `3rdparty/FidelityFX-FSR/` holds `ffx-fsr/ffx_a.h`, `ffx-fsr/ffx_fsr1.h` and `license.txt` (MIT), copied unmodified from tag v1.0.2 (a21ffb8f6c). Its README gives the source, the commit and each file's SHA-256. - Why: every FSR 1 release tag carries two submodules for AMD's sample, Cauldron and Cauldron-Media. The project's recursive checkouts (CI, release.yml, BUILD.md) would fetch them: about 337 MB at depth 1 and 1.47 GB with full history, for 243 KB of headers. `.gitmodules` can't stop recursion into a submodule's own submodules. - The three files match tag v1.0.2 byte for byte, and the README's SHA-256 table matches them. - If a submodule is wanted after all, commit 1 switches and the include path stays the same. Commits: 1. `build(agc)`: the vendored FSR 1.0.2 headers and license, with the README. 2. `feat(agc)`: `PresentationUpscaler`, `UpscaleMode`, the EASU and RCAS shaders, and the hooks into `PresentationPass`, `PresentationScaler` and `VulkanDevice::present`. - FSR runs only for presentations it can upscale (50aa233a0's gate). - The stage's render pass ends with a dependency that orders its writes and final layout transition before EASU and RCAS sample it (`PresentationPass::ExitDependency`, shared with the upscaler's passes). - With the performance overlay on, the overlay draws after RCAS, unscaled. - The three shader modules are created with `Graphics::CreateShaderModule`, as `main`'s presentation pass and overlay create theirs. - `docs/dev/ENVIRONMENT.md` gets rows for `ANYPS5_UPSCALE` and `ANYPS5_FSR_SHARPNESS`. - USAGE gets its "Upscaling" section, after "Storing GPU results at each flip". 3. `test(agc)`: `agc_driver_presentation_fsr`, with the exit dependency's three layouts; `agc_driver_present_upscale`, which presents through `VulkanDevice` on a headless surface in all four combinations of FSR and the overlay and counts the presentations that ran FSR; and `agc_performance_overlay`'s over-FSR case. 4. `test(agc)`: the `--fsr-cost` mode of `agc_driver_presentation_pass_tests` (30febcf78), not registered with ctest. ### Tested - **Planet of Lana (PPSA19450)** with `platform-ps5-video-out-width=1920` in `app0/Media/boot.config`, built at this head, on the RTX 3070 Laptop GPU (driver 617.42, Windows 11), maximized on a 2560x1440 panel, with the performance overlay on. Six runs: four in the order bilinear, FSR, FSR, bilinear, then a later pair, FSR then bilinear (`ANYPS5_UPSCALE` unset or `fsr`). Clocks weren't held; nvidia-smi logged them every second. - The log has `guest 1920x1080 presented at 2372x1334`, and with `fsr` the start line `[present] ANYPS5_UPSCALE=fsr: FSR 1 EASU and RCAS when the window is larger than the display buffer, the normal scaler otherwise; RCAS sharpness 0.20`. The performance overlay reads `RES: 1920X1080 / 2560X1334`. | Run | Main menu, +90 to +150 s | In play, +420 to +500 s | |---|---|---| | 1, bilinear | 26.8 fps (GPU 33%, median 870 MHz; P0 42%, P3 38%, P5 19%) | 16.2 fps (GPU 30%, 885 MHz; P0 38%, P3 28%, P5 33%) | | 2, FSR | 28.2 fps (GPU 32%, 975 MHz; P0 78%) | 12.7 fps (GPU 33%, 765 MHz; P5 75%) | | 3, FSR | 38.0 fps (GPU 36%, 1,185 MHz; P0 83%) | not measured (the Controls screen, not play) | | 4, bilinear | 36.4 fps (GPU 38%, 1,125 MHz; P0 80%) | 18.3 fps (GPU 32%, 945 MHz; P0 61%) | | 5, FSR | 37.1 fps (GPU 44%, 930 MHz; P0 14%, P3 85%) | 19.3 fps (GPU 34%, 930 MHz; P0 76%, P3 19%, P5 3%) | | 6, bilinear | 34.8 fps (GPU 37%, 1,050 MHz; P0 82%, P3 17%) | 21.7 fps (GPU 34%, 930 MHz; P0 90%, P3 6%, P5 3%) | - **Main menu:** FSR was ahead of bilinear in all three pairs, by 5% (28.2 against 26.8), 4% (38.0 against 36.4) and 7% (37.1 against 34.8). The pairs ran at different clocks from one another, so each comparison is within its pair, and in the third the two arms' clocks differed too (FSR mostly in P3, bilinear mostly in P0). - **In play,** the pair at similar clocks is runs 5 and 6: both at a 930 MHz median, mostly in P0 (FSR 76%, bilinear 90%; clocks weren't locked), and captures at +420 s show both in play. FSR ran at 19.3 fps against bilinear's 21.7, about 11% lower. That's FSR's cost in this scene in that one pair. The first pair's larger gap (12.7 against 16.2) had the FSR run in P5 for 75% of its window, so it mixes in the clock state. Run 3's play window reached the Controls screen instead of play. - The 1:1 menu crops above show FSR visibly sharper than bilinear. - **`agc_driver_presentation_fsr`** (Vulkan; it runs `agc_driver_presentation_pass_tests --fsr`) covers: - upscale-mode parsing; - EASU from 960x540 to 1920x1080 on edges, a thin-line grid and a gradient: no NaN or Inf, values in [0, 1], flat regions flat, the gradient monotonic, and a 10-90% edge rise of 1.52 px against 2.20 for bilinear, across vertical and horizontal edges; - RCAS at 1:1: at sharpness 2.0 the image changes by at most 0.024; at 0.2 edge contrast goes from 0.2331 to 0.2482; flat areas stay uniform; - the default path: with `ANYPS5_UPSCALE` unset the output is bit-identical, and the stage equals today's fitted image when FSR doesn't upscale; - SDR and HDR10 presents: B8G8R8A8 flat greys within one code; a PQ checkerboard into A2B10G10R10 at sharpness 0 gives valid codes, a flat region stays flat, and the letterbox is black. - **`agc_driver_present_upscale`** presents through `VulkanDevice` on a `VK_EXT_headless_surface` swapchain (1084x610) and counts the presentations that ran FSR. With `fsr`, 3840x2160, 1084x610 and 1920x1080 buffers don't run it and a 960x540 buffer does; with the variable empty, nothing does. With the gate removed it fails: "FSR ran on a 3840x2160 display buffer in a 1084x610 window, where it cannot upscale". It skips where the extension is missing. - **Linux, CI's Linux job** (Ubuntu 24.04, GCC 13.3, CI's configure flags, lavapipe, an unprivileged user), at the head, against `main` 7e69be6793 built the same way: - 1,864 of 1,868 tests pass, against 1,862 of 1,866 on `main`. - Per test, every test on `main` has the same status here. The two new tests, `agc_driver_presentation_fsr` and `agc_driver_present_upscale`, pass. - The 4 failures are the same on both: that machine's three IPv6 socket tests, and `guest_net_buffer_validation`, which fails on `main` there too. - `check_test_registration.py` finds nothing unregistered on either. `check_skips.py` flags only `guest_sce_net` on both, as on every branch on that machine. - Each of the four commits builds and passes the presentation and overlay tests that exist at it, headless and under Xvfb. - `agc_driver_presentation_pass`, `agc_driver_presentation_fsr`, `agc_driver_present_upscale`, `agc_performance_overlay` and `agc_performance_overlay_statistics` pass 10 of 10, headless and under Xvfb. - **Validation** with `VK_LAYER_KHRONOS_validation` and synchronization validation. The layer reports a planted write-after-write hazard on that machine, so validation was on. - **Setup:** Xvfb at 1920x1080. The 18 VideoOut and presentation tests that CTest runs offscreen ran again on X11, in a window larger than their buffers, so EASU runs. For example, `video_out_hdr_present`'s 259x137 buffer is presented at 1152x609. - **Tests:** the presentation, present-upscale, overlay and VideoOut display tests: 43 here and 41 on `main`, plus the 18 on X11. - **Configurations:** `main`, then this PR unset, with `fsr`, with `fsr` at sharpness 2.0, and with `fsr` and the performance overlay on (`ANYPS5_OVERLAY=1`). - **Messages:** the only one in any configuration is `VUID-VkDeviceCreateInfo-pNext-pNext`, once per device, from a device struct that layer version doesn't know. Every test `main` has gets the same count here. The 6 extra come from `agc_driver_present_upscale`, which opens a device per case. - **No synchronization hazard appears,** and no other message of any severity. Before H1's fix, `agc_driver_presentation_fsr` had 10. - **Pass and fail** are the same in all five. - **Where FSR ran:** with `fsr`, FSR's start line appears 13 times in each configuration, from `video_out_hdr_present`, six `guest_video_out_*` tests, `agc_driver_present_upscale` and three X11 flip and frame-dump tests. With the overlay on as well, the overlay tests pass, and the screen capture below shows the overlay drawn over an FSR presentation. - **Off is bit-identical on screen too:** X screen captures at the third present of `video_out_hdr_present`, compared pixel by pixel. - With `ANYPS5_UPSCALE` unset, `main` and this PR differ in 0 of 2,073,600 pixels, in three capture pairs. - With the overlay on and FSR unset, they differ only inside the overlay panel's numbers: 151 and 130 pixels, against 171 and 128 between two runs of the same tree. With the panel painted out, they differ in 0. - With `fsr`, 679,356 pixels differ, all in the presented image: the frame is sharper at the band edges. Adding the overlay to `fsr` changes only the panel (11,023 pixels). - **GitHub's runners** at 672308b453 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39883436267)): the presentation, present-upscale and overlay tests pass 10 runs in a row on Linux, with none skipped. On Windows they build and pass, with 5 of the 8 skipping: the runner has no Vulkan device, so the RTX 3070 run below covers those. The libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation, `main` against this PR, on GitHub's Linux runner** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39887133216)): `VK_LAYER_KHRONOS_validation` with `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1` on llvmpipe, for the same tests plus `agc_driver_image_table_vouched_lookups`. The loader inserted the layer 5 times on `main` and 12 with this PR. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **RTX 3070 Laptop GPU** at this head (driver 617.42, Windows 11 10.0.26300), offscreen, no other GPU work: `agc_driver_presentation_pass` (3.7 s), `agc_driver_presentation_fsr` (10.9 s) and `agc_performance_overlay` (2.5 s) pass. `agc_driver_present_upscale` skips: NVIDIA's Windows driver has no `VK_EXT_headless_surface`, which it needs. The figures match lavapipe's: EASU's edge rise is 1.52 px against bilinear's 2.20 on both axes, RCAS at sharpness 2.0 changes the image by at most 0.0241, and edge contrast goes 0.2331 → 0.2482 at 0.2. The tests take the first Vulkan device, which on this laptop is the integrated GPU, so the loader was limited to NVIDIA's driver for that run. The cost mode (`--fsr-cost`) gives the RTX 3070 column above. - **HDR10** is tested at the component level only: no HDR10 swapchain was available. lavapipe's offers only SRGB_NONLINEAR, and this PC's displays run SDR. - **7ed09f9c3a, a merge of `main` 5b85225ef3** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40250553417)), which brings #7705, #8552 and milescoviello's #10807. #10807 adds a test of the presentation source in host memory to `tests/PresentationPass.cpp` where this PR adds its FSR tests; the merge keeps both, and nothing else conflicted. That test uses `PresentationScaler`'s constructor and source-image calls, which this PR leaves unchanged. This PR's changed lines are the same as before the merge. The present, upscale, FSR, presentation-pass and performance overlay tests pass 10 runs in a row. Linux: 8 run, 8 pass, 0 skip, 0 fail. Windows: 8 run, 3 pass, 5 skip, 0 fail; the device tests skip, since that runner has no Vulkan device. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). Windows' libkernel suite runs 227 tests and fails `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web`, which this PR doesn't touch; `main` 88f99678bf fails the same two in this verify's Windows job ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40238050809)), and `main`'s own Windows CI passes them. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **711dd2ac58: 59245dfc48, a merge of `main` 0cd07dc4ab, and a test commit** (sweep [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40671743856), validation [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40671786876)). `main` now has orezraey's #10507, which composites the overlay plane over the main output, our #11207, which draws the system keyboard over the presented frame, and #8160, #8161 and #9408. The conflicts were in `PresentationPass.hpp`, `PresentationPass.cpp`, `VulkanDevice.cpp` and `docs/dev/ENVIRONMENT.md`. - **`PresentationPass`:** this PR's `recordInto`, which FSR's last pass uses, now draws through `main`'s `target`, `destinationFramebuffer` and scissored `draw`. The pass keeps both `main`'s entry dependency and this PR's exit dependency. - **`VulkanDevice`:** the plane, keyboard and overlay order after an upscale as in What. The upscaler, the keyboard and the plane pass are all kept in the device and retired with its slots, and this PR's `UpscaledPresents` and `main`'s `PresentCounts` both count. - **`ENVIRONMENT.md`** keeps both rows. - **The test commit** adds a case to `agc_driver_present_upscale`: a 960x540 display buffer with a 960x540 overlay plane, presented into its 1084x610 headless window with `ANYPS5_UPSCALE=fsr`, must be upscaled with the plane composited. - **×10 sweep** over `^agc`, `^video_out` and `^guest_video_out`, with no before arm. Linux: 1121 run, 1022 pass, 99 skip, 0 fail. Windows: 1143 run, 328 pass, 811 skip, 4 fail: `agc_driver_pipelined_metadata_pass`, `agc_driver_pipelined_metadata_pass_draw_pipeline`, `agc_submit_progress` and `agc_submit_progress_no_timeline` need a Vulkan device and fail creating it on GitHub's device-less runner, as `main`'s do there ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40109333265)). The libc and libkernel suites run 166 and 264 tests on Linux and 194 and 286 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation**, `VK_LAYER_KHRONOS_validation` on llvmpipe, `main` against this head, for the present, upscale, FSR, presentation-pass, overlay and VideoOut tests: the one message is `VUID-VkDeviceCreateInfo-pNext-pNext`, from `agc_driver_present_upscale`'s devices, a device struct this layer version doesn't know, as in the validation run above. `main`'s tree has no such test, and neither side reports any other `VUID-` message. - **Planet of Lana (PPSA19450) at this head**, built from it, with the same `platform-ps5-video-out-width=1920` boot.config change, maximized on the 2560x1440 panel. Environment: `ANYPS5_UPSCALE=fsr`, the performance overlay on (`ANYPS5_OVERLAY=1`), `APS5_STORAGE_CACHE_ENTRIES=1024` and `APS5_THREAD_PRIORITY=high`. `APS5_STORAGE_CACHE_ENTRIES` is the variable #14220 adds: neither this PR nor `main` reads it, so it had no effect in this run. - The log has the same FSR start line and `guest 1920x1080 presented at 2372x1334`, and the overlay reads `RES: 1920X1080 / 2560X1334`. - [Main menu, full size](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/5f92b566814e0ba2098133919215ed1260d293e4/10043/lana-menu-fsr-711dd2ac58.png) (2582x1390 PNG, 6.8 MB), at the title's present 4838: FSR still runs after this merge, with the overlay drawn over the upscaled output. - It's one run with no bilinear arm, so it shows the FSR path, not a timing comparison. Clocks weren't held: nvidia-smi over the capture had P0 in 71 of 79 one-second samples and a graphics clock of 810 to 1,170 MHz. - **439f6720f2, a merge of `main` edf6804cf5** (×10 [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40834774667), validation [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40834867319)). The merge was clean: `CMakeLists.txt`, `VulkanDevice.hpp`, `VulkanDevice.cpp`, `tests/PerformanceOverlay.cpp`, `ENVIRONMENT.md` and `USAGE.md` merged without conflicts. The PR's patch-id is unchanged, so the vendored FidelityFX headers are byte-identical. The Planet of Lana (PPSA19450) screenshot above is from 711dd2ac58, whose patch this merge doesn't change. - **×10:** `agc_driver_present_upscale`, `agc_driver_presentation_fsr`, `^agc_driver_presentation_pass`, `^agc_performance_overlay`, `^video_out` and `^guest_video_out`. Linux: 40 run, 13 pass, 27 skip, 0 fail. Windows: 38 run, 8 pass, 30 skip, 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation**, `VK_LAYER_KHRONOS_validation` on llvmpipe, `main` against this head, for the same tests as the validation run above. One VUID appears only with this PR: `VUID-VkDeviceCreateInfo-pNext-pNext`, from the devices `agc_driver_present_upscale` creates, whose device struct this layer version doesn't know. `main` can't show it, because its tree has no `agc_driver_present_upscale`. Neither side reports any other `VUID-` message. - **c88633cf17, a merge of `main` 0afe7a4755** (×10 [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40942132644), validation [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40942349025)), as MarcZX10 asked. `main` now has Get-fix's #9431, which adds a GCN check (tile mode, pitch and display height) to `ResidentPresentable` in `VulkanDevice.cpp`. This PR changes `present()` and the device's state setup, not `ResidentPresentable`. The merge was clean, and this PR's own diff is unchanged. - **×10:** the tests above plus `agc_resident_present`, the resident-present tests. Linux: 41 run, 14 pass, 27 skip, 0 fail. Windows: 39 run, 8 pass, 31 skip, 0 fail. The libc and libkernel suites run 193 and 292 tests on Linux and 223 and 315 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation**, as above, with `agc_resident_present` added. The loader inserted the layer 4 times on `main` and 12 with this PR. The one VUID that appears only with this PR is again `VUID-VkDeviceCreateInfo-pNext-pNext`, from the devices `agc_driver_present_upscale` creates, a test `main`'s tree doesn't have. Neither side reports any other `VUID-` message. - **51655586c5, a merge of `main` 1a217758a5**, which brings f0d5ff528f, the system dialog drawn in the presentation. - **The conflict:** the keyboard overlay's `RecordRects` call in `VulkanDevice.cpp`. The merge keeps `main`'s `*systemLayout` and this PR's `upscaled` in the layout condition. - This PR's other added and removed lines are unchanged. - **×10** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40985391304)), the presentation, upscale, FSR, overlay, VideoOut and resident-present tests: - Linux: 42 run, 15 pass, 27 skip, 0 fail. - Windows: 40 run, 9 pass, 31 skip (no Vulkan device), 0 fail. - The libc and libkernel suites run 194 and 294 tests on Linux and 224 and 318 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40993317279)), `main` 1a217758a5 against this head, the same tests plus `agc_driver_sample_multisample_target`, a `main` test that opens a real device: - Linux: 43 run, 16 pass, 27 skip, 0 fail. The loader inserted `VK_LAYER_KHRONOS_validation` 5 times on `main` and 13 with this PR. - The only VUID in either arm is `VUID-VkDeviceCreateInfo-pNext-pNext`: once on `main`, 8 times with this PR, all for VkStructureType 1000574000. This PR adds no VUID. - That structure is `VkPhysicalDeviceMaintenance8FeaturesKHR`, which `main`'s `VulkanDevice.cpp` chains into every device it creates. The runner's `vulkan-validationlayers` 1.3.275.0-1 doesn't know it. - **d0bd686d8d, a merge of `main` 2b1ae87c69**, which brings MarcZX10's #12702 (the pad status overlay) ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41121751404)). - **The conflicts:** two hunks in `VulkanDevice::present`, where this PR adds `upscaled` (FSR) wherever `drawn` means "the swapchain image is already in `COLOR_ATTACHMENT_OPTIMAL`", and #12702 adds `padStatusShown`. The merge keeps both: - `planePass->RecordOverlay`: initial layout `drawn || upscaled`, final `overlay || keyboard || padStatusShown`; - `overlay->Record`: initial `drawn || upscaled || plane != nullptr || keyboard || padStatusShown`, and the `else if` the negation of all five. - **One line beyond both sides:** #12702's new `padStatus->RecordRects` gets the same `upscaled` this PR gives the keyboard overlay's `RecordRects`, so its initial layout is `drawn || upscaled || plane != nullptr`. Without it, an upscaled frame that shows the pad status records the wrong initial layout. The merge commit's message names it. - **This PR's own diff** changes only in those combined conditions. `main`'s `drawsOver` already includes `padStatusShown`, and this PR's `upscaler->RecordPresent` uses it. - **×10:** this PR's present, FSR, presentation-pass and performance-overlay tests, `^video_out`, `^guest_video_out`, `agc_resident_present` and `agc_driver_sample_multisample_target`. - Linux: 44 run, 16 pass, 28 skip (they need a display), 0 fail. - Windows: 42 run, 9 pass, 33 skip (no display or Vulkan device), 0 fail. - The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **On a cloud Linux machine (lavapipe):** this PR's tests with #12702's `agc_pad_status_overlay`, `_shared`, `_events` and `_invalid`, `agc_keyboard_overlay`, `agc_performance_overlay_statistics`, `agc_resident_present`, `video_out_flip_overlay` and `video_out_flip_padstatus` pass 10 of 10, 15 tests in all; the two `video_out_flip_*` tests skip without a display. `ctest -R '^(agc|shader)'`: 1,157 passed, 0 failed. - **bef132589c, jotitadev's fix for `VUID-vkCmdBeginRenderPass-initialLayout-00897`** ([review](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5720354784)), with jotitadev as co-author. - **The cause:** the FSR stage pass and the EASU pass end in `SHADER_READ_ONLY_OPTIMAL`, but `PresentationPass::destinationFramebuffer` and `PresentationUpscaler::transientFramebuffer` narrowed their views' usage through `VkImageViewUsageCreateInfo` to `COLOR_ATTACHMENT` and transfer bits. The commit adds `SAMPLED` to the view when the pass uses that layout. Both images were already created with `SAMPLED`. - **Layer 1.4.341, red/green** (cloud Linux machine, Ubuntu 24.04, lavapipe: Mesa 25.2.8, LLVM 20.1.2). The layer was built from KhronosGroup's `vulkan-sdk-1.4.341.0` tag (14de3c0d7b) and loaded through `VK_LAYER_PATH`. The 44 tests of the ×10 set below ran 3 times per tree, as an unprivileged user, with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`: - d0bd686d8d: 20 `00897` messages per run, in all 3 runs: `agc_driver_presentation_fsr` 10, `agc_driver_present_upscale` 8, `agc_performance_overlay` 2. - bef132589c: 0 validation messages of any kind, in all 3 runs. - In every run, 16 pass and 28 skip (they need a display), 0 fail. Under Xvfb, 43 of the 44 run, with the same red/green; `guest_video_out_high_frame_rate` skips, since Xvfb has no 120 Hz mode. - **Layer 1.3.275** (Ubuntu 24.04's `vulkan-validationlayers`, the one GitHub's runner and the NVIDIA bot use): neither tree logs `00897`. Both log the same 8 `VUID-VkDeviceCreateInfo-pNext-pNext` messages, for `VkPhysicalDeviceMaintenance8FeaturesKHR`, which that layer predates. - **×10** on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41155933128)): this PR's present, FSR, presentation-pass and performance-overlay tests, `^video_out`, `^guest_video_out`, `agc_resident_present` and `agc_driver_sample_multisample_target`. - Linux: 44 run, 16 pass, 28 skip (they need a display), 0 fail. - Windows: 42 run, 9 pass, 33 skip (no display or Vulkan device), 0 fail. - The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation on GitHub's Linux runner** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41155944034)), layer 1.3.275, d0bd686d8d against bef132589c, the same tests: - Linux: 44 run, 16 pass, 28 skip, 0 fail, in each arm. The loader inserted `VK_LAYER_KHRONOS_validation` 13 times in each. - The only VUID in either arm is `VUID-VkDeviceCreateInfo-pNext-pNext`, so the fix adds none. - **affd3b1699, a merge of `main` 0836dfdf4f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41240349227)). #12862 moved `libSceAgcDriver`'s test registrations into `tests/cmake/`; the conflict in `CMakeLists.txt` is resolved with `tools/agc_test_split.py resolve`, which moves this PR's registrations into `tests/cmake/agc_driver_presentation_pass_tests.cmake` (+6 lines). Nothing else conflicted. Its FSR shader build rules and `PresentationUpscaler.cpp` stay in `CMakeLists.txt`, unchanged, since they aren't test registrations. Apart from the move, this PR's diff is unchanged. With `-DBUILD_TESTING=ON`, `ctest -N` gives 3077 tests: `main`'s 3075 plus its 2 tests, each listed once. The 54 tests of this PR's verify set pass 10 runs in a row. Linux: 54 run, 18 pass, 36 skip, 0 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Layer 1.4.341 on this head and current `main`**, as MarcZX10 asked ([review](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5725524746)): `main` cbcb37b314 against affd3b1699 on one cloud Linux machine (Ubuntu 24.04.5, lavapipe: Mesa 25.2.8, LLVM 20.1.2), both built with CI's Linux configure. - **The layer** was built from KhronosGroup's `vulkan-sdk-1.4.341.0` tag (14de3c0d7b) and loaded through `VK_LAYER_PATH`. `VK_LOADER_DEBUG=layer` shows it inserted inside a test process on each tree. - **The runs:** the presentation, FSR, upscale, overlay, VideoOut, resident-present and multisample-target tests, 3 times offscreen and once under Xvfb per tree, as an unprivileged user, with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`. - **The result:** neither tree logs a validation message of any kind, in any run, so there is no `00897`. - **`main`:** 52 run. Offscreen: 16 pass, 36 skip, 0 fail. Xvfb: 51 pass, 1 skip, 0 fail. - **This head:** 54 run, `main`'s 52 plus this PR's two. Offscreen: 18 pass, 36 skip, 0 fail. Xvfb: 53 pass, 1 skip, 0 fail. - **The skips:** offscreen, 29 tests get no Vulkan surface from SDL's offscreen driver and 7 find no wayland or x11. Under Xvfb, `guest_video_out_high_frame_rate` skips, since Xvfb has no 120 Hz mode. - **The red control:** this head with only the sampled-usage fix reversed logs 20 `00897` messages: `agc_driver_presentation_fsr` 10, `agc_driver_present_upscale` 8, `agc_performance_overlay` 2. Those are d0bd686d8d's counts. With the fix restored, it logs 0. - **Layer 1.4.341 again, on `main` cf79276fee**, as MarcZX10 asked ([review](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5726121101)), since cbcb37b314 predates #13807's `VulkanDevice::buildTarget()` line. - **The trees:** `main` cf79276fee, affd3b1699, and their clean local merge caa72b2703, which brings that line into this PR. They used the same machine, layer, insertion check and command as the bullet above. - **The result:** no tree logs a validation message of any kind, in any run, so there is no `00897`. - **`main`:** 52 run. Offscreen: 16 pass, 36 skip, 0 fail. Xvfb: 51 pass, 1 skip, 0 fail. - **This head and the merge:** 54 run each. Offscreen: 18 pass, 36 skip, 0 fail. Xvfb: 53 pass, 1 skip, 0 fail. The skips are the same as above. - **The red control, on the merge:** with only the sampled-usage fix reversed, it logs 20 `00897` messages, the same counts; with the fix restored, 0. - **NVIDIA RTX 2000 Ada Generation** at affd3b1699, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6550563831)): driver 595.99.02, Ubuntu 26.04.1, validation layer 1.3.275. - 3,033 passed, 5 failed and 51 skipped. None of the failures is new: 4 also fail on `main`, and 1 is unstable on `main`. - `agc_driver_present_upscale` skips there, since that runner has no `VK_EXT_headless_surface`. - **57f34f0692, a merge of `main` 4a58bc29ad**, which brings MarcZX10's #12536 (`ANYPS5_FPS_LIMIT`) ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41270754309), [validation](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41270774613)). - **The conflicts were `VulkanDevice::present` and `docs/dev/ENVIRONMENT.md`. The merge keeps both sides in each, and this PR's other changed lines are the same:** - in `present`, the overlay's `NotePresent` takes `main`'s frame limit argument, and its `Record` and the `else` branch keep this PR's upscaled condition; - `ENVIRONMENT.md` keeps both rows. - **×10:** this PR's verify set. Linux: 55 run, 18 pass, 37 skip, 0 fail. Windows: 53 run, 11 pass, 42 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation** (`VK_LAYER_KHRONOS_validation` on GitHub's Linux runner), `main` 4a58bc29ad against this merge, for the same tests: - the layer was inserted in both arms, 5 times on `main` and 13 with this merge; - the only VUID in either arm is `VUID-VkDeviceCreateInfo-pNext-pNext`, so the merge adds none. - **NVIDIA RTX 2000 Ada Generation** at 57f34f0692, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6559608070)): this head merged onto `main` e6f5730, driver 595.99.02, Ubuntu 26.04.1. - 3,091 passed, 7 failed and 52 skipped. None of the failures is new: 3 also fail on `main`, and 4 are unstable on `main`. - With `VK_LAYER_KHRONOS_validation`, no new validation IDs over 1,241 GPU tests. `agc_driver_presentation_fsr` passed. `agc_driver_present_upscale` skips again, since that runner's Vulkan loader has no `VK_EXT_headless_surface`. Neither is in `main`'s baseline, so neither was compared. - **03c1bad1f4, a merge of `main` 88e804b0a7** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41417650525)). Two conflicts, each a pair of additions at the same place, and the merge keeps both: this PR's `VulkanDevice::UpscaledPresents` in `VulkanDevice.cpp` beside `main`'s new `FillCompletionSyncCount`, and this PR's `ANYPS5_UPSCALE` row in `docs/dev/ENVIRONMENT.md` beside `main`'s new `ANYPS5_TEST_HOST_IMPORT_ALIGNMENT` row. This PR's diff over `main` is unchanged. `agc_driver_present_upscale`, `agc_driver_presentation_fsr`, `agc_driver_sample_multisample_target` and `agc_resident_present`, with the presentation-pass, performance-overlay and VideoOut tests, ran 10 times with no failure. Linux: 55 run, 18 pass, 37 skip (the VideoOut flip and guest VideoOut tests, which need a display), 0 fail. Windows: 53 run, 11 pass, 42 skip (the same VideoOut tests, and the AGC presentation and overlay tests, this PR's four among them; no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **AMD Radeon RX 6300 (RADV NAVI24)** at 03c1bad1f4, from TechLevelZero's AMD bot ([report](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6622667486)): this head merged onto `main` 1c8c0ef, Mesa 25.2.8, Ubuntu 26.04.1, the full suite, since this PR changes `3rdparty/FidelityFX-FSR`. - 3,765 passed, 17 failed and 62 skipped. None of the failures is new: 11 also fail on `main`, and 6 are unstable on `main`. - With `VK_LAYER_KHRONOS_validation`, no new validation IDs over 1,367 GPU tests. `agc_driver_present_upscale` (29.78 s), `agc_driver_presentation_pass` and the performance-overlay tests passed on the GPU. - `agc_driver_presentation_fsr` printed its passed line and then hit its 30 s timeout in the bot's 4-way parallel run, at 30.03 s. Run alone under `VK_LAYER_KHRONOS_validation` on the RX 6300, in the bot's retry, it passed in 19.95 s. 933b263a6d, below, gives it 60 s. - **AMD Radeon RX 9060 XT (RADV GFX1200), by @RNK123** ([comment](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6621786241)): Mesa 26.2.5, CachyOS, this head 03c1bad1f4 merged onto `main` 1c8c0efc8c. - `agc_driver_presentation_pass` and `agc_performance_overlay` pass on `main` and on the merge. `agc_driver_presentation_fsr` passes 3 of 3, and `agc_driver_present_upscale` 3 of 3 with real headless swapchains, the overlay cases included. TechLevelZero's NVIDIA bot skips that test, since its loader has no `VK_EXT_headless_surface`. - No test skipped. With the validation layer loaded, neither arm logs a `VUID-` or `SYNC-HAZARD-` message. - **A sensitivity check** (a mutation, not a `main` comparison): with `if (false && upscale.fsr)` on the merge, `agc_driver_present_upscale` fails 3 of 3 at "FSR without the overlay ... was not upscaled". - **933b263a6d: `agc_driver_presentation_fsr` gets 60 s** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41779184438)). Its `TIMEOUT` in `tests/cmake/agc_driver_presentation_pass_tests.cmake` goes from 30 to 60, and nothing else changes. The test takes 19.95 s alone under `VK_LAYER_KHRONOS_validation` on the RX 6300, against a 30.03 s timeout in the bot's 4-way parallel run. - **×10:** this PR's verify set. Linux: 55 run, 18 pass, 37 skip (the VideoOut flip and guest VideoOut tests, which need a display), 0 fail. Windows: 53 run, 11 pass, 42 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **d7a519d557, a merge of `main` 06a9092274**, which brings SuarezPM's #14943 (draw names in device-lost fault reports) ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42195775766), [validation](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42195797259)). - **The conflict** was the includes of `VulkanDevice.cpp`, where #14943 adds `SubmissionSnapshots.hpp` and `TraceRevision.hpp` and this PR adds `UpscaleMode.hpp` at the same place. The merge keeps all three. This PR's diff over `main` is unchanged. - **×10:** this PR's verify set. Linux: 63 run, 19 pass, 44 skip (the VideoOut flip and guest VideoOut tests, which need a display), 0 fail. Windows: 61 run, 12 pass, 49 skip (the same VideoOut tests, and the AGC presentation and overlay tests, this PR's among them; no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (324 and 342) and on Windows (355 and 369). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation** (`VK_LAYER_KHRONOS_validation` on GitHub's Linux runner), `main` 06a9092274 against this merge, for the same tests: - the layer was inserted in both arms, 5 times on `main` and 13 with this merge; - the only VUID in either arm is `VUID-VkDeviceCreateInfo-pNext-pNext`, so the merge adds none. ### Checklist - [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 (AMD's headers are vendored as they are) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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, except AMD's two FSR 1 headers and license, which are vendored, as a maintainer agreed in the dev chat (see above) - [x] Generic behaviour, not specific to one title - [x] Depends on: none open. #7705, #8160, #8161, #8552, #9408 and #10807, the merge-order dependencies, have merged, and this branch merges them - [x] Fixes: none - [x] Unblocks: none (an opt-in scaler; no title needs it to run) - [x] GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42, Windows 11 10.0.26300; the tests offscreen and Planet of Lana (PPSA19450)); NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8; TechLevelZero's AMD bot); AMD Radeon RX 9060 XT (RADV GFX1200, Mesa 26.2.5, CachyOS; RNK123); lavapipe (Mesa 25.2.8, LLVM 20.1.2, Ubuntu 24.04) - [x] AI-assisted: yes Overlap: - **The performance overlay, #6012 (ours), is merged.** This PR composes with it in `VulkanDevice::present` (commit 2) and covers both on together (commit 3), as described under How. - **Open PRs this one conflicts with** (merge-tree of each head against this one, 2026-10-23; #7705 and #8552 have merged since), each a small textual conflict: - #7705 (AnthonyClemens, bounded depth-plane copies), #8160 and #8161 (Celegans12, A/B runtime switch phases and their reports): rows at the same place in `docs/dev/ENVIRONMENT.md`. - #8552 (Sam-mon7, Demon's Souls copy kernel): neighbouring lines in `libSceAgcDriver/CMakeLists.txt`. - #9408 (rursache, relinker import tracing on macOS): neighbouring sections in `docs/user/USAGE.md`. - #9508 (Raghav314, GPU descriptor heap): one declaration in `PresentationPass.hpp`. #9508 makes `draw()`'s `Slot&` non-const, and this PR adds `recordInto()` next to it; both apply. - **Merge order:** this PR goes after #8160, #8161 and #9408, and adds its rows and lines next to theirs when it merges `main`. #7705, #8552 and #10807 merged first, and this branch now has them. Against #9508, which is much larger, it can go first; if #9508 lands first, this PR keeps its non-const `Slot&`.
MarcZX10 commented 2026-10-23 06:14:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T06:14:58Z.

Review: CHANGES_REQUESTED


Reviewed the current implementation and reported validation for head 672308b453c902d8434842e8bb8e9779eba33da3. The feature has substantial focused coverage and evidence across lavapipe and the RTX 3070, including default-off bit identity and presentation-path checks. One integration blocker remains: check_main_sync.py shows this head is 4 ahead/209 behind fetched upstream/main at 0db47b263, with four changed paths also modified after the merge base: core/libs/prx/libSceAgcDriver/CMakeLists.txt, Execution/src/VulkanDevice.cpp, and both usage/environment docs. The reported full Linux suite and tests are on base 7e69be679, so they do not establish the combined current-main tree. Please rebase/merge current main, resolve these shared paths, rerun overlap and the focused presentation/upscale/overlay/VideoOut tests on the resulting head, and report any changed failures. This request is for current-main integration evidence required by the repository contribution checklist; it is not about queue size. Local conventions pass; hosted checks currently cover policy only and skip product builds.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5624621378 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5624621378). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T06:14:58Z. **Review:** CHANGES_REQUESTED --- Reviewed the current implementation and reported validation for head `672308b453c902d8434842e8bb8e9779eba33da3`. The feature has substantial focused coverage and evidence across lavapipe and the RTX 3070, including default-off bit identity and presentation-path checks. One integration blocker remains: `check_main_sync.py` shows this head is 4 ahead/209 behind fetched `upstream/main` at `0db47b263`, with four changed paths also modified after the merge base: `core/libs/prx/libSceAgcDriver/CMakeLists.txt`, `Execution/src/VulkanDevice.cpp`, and both usage/environment docs. The reported full Linux suite and tests are on base `7e69be679`, so they do not establish the combined current-main tree. Please rebase/merge current main, resolve these shared paths, rerun overlap and the focused presentation/upscale/overlay/VideoOut tests on the resulting head, and report any changed failures. This request is for current-main integration evidence required by the repository contribution checklist; it is not about queue size. Local conventions pass; hosted checks currently cover policy only and skip product builds.
MarcZX10 commented 2026-10-29 07:11:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T07:11:10Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes still requested

The author’s A/B and validation runs address the earlier integration request, but the tested baseline 2227f13661 is behind current main and several changed paths overlap this upscaling PR.

What I ran

  • Reviewed exact PR head 711dd2ac58 against current main edf6804cf52c62eacafc592dd6142cb4efe5bd05.
  • Ran git merge-base, git merge-tree --write-tree, git diff --name-status for the paths changed since the report baseline, and git diff --check.
  • Inspected the author’s GPU report and current hosted checks. I did not run GPU tests locally.

Results

Check Result
PR base / current main 0cd07dc4ab / edf6804cf5
Merge preview Clean; tree 911521b0d1cb5d6dd947fc32a9c65ec8cc8aab07
Main changes since tested base on touched paths VulkanDevice, AGC CMake, PerformanceOverlay tests, and user/dev docs
Author-reported GPU runs Focused presentation, upscale, overlay, and VideoOut suites ran 10 times on head 711dd2ac58 and main 2227f13661; validation comparison reports no new VUIDs
Local diff check Reports trailing whitespace in the newly vendored FidelityFX-FSR headers; hosted conventions passes
Local GPU execution Not run
Unedited merge/path output
$ git merge-base upstream/main refs/review/upstream-10043
0cd07dc4ab25d924cbcebee5e0468a1b785042f7
$ git merge-tree --write-tree upstream/main refs/review/upstream-10043
911521b0d1cb5d6dd947fc32a9c65ec8cc8aab07
$ git diff --name-status 0cd07dc4ab25d924cbcebee5e0468a1b785042f7..upstream/main -- 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/libSceAgcDriver/tests/PerformanceOverlay.cpp docs/dev/ENVIRONMENT.md docs/user/USAGE.md
M core/libs/prx/libSceAgcDriver/CMakeLists.txt
M core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
M core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
M core/libs/prx/libSceAgcDriver/tests/PerformanceOverlay.cpp
M docs/dev/ENVIRONMENT.md
M docs/user/USAGE.md

Negative control

Comparison Result
Author’s main/change test pair It compares main 2227f13661 with this head, but does not cover current-main changes listed above

Findings

Blocking

  • Please rebase on current main and rerun the focused presentation/upscale/overlay/VideoOut tests with Vulkan validation on the same machine and GPU. The changed VulkanDevice and presentation-test paths can affect the feature’s integration, so the older pair does not validate the current base.

Non-blocking

  • git diff --check reports trailing whitespace in vendored FSR headers; hosted conventions passes. I did not request reformatting those imported files.

Sources

Not verified

  • GPU behavior after rebasing this PR onto current main.

To get this to a good state

  • Publish the focused validation run with exact current-main and PR-head revisions, then update the PR’s tested baseline.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694064362 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5694064362). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T07:11:10Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes still requested The author’s A/B and validation runs address the earlier integration request, but the tested baseline `2227f13661` is behind current `main` and several changed paths overlap this upscaling PR. ## What I ran - Reviewed exact PR head `711dd2ac58` against current `main` `edf6804cf52c62eacafc592dd6142cb4efe5bd05`. - Ran `git merge-base`, `git merge-tree --write-tree`, `git diff --name-status` for the paths changed since the report baseline, and `git diff --check`. - Inspected the author’s GPU report and current hosted checks. I did not run GPU tests locally. ## Results | Check | Result | |---|---| | PR base / current main | `0cd07dc4ab` / `edf6804cf5` | | Merge preview | Clean; tree `911521b0d1cb5d6dd947fc32a9c65ec8cc8aab07` | | Main changes since tested base on touched paths | `VulkanDevice`, AGC CMake, `PerformanceOverlay` tests, and user/dev docs | | Author-reported GPU runs | Focused presentation, upscale, overlay, and VideoOut suites ran 10 times on head `711dd2ac58` and main `2227f13661`; validation comparison reports no new VUIDs | | Local diff check | Reports trailing whitespace in the newly vendored FidelityFX-FSR headers; hosted conventions passes | | Local GPU execution | Not run | <details><summary>Unedited merge/path output</summary> ```text $ git merge-base upstream/main refs/review/upstream-10043 0cd07dc4ab25d924cbcebee5e0468a1b785042f7 $ git merge-tree --write-tree upstream/main refs/review/upstream-10043 911521b0d1cb5d6dd947fc32a9c65ec8cc8aab07 $ git diff --name-status 0cd07dc4ab25d924cbcebee5e0468a1b785042f7..upstream/main -- 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/libSceAgcDriver/tests/PerformanceOverlay.cpp docs/dev/ENVIRONMENT.md docs/user/USAGE.md M core/libs/prx/libSceAgcDriver/CMakeLists.txt M core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp M core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp M core/libs/prx/libSceAgcDriver/tests/PerformanceOverlay.cpp M docs/dev/ENVIRONMENT.md M docs/user/USAGE.md ``` </details> ## Negative control | Comparison | Result | |---|---| | Author’s main/change test pair | It compares main `2227f13661` with this head, but does not cover current-main changes listed above | ## Findings ### Blocking - Please rebase on current `main` and rerun the focused presentation/upscale/overlay/VideoOut tests with Vulkan validation on the same machine and GPU. The changed `VulkanDevice` and presentation-test paths can affect the feature’s integration, so the older pair does not validate the current base. ### Non-blocking - `git diff --check` reports trailing whitespace in vendored FSR headers; hosted conventions passes. I did not request reformatting those imported files. ## Sources - [Author’s updated GPU report](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6468312402) - [Current-main Vulkan device path](https://github.com/boykopovar/AnyPS5/blob/edf6804cf52c62eacafc592dd6142cb4efe5bd05/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp) - [Current-main presentation tests](https://github.com/boykopovar/AnyPS5/blob/edf6804cf52c62eacafc592dd6142cb4efe5bd05/core/libs/prx/libSceAgcDriver/tests/PerformanceOverlay.cpp) ## Not verified - GPU behavior after rebasing this PR onto current `main`. ## To get this to a good state - Publish the focused validation run with exact current-main and PR-head revisions, then update the PR’s tested baseline.
MarcZX10 commented 2026-10-30 01:05:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T01:05:18Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The current-main integration and repeated focused runs address the earlier stale-base concern, but the latest Vulkan-validation report still records a VUID from the PR-only presentation test.

What I ran

  • Exact PR head: c88633cf1703198fcea3a708c767c835258d76e2; recorded PR base: 0afe7a47556945dfa529b173722d673a2fb23773; current main: f6fddd60d826831f70f7c62e25423610ee742bcc.
  • Environment: Linux x86_64, Git 2.39.5, Python 3.11.2. No project build, CTest, or GPU run was performed locally.
  • The merge preview against current main is clean. Since the PR base, current main changed only three paths also touched by this PR: the AGC CMake file and two documentation files; I found no intervening source change in the PR’s implementation paths.
git merge-tree --write-tree upstream/main c88633cf1703198fcea3a708c767c835258d76e2
git diff --check upstream/main c88633cf1703198fcea3a708c767c835258d76e2
python3 tools/check_conventions.py --base upstream/main --head c88633cf1703198fcea3a708c767c835258d76e2

Results

Check Result
Current-main merge preview Clean; tree 929c3778de85cd03ecd321f5c74f54345f3a263f
git diff --check Reports trailing whitespace in the two vendored AMD FidelityFX headers; the repository conventions check passes and the headers are intentionally kept verbatim
Conventions Passed
Author-reported focused tests The presentation, upscale, FSR, overlay, VideoOut and resident-present sets ran 10 times on Linux and Windows with no test failures; many tests skipped on those runners
Author-reported validation The comparison reports VUID-VkDeviceCreateInfo-pNext-pNext from devices created by the new agc_driver_present_upscale test; the report attributes it to a structure unknown to that validation-layer version
Hosted checks on exact head Windows, conventions, labels, eligibility and report pass; relinker, ASan, Linux product and specialized jobs are skipped
Unedited local command output
$ git merge-tree --write-tree upstream/main c88633cf1703198fcea3a708c767c835258d76e2
929c3778de85cd03ecd321f5c74f54345f3a263f
$ python3 tools/check_conventions.py --base upstream/main --head c88633cf1703198fcea3a708c767c835258d76e2
All conventions checks passed.
$ git diff --check upstream/main c88633cf1703198fcea3a708c767c835258d76e2
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace.
+//  - Replace transcendentals with manual versions. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:313: trailing whitespace.
+ // These follow the convention that A integer types don't have signage, until they are operated on. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:572: trailing whitespace.
+   #extension GL_EXT_shader_explicit_arithmetic_types:require 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1093: trailing whitespace.
+ #define AU1_AH2_AF2(a) AU1_AH2_AF2_x(AF2(a)) 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1610: trailing whitespace.
+//  - Can pull out byte values from two sources, and zero fill upper 8-bits of packed hi and lo. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1705: trailing whitespace.
+//   1 = lowest value 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1706: trailing whitespace.
+// 128 = exact zero center (zero based encoding 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1718: trailing whitespace.
+//  128 : 0 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1719: trailing whitespace.
+//     ... 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1940: trailing whitespace.
+  AH1 APCosH1(AH1 x){x=AFractH1(x*AH1_(0.5)+AH1_(0.75));x=x*AH1_(2.0)-AH1_(1.0);return APSinH1(x);} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2174: trailing whitespace.
+  AF1 AToGammaF1(AF1 c,AF1 rcpX){return pow(c,AF1_(rcpX));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2175: trailing whitespace.
+  AF2 AToGammaF2(AF2 c,AF1 rcpX){return pow(c,AF2_(rcpX));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2176: trailing whitespace.
+  AF3 AToGammaF3(AF3 c,AF1 rcpX){return pow(c,AF3_(rcpX));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2210: trailing whitespace.
+  AF1 AFromGammaF1(AF1 c,AF1 x){return pow(c,AF1_(x));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2211: trailing whitespace.
+  AF2 AFromGammaF2(AF2 c,AF1 x){return pow(c,AF2_(x));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2212: trailing whitespace.
+  AF3 AFromGammaF3(AF3 c,AF1 x){return pow(c,AF3_(x));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2314: trailing whitespace.
+ //  00 01 08 09 10 11 18 19 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2317: trailing whitespace.
+ //  06 07 0e 0f 16 17 1e 1f 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2318: trailing whitespace.
+ //  20 21 28 29 30 31 38 39 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2321: trailing whitespace.
+ //  26 27 2e 2f 36 37 3e 3f 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2378: trailing whitespace.
+//  2047 .............................................. last normal value that still maps to integers 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:43: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:83: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:93: trailing whitespace.
+// Best to apply EASU at the end of the frame after tonemapping 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:97: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:106: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:108: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:117: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:119: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:130: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:134: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:614: trailing whitespace.
+//  w 1 w  for taps  w m e 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:633: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:639: trailing whitespace.
+//  
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:642: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:694: trailing whitespace.
+  //    b 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:769: trailing whitespace.
+  return;} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:792: trailing whitespace.
+  //    b 

Findings

Blocking

  • The repository requires the AGC validation comparison to introduce no new VUIDs. This report identifies a VUID in a device-creation path exercised by the PR-only test; main cannot demonstrate the same test is clean because it lacks that test. The reported “unknown structure” may indicate an outdated validation layer, but the report does not identify the structure type or show a clean run on a layer that recognizes it. Please provide the full VUID message, the structure type and validation-layer version, then rerun the focused comparison with a compatible layer or adjust the test setup so no new VUID is emitted.

Non-blocking

  • The merge is clean and the repeated focused test reports contain no test failures. The trailing whitespace is confined to the vendored AMD headers, which the PR says are kept verbatim.

Sources

Not verified

I did not build, run CTest, or run GPU validation locally. The focused test and validation results are author-reported. Linux product, relinker, ASan and specialized hosted jobs were skipped.

To get this to a good state

Identify and resolve or substantiate the new VUID with a compatible validation layer, then request re-review. I will reassess the exact updated head and rerun the non-build checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5706918214 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5706918214). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T01:05:18Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The current-main integration and repeated focused runs address the earlier stale-base concern, but the latest Vulkan-validation report still records a VUID from the PR-only presentation test. ## What I ran - Exact PR head: `c88633cf1703198fcea3a708c767c835258d76e2`; recorded PR base: `0afe7a47556945dfa529b173722d673a2fb23773`; current `main`: `f6fddd60d826831f70f7c62e25423610ee742bcc`. - Environment: Linux x86_64, Git 2.39.5, Python 3.11.2. No project build, CTest, or GPU run was performed locally. - The merge preview against current `main` is clean. Since the PR base, current `main` changed only three paths also touched by this PR: the AGC CMake file and two documentation files; I found no intervening source change in the PR’s implementation paths. ```sh git merge-tree --write-tree upstream/main c88633cf1703198fcea3a708c767c835258d76e2 git diff --check upstream/main c88633cf1703198fcea3a708c767c835258d76e2 python3 tools/check_conventions.py --base upstream/main --head c88633cf1703198fcea3a708c767c835258d76e2 ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `929c3778de85cd03ecd321f5c74f54345f3a263f` | | `git diff --check` | Reports trailing whitespace in the two vendored AMD FidelityFX headers; the repository conventions check passes and the headers are intentionally kept verbatim | | Conventions | Passed | | Author-reported focused tests | The presentation, upscale, FSR, overlay, VideoOut and resident-present sets ran 10 times on Linux and Windows with no test failures; many tests skipped on those runners | | Author-reported validation | The comparison reports `VUID-VkDeviceCreateInfo-pNext-pNext` from devices created by the new `agc_driver_present_upscale` test; the report attributes it to a structure unknown to that validation-layer version | | Hosted checks on exact head | Windows, conventions, labels, eligibility and report pass; relinker, ASan, Linux product and specialized jobs are skipped | <details> <summary>Unedited local command output</summary> ```text $ git merge-tree --write-tree upstream/main c88633cf1703198fcea3a708c767c835258d76e2 929c3778de85cd03ecd321f5c74f54345f3a263f $ python3 tools/check_conventions.py --base upstream/main --head c88633cf1703198fcea3a708c767c835258d76e2 All conventions checks passed. $ git diff --check upstream/main c88633cf1703198fcea3a708c767c835258d76e2 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace. +// - Replace transcendentals with manual versions. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:313: trailing whitespace. + // These follow the convention that A integer types don't have signage, until they are operated on. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:572: trailing whitespace. + #extension GL_EXT_shader_explicit_arithmetic_types:require 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1093: trailing whitespace. + #define AU1_AH2_AF2(a) AU1_AH2_AF2_x(AF2(a)) 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1610: trailing whitespace. +// - Can pull out byte values from two sources, and zero fill upper 8-bits of packed hi and lo. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1705: trailing whitespace. +// 1 = lowest value 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1706: trailing whitespace. +// 128 = exact zero center (zero based encoding 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1718: trailing whitespace. +// 128 : 0 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1719: trailing whitespace. +// ... 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1940: trailing whitespace. + AH1 APCosH1(AH1 x){x=AFractH1(x*AH1_(0.5)+AH1_(0.75));x=x*AH1_(2.0)-AH1_(1.0);return APSinH1(x);} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2174: trailing whitespace. + AF1 AToGammaF1(AF1 c,AF1 rcpX){return pow(c,AF1_(rcpX));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2175: trailing whitespace. + AF2 AToGammaF2(AF2 c,AF1 rcpX){return pow(c,AF2_(rcpX));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2176: trailing whitespace. + AF3 AToGammaF3(AF3 c,AF1 rcpX){return pow(c,AF3_(rcpX));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2210: trailing whitespace. + AF1 AFromGammaF1(AF1 c,AF1 x){return pow(c,AF1_(x));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2211: trailing whitespace. + AF2 AFromGammaF2(AF2 c,AF1 x){return pow(c,AF2_(x));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2212: trailing whitespace. + AF3 AFromGammaF3(AF3 c,AF1 x){return pow(c,AF3_(x));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2314: trailing whitespace. + // 00 01 08 09 10 11 18 19 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2317: trailing whitespace. + // 06 07 0e 0f 16 17 1e 1f 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2318: trailing whitespace. + // 20 21 28 29 30 31 38 39 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2321: trailing whitespace. + // 26 27 2e 2f 36 37 3e 3f 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2378: trailing whitespace. +// 2047 .............................................. last normal value that still maps to integers 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:43: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:83: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:93: trailing whitespace. +// Best to apply EASU at the end of the frame after tonemapping 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:97: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:106: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:108: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:117: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:119: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:130: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:134: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:614: trailing whitespace. +// w 1 w for taps w m e 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:633: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:639: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:642: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:694: trailing whitespace. + // b 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:769: trailing whitespace. + return;} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:792: trailing whitespace. + // b ``` </details> ## Findings ### Blocking - The repository requires the AGC validation comparison to introduce no new VUIDs. This report identifies a VUID in a device-creation path exercised by the PR-only test; `main` cannot demonstrate the same test is clean because it lacks that test. The reported “unknown structure” may indicate an outdated validation layer, but the report does not identify the structure type or show a clean run on a layer that recognizes it. Please provide the full VUID message, the structure type and validation-layer version, then rerun the focused comparison with a compatible layer or adjust the test setup so no new VUID is emitted. ### Non-blocking - The merge is clean and the repeated focused test reports contain no test failures. The trailing whitespace is confined to the vendored AMD headers, which the PR says are kept verbatim. ## Sources - [AGC Vulkan-validation requirement at current `main`](https://github.com/boykopovar/AnyPS5/blob/f6fddd60d826831f70f7c62e25423610ee742bcc/CONTRIBUTING.md#L72) - [Presentation test at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/c88633cf1703198fcea3a708c767c835258d76e2/core/libs/prx/libSceAgcDriver/tests/PresentationPass.cpp) - [Author’s latest rerun report](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6507837987) ## Not verified I did not build, run CTest, or run GPU validation locally. The focused test and validation results are author-reported. Linux product, relinker, ASan and specialized hosted jobs were skipped. ## To get this to a good state Identify and resolve or substantiate the new VUID with a compatible validation layer, then request re-review. I will reassess the exact updated head and rerun the non-build checks.
MarcZX10 commented 2026-10-30 04:05:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T04:05:51Z.

Review: COMMENTED


Re-checked — new evidence, current-main integration pending

The full report establishes that the maintenance8 VUID is emitted on both the baseline and PR; I found no PR-specific VUID, but the current-main merge still needs focused validation.

What I ran

  • Exact PR head: 51655586c53136a42524e17af0ef83771ee72def; PR base: 1a217758a55c09e817366fa4412b07fc91e3.
  • Compared against current main 5ecef095b61e7a406b279c97896f3a8a6fbd6353; merge preview is clean, tree a22eabc4342e86a5446231742f36b5d943975fc2.
  • Environment: Linux x86_64; no build or GPU tests run locally.
git merge-tree --write-tree upstream/main refs/review/pr-10043-current
git diff --check upstream/main...refs/review/pr-10043-current
python tools/check_conventions.py --base upstream/main --head refs/review/pr-10043-current
python tools/check_main_sync.py --base upstream/main --head refs/review/pr-10043-current
git diff --unified=0 1a217758a55c09e817366fa4412b07fc91e3..upstream/main -- core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp

Results

Check Result
Current-main merge preview Clean; tree a22eabc4342e86a5446231742f36b5d943975fc2
git diff --check Reports trailing whitespace in the vendored FidelityFX-FSR headers; the repository conventions check passes.
Repository conventions Passed
Main synchronization Four PR-touched files changed on both sides since the merge base
Hosted checks Windows, conventions, labels, eligibility and report pass on exact head; Linux product CI is skipped.
Author-reported validation On baseline main 1a217758a5 and PR head 51655586c5, the focused validation run reports the same VUID-VkDeviceCreateInfo-pNext-pNext for VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_8_FEATURES_KHR on both arms and no other VUID. It adds agc_driver_sample_multisample_target to show the same warning on main.
Later current-main changes The VulkanDevice.cpp change since 1a217758a5 adds optional host reporting; it does not alter the device-create pNext chain. CMake and docs also changed.
Unedited local command output
$ git merge-tree --write-tree upstream/main refs/review/pr-10043-current
a22eabc4342e86a5446231742f36b5d943975fc2
$ python tools/check_conventions.py --base upstream/main --head refs/review/pr-10043-current
All conventions checks passed.
$ python tools/check_main_sync.py --base upstream/main --head refs/review/pr-10043-current
refs/review/pr-10043-current is 10 ahead and 90 behind upstream/main (merge base 1a217758a)
merge: clean
4 file(s) changed on both sides since the merge base:
  core/libs/prx/libSceAgcDriver/CMakeLists.txt
  core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
  docs/dev/ENVIRONMENT.md
  docs/user/USAGE.md

The diff check reports trailing whitespace in 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h and ffx_fsr1.h; these imported headers are kept verbatim. The device-creation source diff since 1a217758a5 contains host-report changes, with no pNext or VkDeviceCreateInfo changes.

Findings

Blocking

None found in the reported VUID: the author’s A/B evidence shows the same maintenance8 structure warning on both arms, and the current-main source change does not alter that device-create chain. This supersedes my earlier VUID finding.

Non-blocking

The A/B validation run uses main 1a217758a5, while current main is 5ecef095b6. The later changes in VulkanDevice.cpp are host-reporting code, but the current integration also changes the AGC CMake target and has not been exercised by the reported focused runs. I am leaving approval pending that current-main integration evidence.

Sources

Not verified

I did not run builds, CTest or GPU validation locally. Linux product CI is skipped. The reported GPU comparison used baseline 1a217758a5, not current main 5ecef095b6.

To get this to a good state

Run the focused presentation, upscale, FSR, overlay and VideoOut validation tests on current main and its clean merge with this PR, on the same GPU and layer. Report exact revisions and any VUID differences; I will reassess the result.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5707955351 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5707955351). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T04:05:51Z. **Review:** COMMENTED --- # Re-checked — new evidence, current-main integration pending The full report establishes that the maintenance8 VUID is emitted on both the baseline and PR; I found no PR-specific VUID, but the current-main merge still needs focused validation. ## What I ran - Exact PR head: `51655586c53136a42524e17af0ef83771ee72def`; PR base: `1a217758a55c09e817366fa4412b07fc91e3`. - Compared against current `main` `5ecef095b61e7a406b279c97896f3a8a6fbd6353`; merge preview is clean, tree `a22eabc4342e86a5446231742f36b5d943975fc2`. - Environment: Linux x86_64; no build or GPU tests run locally. ```sh git merge-tree --write-tree upstream/main refs/review/pr-10043-current git diff --check upstream/main...refs/review/pr-10043-current python tools/check_conventions.py --base upstream/main --head refs/review/pr-10043-current python tools/check_main_sync.py --base upstream/main --head refs/review/pr-10043-current git diff --unified=0 1a217758a55c09e817366fa4412b07fc91e3..upstream/main -- core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `a22eabc4342e86a5446231742f36b5d943975fc2` | | `git diff --check` | Reports trailing whitespace in the vendored FidelityFX-FSR headers; the repository conventions check passes. | | Repository conventions | Passed | | Main synchronization | Four PR-touched files changed on both sides since the merge base | | Hosted checks | Windows, conventions, labels, eligibility and report pass on exact head; Linux product CI is skipped. | | Author-reported validation | On baseline `main` `1a217758a5` and PR head `51655586c5`, the focused validation run reports the same `VUID-VkDeviceCreateInfo-pNext-pNext` for `VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_8_FEATURES_KHR` on both arms and no other VUID. It adds `agc_driver_sample_multisample_target` to show the same warning on main. | | Later current-main changes | The `VulkanDevice.cpp` change since `1a217758a5` adds optional host reporting; it does not alter the device-create `pNext` chain. CMake and docs also changed. | <details> <summary>Unedited local command output</summary> ```text $ git merge-tree --write-tree upstream/main refs/review/pr-10043-current a22eabc4342e86a5446231742f36b5d943975fc2 $ python tools/check_conventions.py --base upstream/main --head refs/review/pr-10043-current All conventions checks passed. $ python tools/check_main_sync.py --base upstream/main --head refs/review/pr-10043-current refs/review/pr-10043-current is 10 ahead and 90 behind upstream/main (merge base 1a217758a) merge: clean 4 file(s) changed on both sides since the merge base: core/libs/prx/libSceAgcDriver/CMakeLists.txt core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp docs/dev/ENVIRONMENT.md docs/user/USAGE.md ``` The diff check reports trailing whitespace in `3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h` and `ffx_fsr1.h`; these imported headers are kept verbatim. The device-creation source diff since `1a217758a5` contains host-report changes, with no `pNext` or `VkDeviceCreateInfo` changes. </details> ## Findings ### Blocking None found in the reported VUID: the author’s A/B evidence shows the same maintenance8 structure warning on both arms, and the current-main source change does not alter that device-create chain. This supersedes my earlier VUID finding. ### Non-blocking The A/B validation run uses `main` `1a217758a5`, while current `main` is `5ecef095b6`. The later changes in `VulkanDevice.cpp` are host-reporting code, but the current integration also changes the AGC CMake target and has not been exercised by the reported focused runs. I am leaving approval pending that current-main integration evidence. ## Sources - [Full VUID, baseline comparison and test counts](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6514645395) - [Current `VulkanDevice.cpp` at main `5ecef095`](https://github.com/boykopovar/AnyPS5/blob/5ecef095b61e7a406b279c97896f3a8a6fbd6353/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp) ## Not verified I did not run builds, CTest or GPU validation locally. Linux product CI is skipped. The reported GPU comparison used baseline `1a217758a5`, not current `main` `5ecef095b6`. ## To get this to a good state Run the focused presentation, upscale, FSR, overlay and VideoOut validation tests on current `main` and its clean merge with this PR, on the same GPU and layer. Report exact revisions and any VUID differences; I will reassess the result.
MarcZX10 commented 2026-10-30 04:16:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T04:16:24Z.

Review: APPROVED


Re-checked — new head, looks good

The exact-head Vulkan comparison explains the only reported VUID as the same maintenance8 structure already chained by main; I found no remaining blocker.

What I ran

  • PR head 51655586c53136a42524e17af0ef83771ee72def; PR base 1a217758a55c09e817366fa4411daac854eeb3f9; current main 5ecef095b61e7a406b279c97896f3a8a6fbd6353.
  • Current-main merge preview: clean, tree a22eabc4342e86a5446231742f36b5d943975fc2.
  • Environment: Linux 6.1 x86_64, Python 3.11.2. No local compiler, project build, or GPU tests were run.
  • Commands:
git merge-tree --write-tree upstream/main upstream/pr/10043
git diff --check upstream/main...upstream/pr/10043
git diff --check upstream/main...upstream/pr/10043 -- . ':(exclude)3rdparty/FidelityFX-FSR/**'
python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10043
git diff --name-only 1a217758a55c09e817366fa4411daac854eeb3f9 upstream/main -- core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Presentation.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Present.cpp
gh api repos/EagleBearerYS/AnyPS5/commits/847cc558c2051e0fd2003932855fed12f0fc97a0 --jq '{parents:[.parents[].sha],tree:.commit.tree.sha}'

Results

Check Result
Current-main merge preview Pass; clean tree a22eabc4342e86a5446231742f36b5d943975fc2.
Diff check Reports trailing whitespace in the imported FSR headers; excluding the verbatim 3rdparty/FidelityFX-FSR vendor files, the rest of the diff is clean.
Conventions Pass; All conventions checks passed.
Current-main delta Only the shared VulkanDevice.cpp file changed since the measured base; its delta adds host-report collection and the mesh-window target flag. The vkCreateDevice maintenance8 pNext chain is unchanged.
Exact-head validation The author reports the verification runs are based on exact PR head 51655586c53136a42524e17af0ef83771ee72def (the verification commits have that SHA as their parent). Linux presentation/upscale/FSR/overlay/VideoOut tests report 15 passes, 27 skips, 0 failures; the validation comparison reports only the same VUID-VkDeviceCreateInfo-pNext-pNext for structure type 1000574000 on both arms. The PR arm reports eight occurrences versus one on main; the report attributes these to the per-device warning. I did not run these GPU tests. Author’s exact-head report
Hosted CI Windows job passes. Product Linux and specialized jobs are skipped by policy.
Unedited local command output

git merge-tree --write-tree upstream/main upstream/pr/10043

a22eabc4342e86a5446231742f36b5d943975fc2

git diff --check upstream/main...upstream/pr/10043 exited 2 and reported only trailing whitespace in the imported FSR files. The output begins:

3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace.
+//  - Replace transcendentals with manual versions. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:313: trailing whitespace.
+ // These follow the convention that A integer types don't have signage, until they are operated on. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:572: trailing whitespace.
+   #extension GL_EXT_shader_explicit_arithmetic_types:require 

The full command reports additional trailing whitespace in ffx_a.h and ffx_fsr1.h; no other paths were reported. git diff --check upstream/main...upstream/pr/10043 -- . ':(exclude)3rdparty/FidelityFX-FSR/**' exited 0 and produced no output.

python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10043

All conventions checks passed.

The current-main changed-path command printed:

core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp

The verification commit 847cc558c2051e0fd2003932855fed12f0fc97a0 lists PR head 51655586c53136a42524e17af0ef83771ee72def as its parent.

Negative control

Assertion Control and change Result
The reported pNext VUID is not introduced by this PR The author compared the same validation test set on main 1a217758a55c and PR head 51655586c531; the main device setup already chains VkPhysicalDeviceMaintenance8FeaturesKHR. The same VUID/type is reported on both arms, with no other VUID category reported. The occurrence counts differ (1 vs 8); I accept the author’s stated per-device explanation, but did not independently reproduce it.

Findings

Blocking

None found.

Non-blocking

My prior request for current-main validation was broader than necessary. The PR’s declared and measured base is 1a217..., and the exact-head author report exercises that integration. Current main has advanced, but the only shared production-file delta does not change the device-create pNext chain or the presentation/upscale code under review; the merge preview is clean.

Sources

Not verified

I did not locally build or run Vulkan tests. The GPU test and validation results are author-reported; product Linux CI is skipped. I did not independently confirm why the same VUID appears eight times on the PR arm and once on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5708014420 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5708014420). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T04:16:24Z. **Review:** APPROVED --- # Re-checked — new head, looks good The exact-head Vulkan comparison explains the only reported VUID as the same maintenance8 structure already chained by `main`; I found no remaining blocker. ## What I ran - PR head `51655586c53136a42524e17af0ef83771ee72def`; PR base `1a217758a55c09e817366fa4411daac854eeb3f9`; current main `5ecef095b61e7a406b279c97896f3a8a6fbd6353`. - Current-main merge preview: clean, tree `a22eabc4342e86a5446231742f36b5d943975fc2`. - Environment: Linux 6.1 x86_64, Python 3.11.2. No local compiler, project build, or GPU tests were run. - Commands: ```sh git merge-tree --write-tree upstream/main upstream/pr/10043 git diff --check upstream/main...upstream/pr/10043 git diff --check upstream/main...upstream/pr/10043 -- . ':(exclude)3rdparty/FidelityFX-FSR/**' python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10043 git diff --name-only 1a217758a55c09e817366fa4411daac854eeb3f9 upstream/main -- core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Presentation.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Present.cpp gh api repos/EagleBearerYS/AnyPS5/commits/847cc558c2051e0fd2003932855fed12f0fc97a0 --jq '{parents:[.parents[].sha],tree:.commit.tree.sha}' ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Pass; clean tree `a22eabc4342e86a5446231742f36b5d943975fc2`. | | Diff check | Reports trailing whitespace in the imported FSR headers; excluding the verbatim `3rdparty/FidelityFX-FSR` vendor files, the rest of the diff is clean. | | Conventions | Pass; `All conventions checks passed.` | | Current-main delta | Only the shared `VulkanDevice.cpp` file changed since the measured base; its delta adds host-report collection and the mesh-window target flag. The `vkCreateDevice` maintenance8 pNext chain is unchanged. | | Exact-head validation | The author reports the verification runs are based on exact PR head `51655586c53136a42524e17af0ef83771ee72def` (the verification commits have that SHA as their parent). Linux presentation/upscale/FSR/overlay/VideoOut tests report 15 passes, 27 skips, 0 failures; the validation comparison reports only the same `VUID-VkDeviceCreateInfo-pNext-pNext` for structure type `1000574000` on both arms. The PR arm reports eight occurrences versus one on main; the report attributes these to the per-device warning. I did not run these GPU tests. [Author’s exact-head report](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6514645395) | | Hosted CI | Windows job passes. Product Linux and specialized jobs are skipped by policy. | <details> <summary>Unedited local command output</summary> `git merge-tree --write-tree upstream/main upstream/pr/10043` ```text a22eabc4342e86a5446231742f36b5d943975fc2 ``` `git diff --check upstream/main...upstream/pr/10043` exited 2 and reported only trailing whitespace in the imported FSR files. The output begins: ```text 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace. +// - Replace transcendentals with manual versions. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:313: trailing whitespace. + // These follow the convention that A integer types don't have signage, until they are operated on. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:572: trailing whitespace. + #extension GL_EXT_shader_explicit_arithmetic_types:require ``` The full command reports additional trailing whitespace in `ffx_a.h` and `ffx_fsr1.h`; no other paths were reported. `git diff --check upstream/main...upstream/pr/10043 -- . ':(exclude)3rdparty/FidelityFX-FSR/**'` exited 0 and produced no output. `python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10043` ```text All conventions checks passed. ``` The current-main changed-path command printed: ```text core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp ``` The verification commit `847cc558c2051e0fd2003932855fed12f0fc97a0` lists PR head `51655586c53136a42524e17af0ef83771ee72def` as its parent. </details> ## Negative control | Assertion | Control and change | Result | |---|---|---| | The reported pNext VUID is not introduced by this PR | The author compared the same validation test set on `main` `1a217758a55c` and PR head `51655586c531`; the main device setup already chains `VkPhysicalDeviceMaintenance8FeaturesKHR`. | The same VUID/type is reported on both arms, with no other VUID category reported. The occurrence counts differ (1 vs 8); I accept the author’s stated per-device explanation, but did not independently reproduce it. | ## Findings ### Blocking None found. ### Non-blocking My prior request for current-main validation was broader than necessary. The PR’s declared and measured base is `1a217...`, and the exact-head author report exercises that integration. Current main has advanced, but the only shared production-file delta does not change the device-create pNext chain or the presentation/upscale code under review; the merge preview is clean. ## Sources - [Maintenance8 structure in the measured base](https://github.com/boykopovar/AnyPS5/blob/1a217758a55c09e817366fa4411daac854eeb3f9/3rdparty/Vulkan-Headers/include/vulkan/vulkan_core.h#L1319) - [Main device-create chain at the measured base](https://github.com/boykopovar/AnyPS5/blob/1a217758a55c09e817366fa4411daac854eeb3f9/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L1623) - [VulkanDevice current-main delta](https://github.com/boykopovar/AnyPS5/blob/5ecef095b61e7a406b279c97896f3a8a6fbd6353/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp) ## Not verified I did not locally build or run Vulkan tests. The GPU test and validation results are author-reported; product Linux CI is skipped. I did not independently confirm why the same VUID appears eight times on the PR arm and once on main.
MarcZX10 commented 2026-10-30 04:16:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T04:16:50Z.

Review: APPROVED


Re-checked — new head, looks good

The exact-head Vulkan comparison explains the only reported VUID as the same maintenance8 structure already chained by main; I found no remaining blocker.

What I ran

  • PR head 51655586c53136a42524e17af0ef83771ee72def; PR base 1a217758a55c09e817366fa4411daac854eeb3f9; current main 5ecef095b61e7a406b279c97896f3a8a6fbd6353.
  • Current-main merge preview: clean, tree a22eabc4342e86a5446231742f36b5d943975fc2.
  • Environment: Linux 6.1 x86_64, Python 3.11.2. No local compiler, project build, or GPU tests were run.
  • Commands:
git merge-tree --write-tree upstream/main upstream/pr/10043
git diff --check upstream/main...upstream/pr/10043
git diff --check upstream/main...upstream/pr/10043 -- . ':(exclude)3rdparty/FidelityFX-FSR/**'
python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10043
git diff --name-only 1a217758a55c09e817366fa4411daac854eeb3f9 upstream/main -- core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Presentation.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Present.cpp
gh api repos/EagleBearerYS/AnyPS5/commits/847cc558c2051e0fd2003932855fed12f0fc97a0 --jq '{parents:[.parents[].sha],tree:.commit.tree.sha}'

Results

Check Result
Current-main merge preview Pass; clean tree a22eabc4342e86a5446231742f36b5d943975fc2.
Diff check Reports trailing whitespace in imported FSR headers; excluding the verbatim 3rdparty/FidelityFX-FSR vendor files, the rest of the diff is clean.
Conventions Pass; All conventions checks passed.
Current-main delta Only the shared VulkanDevice.cpp file changed since the measured base; its delta adds host-report collection and the mesh-window target flag. The vkCreateDevice maintenance8 pNext chain is unchanged.
Exact-head validation The author reports the verification runs are based on exact PR head 51655586c53136a42524e17af0ef83771ee72def (the verification commits have that SHA as their parent). Linux presentation/upscale/FSR/overlay/VideoOut tests report 15 passes, 27 skips, 0 failures; the validation comparison reports only the same VUID-VkDeviceCreateInfo-pNext-pNext for structure type 1000574000 on both arms. The PR arm reports eight occurrences versus one on main; the report attributes these to the per-device warning. I did not run these GPU tests. Author’s exact-head report
Hosted CI Windows job passes. Product Linux and specialized jobs are skipped by policy.
Unedited local command output

git merge-tree --write-tree upstream/main upstream/pr/10043

a22eabc4342e86a5446231742f36b5d943975fc2

git diff --check upstream/main...upstream/pr/10043 exited 2 and produced:

3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace.
+//  - Replace transcendentals with manual versions. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:313: trailing whitespace.
+ // These follow the convention that A integer types don't have signage, until they are operated on. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:572: trailing whitespace.
+   #extension GL_EXT_shader_explicit_arithmetic_types:require 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1093: trailing whitespace.
+ #define AU1_AH2_AF2(a) AU1_AH2_AF2_x(AF2(a)) 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1610: trailing whitespace.
+//  - Can pull out byte values from two sources, and zero fill upper 8-bits of packed hi and lo. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1705: trailing whitespace.
+//   1 = lowest value 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1706: trailing whitespace.
+// 128 = exact zero center (zero based encoding 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1718: trailing whitespace.
+//  128 : 0 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1719: trailing whitespace.
+//     ... 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1940: trailing whitespace.
+  AH1 APCosH1(AH1 x){x=AFractH1(x*AH1_(0.5)+AH1_(0.75));x=x*AH1_(2.0)-AH1_(1.0);return APSinH1(x);} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2174: trailing whitespace.
+  AF1 AToGammaF1(AF1 c,AF1 rcpX){return pow(c,AF1_(rcpX));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2175: trailing whitespace.
+  AF2 AToGammaF2(AF2 c,AF1 rcpX){return pow(c,AF2_(rcpX));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2176: trailing whitespace.
+  AF3 AToGammaF3(AF3 c,AF1 rcpX){return pow(c,AF3_(rcpX));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2210: trailing whitespace.
+  AF1 AFromGammaF1(AF1 c,AF1 x){return pow(c,AF1_(x));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2211: trailing whitespace.
+  AF2 AFromGammaF2(AF2 c,AF1 x){return pow(c,AF2_(x));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2212: trailing whitespace.
+  AF3 AFromGammaF3(AF3 c,AF1 x){return pow(c,AF3_(x));} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2314: trailing whitespace.
+ //  00 01 08 09 10 11 18 19 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2317: trailing whitespace.
+ //  06 07 0e 0f 16 17 1e 1f 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2318: trailing whitespace.
+ //  20 21 28 29 30 31 38 39 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2321: trailing whitespace.
+ //  26 27 2e 2f 36 37 3e 3f 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2378: trailing whitespace.
+//  2047 .............................................. last normal value that still maps to integers 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:43: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:83: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:93: trailing whitespace.
+// Best to apply EASU at the end of the frame after tonemapping 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:97: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:106: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:108: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:117: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:119: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:130: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:134: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:614: trailing whitespace.
+//  w 1 w  for taps  w m e 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:633: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:639: trailing whitespace.
+//  
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:642: trailing whitespace.
+// 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:694: trailing whitespace.
+  //    b 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:769: trailing whitespace.
+  return;} 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:792: trailing whitespace.
+  //    b 

git diff --check upstream/main...upstream/pr/10043 -- . ':(exclude)3rdparty/FidelityFX-FSR/**' exited 0 and produced no output.

python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10043

All conventions checks passed.

The current-main changed-path command printed:

core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp

The verification commit 847cc558c2051e0fd2003932855fed12f0fc97a0 lists PR head 51655586c53136a42524e17af0ef83771ee72def as its parent.

Negative control

Assertion Control and change Result
The reported pNext VUID is not introduced by this PR The author compared the same validation test set on main 1a217758a55c and PR head 51655586c531; the main device setup already chains VkPhysicalDeviceMaintenance8FeaturesKHR. The same VUID/type is reported on both arms, with no other VUID category reported. The occurrence counts differ (1 vs 8); I accept the author’s stated per-device explanation, but did not independently reproduce it.

Findings

Blocking

None found.

Non-blocking

My prior request for current-main validation was broader than necessary. The PR’s declared and measured base is 1a217..., and the exact-head author report exercises that integration. Current main has advanced, but the only shared production-file delta does not change the device-create pNext chain or the presentation/upscale code under review; the merge preview is clean.

Sources

Not verified

I did not locally build or run Vulkan tests. The GPU test and validation results are author-reported; product Linux CI is skipped. I did not independently confirm why the same VUID appears eight times on the PR arm and once on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5708017019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5708017019). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T04:16:50Z. **Review:** APPROVED --- # Re-checked — new head, looks good The exact-head Vulkan comparison explains the only reported VUID as the same maintenance8 structure already chained by `main`; I found no remaining blocker. ## What I ran - PR head `51655586c53136a42524e17af0ef83771ee72def`; PR base `1a217758a55c09e817366fa4411daac854eeb3f9`; current main `5ecef095b61e7a406b279c97896f3a8a6fbd6353`. - Current-main merge preview: clean, tree `a22eabc4342e86a5446231742f36b5d943975fc2`. - Environment: Linux 6.1 x86_64, Python 3.11.2. No local compiler, project build, or GPU tests were run. - Commands: ```sh git merge-tree --write-tree upstream/main upstream/pr/10043 git diff --check upstream/main...upstream/pr/10043 git diff --check upstream/main...upstream/pr/10043 -- . ':(exclude)3rdparty/FidelityFX-FSR/**' python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10043 git diff --name-only 1a217758a55c09e817366fa4411daac854eeb3f9 upstream/main -- core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Presentation.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Present.cpp gh api repos/EagleBearerYS/AnyPS5/commits/847cc558c2051e0fd2003932855fed12f0fc97a0 --jq '{parents:[.parents[].sha],tree:.commit.tree.sha}' ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Pass; clean tree `a22eabc4342e86a5446231742f36b5d943975fc2`. | | Diff check | Reports trailing whitespace in imported FSR headers; excluding the verbatim `3rdparty/FidelityFX-FSR` vendor files, the rest of the diff is clean. | | Conventions | Pass; `All conventions checks passed.` | | Current-main delta | Only the shared `VulkanDevice.cpp` file changed since the measured base; its delta adds host-report collection and the mesh-window target flag. The `vkCreateDevice` maintenance8 pNext chain is unchanged. | | Exact-head validation | The author reports the verification runs are based on exact PR head `51655586c53136a42524e17af0ef83771ee72def` (the verification commits have that SHA as their parent). Linux presentation/upscale/FSR/overlay/VideoOut tests report 15 passes, 27 skips, 0 failures; the validation comparison reports only the same `VUID-VkDeviceCreateInfo-pNext-pNext` for structure type `1000574000` on both arms. The PR arm reports eight occurrences versus one on main; the report attributes these to the per-device warning. I did not run these GPU tests. [Author’s exact-head report](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6514645395) | | Hosted CI | Windows job passes. Product Linux and specialized jobs are skipped by policy. | <details> <summary>Unedited local command output</summary> `git merge-tree --write-tree upstream/main upstream/pr/10043` ```text a22eabc4342e86a5446231742f36b5d943975fc2 ``` `git diff --check upstream/main...upstream/pr/10043` exited 2 and produced: ```text 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace. +// - Replace transcendentals with manual versions. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:313: trailing whitespace. + // These follow the convention that A integer types don't have signage, until they are operated on. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:572: trailing whitespace. + #extension GL_EXT_shader_explicit_arithmetic_types:require 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1093: trailing whitespace. + #define AU1_AH2_AF2(a) AU1_AH2_AF2_x(AF2(a)) 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1610: trailing whitespace. +// - Can pull out byte values from two sources, and zero fill upper 8-bits of packed hi and lo. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1705: trailing whitespace. +// 1 = lowest value 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1706: trailing whitespace. +// 128 = exact zero center (zero based encoding 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1718: trailing whitespace. +// 128 : 0 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1719: trailing whitespace. +// ... 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:1940: trailing whitespace. + AH1 APCosH1(AH1 x){x=AFractH1(x*AH1_(0.5)+AH1_(0.75));x=x*AH1_(2.0)-AH1_(1.0);return APSinH1(x);} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2174: trailing whitespace. + AF1 AToGammaF1(AF1 c,AF1 rcpX){return pow(c,AF1_(rcpX));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2175: trailing whitespace. + AF2 AToGammaF2(AF2 c,AF1 rcpX){return pow(c,AF2_(rcpX));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2176: trailing whitespace. + AF3 AToGammaF3(AF3 c,AF1 rcpX){return pow(c,AF3_(rcpX));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2210: trailing whitespace. + AF1 AFromGammaF1(AF1 c,AF1 x){return pow(c,AF1_(x));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2211: trailing whitespace. + AF2 AFromGammaF2(AF2 c,AF1 x){return pow(c,AF2_(x));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2212: trailing whitespace. + AF3 AFromGammaF3(AF3 c,AF1 x){return pow(c,AF3_(x));} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2314: trailing whitespace. + // 00 01 08 09 10 11 18 19 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2317: trailing whitespace. + // 06 07 0e 0f 16 17 1e 1f 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2318: trailing whitespace. + // 20 21 28 29 30 31 38 39 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2321: trailing whitespace. + // 26 27 2e 2f 36 37 3e 3f 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:2378: trailing whitespace. +// 2047 .............................................. last normal value that still maps to integers 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:43: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:83: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:93: trailing whitespace. +// Best to apply EASU at the end of the frame after tonemapping 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:97: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:106: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:108: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:117: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:119: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:130: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:134: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:614: trailing whitespace. +// w 1 w for taps w m e 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:633: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:639: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:642: trailing whitespace. +// 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:694: trailing whitespace. + // b 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:769: trailing whitespace. + return;} 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:792: trailing whitespace. + // b ``` `git diff --check upstream/main...upstream/pr/10043 -- . ':(exclude)3rdparty/FidelityFX-FSR/**'` exited 0 and produced no output. `python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10043` ```text All conventions checks passed. ``` The current-main changed-path command printed: ```text core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp ``` The verification commit `847cc558c2051e0fd2003932855fed12f0fc97a0` lists PR head `51655586c53136a42524e17af0ef83771ee72def` as its parent. </details> ## Negative control | Assertion | Control and change | Result | |---|---|---| | The reported pNext VUID is not introduced by this PR | The author compared the same validation test set on `main` `1a217758a55c` and PR head `51655586c531`; the main device setup already chains `VkPhysicalDeviceMaintenance8FeaturesKHR`. | The same VUID/type is reported on both arms, with no other VUID category reported. The occurrence counts differ (1 vs 8); I accept the author’s stated per-device explanation, but did not independently reproduce it. | ## Findings ### Blocking None found. ### Non-blocking My prior request for current-main validation was broader than necessary. The PR’s declared and measured base is `1a217...`, and the exact-head author report exercises that integration. Current main has advanced, but the only shared production-file delta does not change the device-create pNext chain or the presentation/upscale code under review; the merge preview is clean. ## Sources - [Maintenance8 structure in the measured base](https://github.com/boykopovar/AnyPS5/blob/1a217758a55c09e817366fa4411daac854eeb3f9/3rdparty/Vulkan-Headers/include/vulkan/vulkan_core.h#L1319) - [Main device-create chain at the measured base](https://github.com/boykopovar/AnyPS5/blob/1a217758a55c09e817366fa4411daac854eeb3f9/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L1623) - [VulkanDevice current-main delta](https://github.com/boykopovar/AnyPS5/blob/5ecef095b61e7a406b279c97896f3a8a6fbd6353/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp) ## Not verified I did not locally build or run Vulkan tests. The GPU test and validation results are author-reported; product Linux CI is skipped. I did not independently confirm why the same VUID appears eight times on the PR arm and once on main.
jotitadev commented 2026-10-31 01:26:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-31T01:26:47Z.

Review: COMMENTED


Linux run of head d0bd686d8d. The tests pass, but with the current Khronos validation layer the new FSR path reports a real validation error on every run. The NVIDIA CI's older layer doesn't report it.

Setup: Ubuntu 26.04, GCC 15.2, Release. RTX 3070 (NVIDIA 595.99.02) and lavapipe (Mesa 26.0.3), one at a time via VK_DRIVER_FILES. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, ctest -j1. The head merged --no-ff onto current main de96e3efbd with no conflicts. Tests: agc_driver_presentation_pass, agc_driver_presentation_fsr and the three agc_performance_overlay*.

  • 5/5 pass in 3 of 3 runs on both devices. But with layer 1.4.341, agc_driver_presentation_fsr and agc_performance_overlay log VUID-vkCmdBeginRenderPass-initialLayout-00897 on every run, on both devices:

    vkCmdBeginRenderPass(): pRenderPassBegin->renderPass ... was created with pCreateInfo->pAttachments[0].finalLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, but VkFramebuffer ... pAttachments[0] (VkImageView ...) references an image not created with the required VkImageUsageFlags.
    VkImage ... was created with VK_IMAGE_USAGE_SAMPLED_BIT|VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, but VkImageViewUsageCreateInfo overwrote it with VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT.
    
  • With layer 1.3.275 (the NVIDIA CI's) and with no layer, the same tests are silent. That's why the CI report shows no new IDs.

Cause. The render passes that end in SHADER_READ_ONLY_OPTIMAL are the ones this PR adds for EASU's output and for RecordStage. A render pass whose attachment's initialLayout/finalLayout is SHADER_READ_ONLY_OPTIMAL needs a framebuffer view with SAMPLED (or INPUT_ATTACHMENT) usage. Both framebuffer views here narrow the usage through VkImageViewUsageCreateInfo to COLOR_ATTACHMENT (+ transfer bits):

  • PresentationUpscaler::transientFramebuffer;
  • PresentationPass::destinationFramebuffer.

So the view lacks the bit, even though the image has it.

Fix I checked, which adds SAMPLED to the view only when the pass ends in that layout:

--- a/core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp
+++ b/core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp
@@ VkFramebuffer PresentationPass::destinationFramebuffer(
         if (layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL) usage |= VK_IMAGE_USAGE_TRANSFER_DST_BIT;
+        if (layout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) usage |= VK_IMAGE_USAGE_SAMPLED_BIT;
--- a/core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp
+++ b/core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp
@@ VkFramebuffer PresentationUpscaler::transientFramebuffer(
-    const auto view = createView(image, format, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | (finalLayout == VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL ? VK_IMAGE_USAGE_TRANSFER_SRC_BIT : 0u));
+    const auto view = createView(image, format, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | (finalLayout == VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL ? VK_IMAGE_USAGE_TRANSFER_SRC_BIT : 0u) | (finalLayout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ? VK_IMAGE_USAGE_SAMPLED_BIT : 0u));

With both lines, the 5 tests pass 3 of 3 on each device with 1.4.341 and 0 VUID- lines, and 1 of 1 with 1.3.275. The upscaler line alone clears agc_performance_overlay but leaves the presentation_fsr messages from RecordStage, so both are needed.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux); lavapipe (Mesa 26.0.3, Linux).

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5720354784 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5720354784). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-31T01:26:47Z. **Review:** COMMENTED --- Linux run of head `d0bd686d8d`. The tests pass, but with the current Khronos validation layer the new FSR path reports a real validation error on every run. The NVIDIA CI's older layer doesn't report it. Setup: Ubuntu 26.04, GCC 15.2, Release. RTX 3070 (NVIDIA 595.99.02) and lavapipe (Mesa 26.0.3), one at a time via `VK_DRIVER_FILES`. `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, `ctest -j1`. The head merged `--no-ff` onto current `main` `de96e3efbd` with no conflicts. Tests: `agc_driver_presentation_pass`, `agc_driver_presentation_fsr` and the three `agc_performance_overlay*`. - 5/5 pass in 3 of 3 runs on both devices. But with layer 1.4.341, `agc_driver_presentation_fsr` and `agc_performance_overlay` log `VUID-vkCmdBeginRenderPass-initialLayout-00897` on every run, on both devices: ``` vkCmdBeginRenderPass(): pRenderPassBegin->renderPass ... was created with pCreateInfo->pAttachments[0].finalLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, but VkFramebuffer ... pAttachments[0] (VkImageView ...) references an image not created with the required VkImageUsageFlags. VkImage ... was created with VK_IMAGE_USAGE_SAMPLED_BIT|VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, but VkImageViewUsageCreateInfo overwrote it with VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT. ``` - With layer 1.3.275 (the NVIDIA CI's) and with no layer, the same tests are silent. That's why the CI report shows no new IDs. **Cause.** The render passes that end in `SHADER_READ_ONLY_OPTIMAL` are the ones this PR adds for EASU's output and for `RecordStage`. A render pass whose attachment's `initialLayout`/`finalLayout` is `SHADER_READ_ONLY_OPTIMAL` needs a framebuffer view with `SAMPLED` (or `INPUT_ATTACHMENT`) usage. Both framebuffer views here narrow the usage through `VkImageViewUsageCreateInfo` to `COLOR_ATTACHMENT` (+ transfer bits): - `PresentationUpscaler::transientFramebuffer`; - `PresentationPass::destinationFramebuffer`. So the view lacks the bit, even though the image has it. **Fix I checked**, which adds `SAMPLED` to the view only when the pass ends in that layout: ```diff --- a/core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp +++ b/core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp @@ VkFramebuffer PresentationPass::destinationFramebuffer( if (layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL) usage |= VK_IMAGE_USAGE_TRANSFER_DST_BIT; + if (layout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) usage |= VK_IMAGE_USAGE_SAMPLED_BIT; --- a/core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp +++ b/core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp @@ VkFramebuffer PresentationUpscaler::transientFramebuffer( - const auto view = createView(image, format, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | (finalLayout == VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL ? VK_IMAGE_USAGE_TRANSFER_SRC_BIT : 0u)); + const auto view = createView(image, format, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | (finalLayout == VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL ? VK_IMAGE_USAGE_TRANSFER_SRC_BIT : 0u) | (finalLayout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ? VK_IMAGE_USAGE_SAMPLED_BIT : 0u)); ``` With both lines, the 5 tests pass 3 of 3 on each device with 1.4.341 and 0 `VUID-` lines, and 1 of 1 with 1.3.275. The upscaler line alone clears `agc_performance_overlay` but leaves the `presentation_fsr` messages from `RecordStage`, so both are needed. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux); lavapipe (Mesa 26.0.3, Linux). Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-31 01:30:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T01:30:52Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

At head d0bd686d8d73c9bc45173d8b6ab9947ae07ba3cd, the new FSR render paths still create views without sampled usage even when their render pass ends in SHADER_READ_ONLY_OPTIMAL; the reported current-layer run logs VUID-vkCmdBeginRenderPass-initialLayout-00897 on every run.

What I ran

Reviewed head d0bd686d8d73c9bc45173d8b6ab9947ae07ba3cd against PR base 2b1ae87c69bff8ba1df7a708ed7d6b099d416a08. The live merge preview against target main 11df2a6ca804ed0ddc700a947f5f13e040f26a14 was clean. Environment: Linux 6.1.0-54-amd64 x86_64, Python 3.11.2, GCC 12.2; no compiler or build was run.

python3 /marc/AnyPS5/tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10043
gh api repos/boykopovar/AnyPS5/pulls/10043 --jq '{head:.head.sha,base:.base.sha,state:.state,updated_at:.updated_at}'
gh pr view 10043 -R boykopovar/AnyPS5 --json statusCheckRollup | jq '[.statusCheckRollup[]|{name,status,conclusion,detailsUrl}]'

Results

Check Result
Exact-head refresh Head and PR base stayed unchanged through precheck.
Current-main merge preview Clean against 11df2a6ca804ed0ddc700a947f5f13e040f26a14.
Conventions and PR template Passed.
git diff --check Failed on trailing whitespace in the two byte-identical vendored FidelityFX headers; these files are documented as copied unmodified from AMD's pinned source.
ABI audit and test-quality helper Not run: the helper scripts are absent from the isolated PR checkout; no exports changed.
Hosted checks Windows, conventions, eligibility, portability, labels and report passed; Linux and specialized product jobs were skipped.
Vulkan validation Jotitadev reports the five focused tests passed 3/3 on RTX 3070 and lavapipe, but both devices logged the VUID on every run with validation layer 1.4.341. Their proposed two-line view-usage fix produced zero VUIDs; I did not independently run these GPU tests.
Unedited output excerpts from local checks
Conclusion: checks failed
All conventions checks passed.
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-10043-d0bd686d8d73/head-d0bd686d8d73-7d7a2c1c/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-10043-d0bd686d8d73/head-d0bd686d8d73-7d7a2c1c/tools/pr_test_quality.py': [Errno 2] No such file or directory
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace.
+//  - Replace transcendentals with manual versions. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace.
+// 

Findings

Blocking

PresentationUpscaler::transientFramebuffer narrows the image view to color-attachment usage (plus transfer-source usage), even when finalLayout is VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL. PresentationPass::destinationFramebuffer has the same omission for its RecordStage path. This conflicts with the render-pass final layout and triggers the reported validation error. Please include VK_IMAGE_USAGE_SAMPLED_BIT in each view's usage when the final layout is shader-read-only, or make an equivalent correction.

const auto view = createView(image, format, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | (finalLayout == VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL ? VK_IMAGE_USAGE_TRANSFER_SRC_BIT : 0u) | (finalLayout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ? VK_IMAGE_USAGE_SAMPLED_BIT : 0u));
if (layout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) usage |= VK_IMAGE_USAGE_SAMPLED_BIT;

Non-blocking

The whitespace warnings are confined to the pinned, byte-identical vendored headers. The precheck's ABI and test-quality helpers were unavailable in its isolated checkout.

Sources

Not verified

I did not build locally or independently run C++ tests, Vulkan validation, GPU tests, Windows/macOS runtime, or console behavior. The reported GPU tests and proposed fix are from Jotitadev's comment, not my own run.

To get this to a good state

Add sampled usage to both restricted image views for the shader-read-only final layout, then rerun the focused presentation/FSR/performance-overlay tests with the current validation layer and report the exact head and VUID results. I will re-run the same no-build checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5720368783 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5720368783). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T01:30:52Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested At head `d0bd686d8d73c9bc45173d8b6ab9947ae07ba3cd`, the new FSR render paths still create views without sampled usage even when their render pass ends in `SHADER_READ_ONLY_OPTIMAL`; the reported current-layer run logs `VUID-vkCmdBeginRenderPass-initialLayout-00897` on every run. ## What I ran Reviewed head `d0bd686d8d73c9bc45173d8b6ab9947ae07ba3cd` against PR base `2b1ae87c69bff8ba1df7a708ed7d6b099d416a08`. The live merge preview against target `main` `11df2a6ca804ed0ddc700a947f5f13e040f26a14` was clean. Environment: Linux 6.1.0-54-amd64 x86_64, Python 3.11.2, GCC 12.2; no compiler or build was run. ```sh python3 /marc/AnyPS5/tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10043 gh api repos/boykopovar/AnyPS5/pulls/10043 --jq '{head:.head.sha,base:.base.sha,state:.state,updated_at:.updated_at}' gh pr view 10043 -R boykopovar/AnyPS5 --json statusCheckRollup | jq '[.statusCheckRollup[]|{name,status,conclusion,detailsUrl}]' ``` ## Results | Check | Result | |---|---| | Exact-head refresh | Head and PR base stayed unchanged through precheck. | | Current-main merge preview | Clean against `11df2a6ca804ed0ddc700a947f5f13e040f26a14`. | | Conventions and PR template | Passed. | | `git diff --check` | Failed on trailing whitespace in the two byte-identical vendored FidelityFX headers; these files are documented as copied unmodified from AMD's pinned source. | | ABI audit and test-quality helper | Not run: the helper scripts are absent from the isolated PR checkout; no exports changed. | | Hosted checks | Windows, conventions, eligibility, portability, labels and report passed; Linux and specialized product jobs were skipped. | | Vulkan validation | Jotitadev reports the five focused tests passed 3/3 on RTX 3070 and lavapipe, but both devices logged the VUID on every run with validation layer 1.4.341. Their proposed two-line view-usage fix produced zero VUIDs; I did not independently run these GPU tests. | <details> <summary>Unedited output excerpts from local checks</summary> ```text Conclusion: checks failed ``` ```text All conventions checks passed. ``` ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-10043-d0bd686d8d73/head-d0bd686d8d73-7d7a2c1c/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-10043-d0bd686d8d73/head-d0bd686d8d73-7d7a2c1c/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` ```text 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace. +// - Replace transcendentals with manual versions. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace. +// ``` </details> ## Findings ### Blocking `PresentationUpscaler::transientFramebuffer` narrows the image view to color-attachment usage (plus transfer-source usage), even when `finalLayout` is `VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL`. `PresentationPass::destinationFramebuffer` has the same omission for its `RecordStage` path. This conflicts with the render-pass final layout and triggers the reported validation error. Please include `VK_IMAGE_USAGE_SAMPLED_BIT` in each view's usage when the final layout is shader-read-only, or make an equivalent correction. ```suggestion const auto view = createView(image, format, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | (finalLayout == VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL ? VK_IMAGE_USAGE_TRANSFER_SRC_BIT : 0u) | (finalLayout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ? VK_IMAGE_USAGE_SAMPLED_BIT : 0u)); ``` ```suggestion if (layout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) usage |= VK_IMAGE_USAGE_SAMPLED_BIT; ``` ### Non-blocking The whitespace warnings are confined to the pinned, byte-identical vendored headers. The precheck's ABI and test-quality helpers were unavailable in its isolated checkout. ## Sources - [Upscaler view usage at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/d0bd686d8d73c9bc45173d8b6ab9947ae07ba3cd/core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp#L313-L319) - [Presentation-stage view usage at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/d0bd686d8d73c9bc45173d8b6ab9947ae07ba3cd/core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp#L372-L388) - [Call that uses the shader-read-only final layout](https://github.com/boykopovar/AnyPS5/blob/d0bd686d8d73c9bc45173d8b6ab9947ae07ba3cd/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L3838-L3848) - [Validation report and reproduction details](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5720354784) ## Not verified I did not build locally or independently run C++ tests, Vulkan validation, GPU tests, Windows/macOS runtime, or console behavior. The reported GPU tests and proposed fix are from Jotitadev's comment, not my own run. ## To get this to a good state Add sampled usage to both restricted image views for the shader-read-only final layout, then rerun the focused presentation/FSR/performance-overlay tests with the current validation layer and report the exact head and VUID results. I will re-run the same no-build checks on the updated head.
jotitadev commented 2026-10-31 04:10:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-31T04:10:25Z.

Review: COMMENTED


Confirmed on NVIDIA as well. At bef132589c, merged --no-ff onto main 539c3425f8, I ran agc_driver_presentation_pass, agc_driver_presentation_fsr and the four agc_performance_overlay* tests with layer 1.4.341, 3 runs on each device: 6/6 on an RTX 3070 (NVIDIA 595.99.02, Linux) and on lavapipe (Mesa 26.0.3), and no 00897 or other validation message. VK_LOADER_DEBUG=layer shows the layer inserted.

One thing outside the fix: agc_driver_present_upscale skips on the 3070 (no Vulkan loader with VK_EXT_headless_surface). On lavapipe 26.0.3 it segfaults right after Surface capabilities drawable=1084x610 .... That happens in 3 of 3 runs with the layer, in a run without it, and in a run with bef132589c reverted. I haven't worked out whether the cause is Mesa 26 or the test's present path; your lavapipe run on 25.2.8 passes it.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5721146225 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5721146225). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-31T04:10:25Z. **Review:** COMMENTED --- Confirmed on NVIDIA as well. At `bef132589c`, merged `--no-ff` onto `main` `539c3425f8`, I ran `agc_driver_presentation_pass`, `agc_driver_presentation_fsr` and the four `agc_performance_overlay*` tests with layer 1.4.341, 3 runs on each device: 6/6 on an RTX 3070 (NVIDIA 595.99.02, Linux) and on lavapipe (Mesa 26.0.3), and no `00897` or other validation message. `VK_LOADER_DEBUG=layer` shows the layer inserted. One thing outside the fix: `agc_driver_present_upscale` skips on the 3070 (`no Vulkan loader with VK_EXT_headless_surface`). On lavapipe 26.0.3 it segfaults right after `Surface capabilities drawable=1084x610 ...`. That happens in 3 of 3 runs with the layer, in a run without it, and in a run with bef132589c reverted. I haven't worked out whether the cause is Mesa 26 or the test's present path; your lavapipe run on 25.2.8 passes it. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-31 23:57:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T23:57:46Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The sampled-view usage fix is present, but the required validation-layer evidence is from the previous head; the current head still needs a focused run with the layer version that reported the error.

What I ran

  • Reviewed PR head affd3b1699a0037511b3781626906969dd06add2, based on 0836dfdf4fecb1e0326100c490476e15d3a74da5.
  • The merge preview onto current main 8a4fc62318a4b73b6895bf20a024c625efeb7c3b is clean.
  • Environment: Debian 12, Linux 6.1 x86_64, Python 3.11.2, GCC 12.2.0. I did not build or run C++/GPU tests locally.
  • Commands:
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10043
python3 tools/pr_stack_check.py 10043 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-10043-latest
git diff --check 0836dfdf4fecb1e0326100c490476e15d3a74da5...affd3b1699a0037511b3781626906969dd06add2
git diff --exit-code bef132589ce213bbf5ffa6c1472f415d6ecd4557 affd3b1699a0037511b3781626906969dd06add2 -- core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp core/libs/prx/libSceAgcDriver/tests/PresentationPass.cpp core/libs/prx/libSceAgcDriver/tests/execution/PresentUpscale.cpp

Results

Check Result
Diff check Failed on trailing whitespace in the two imported FSR headers.
Conventions and PR template Passed.
Current-main merge preview Clean against 8a4fc62318a4b73b6895bf20a024c625efeb7c3b.
Fix/test files since validation head bef132589ce213bbf5ffa6c1472f415d6ecd4557 Unchanged at affd3b1699a0037511b3781626906969dd06add2.
Hosted CI Windows passed; Linux and specialized jobs were skipped. The NVIDIA report for the current head used validation layer 1.3.275; it lists agc_driver_present_upscale as skipped because the runner lacks VK_EXT_headless_surface.
Build and GPU tests run locally None.
Unedited local check output
All conventions checks passed.

3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace.
+//  - Replace transcendentals with manual versions. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:313: trailing whitespace.
+ // These follow the convention that A integer types don't have signage, until they are operated on. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace.
+// 

Findings

Blocking

  • The reported VUID-vkCmdBeginRenderPass-initialLayout-00897 is fixed in source by adding sampled usage to views used with VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL. The supporting Khronos 1.4.341 run is on bef132589ce213bbf5ffa6c1472f415d6ecd4557, while the current head is affd3b1699a0037511b3781626906969dd06add2. The current-head NVIDIA run uses layer 1.3.275, which the author says does not report this VUID, and it skips agc_driver_present_upscale. Please provide the same focused validation on the current head and current main, with the layer inserted and no new VUIDs. The repository requires paired focused AGC validation on main and the change.

Non-blocking

  • git diff --check reports trailing whitespace in the imported FSR headers. The PR says they are copied byte-for-byte from upstream; stripping whitespace and updating the recorded hashes would make the patch check clean if preserving the exact upstream bytes is not required.

Sources

Not verified

  • No local build, C++ tests, or GPU tests were run. The 1.4.341 validation run was reported by the author on the previous head, not independently reproduced on affd3b1699a0037511b3781626906969dd06add2.
  • Linux and console behavior were not verified in this session.

To get this to a good state

Run the relevant presentation, FSR, overlay, and headless-upscale tests on current main and affd3b1699a0037511b3781626906969dd06add2 on the same machine/GPU with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, and ANYPS5_REQUIRE_VULKAN=1, using a validation layer version that reports 00897. Include the exact commits, GPU/driver/OS, layer insertion check, commands, and logs; I will re-run the same review checks on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5725524746 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5725524746). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T23:57:46Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The sampled-view usage fix is present, but the required validation-layer evidence is from the previous head; the current head still needs a focused run with the layer version that reported the error. ## What I ran - Reviewed PR head `affd3b1699a0037511b3781626906969dd06add2`, based on `0836dfdf4fecb1e0326100c490476e15d3a74da5`. - The merge preview onto current `main` `8a4fc62318a4b73b6895bf20a024c625efeb7c3b` is clean. - Environment: Debian 12, Linux 6.1 x86_64, Python 3.11.2, GCC 12.2.0. I did not build or run C++/GPU tests locally. - Commands: ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10043 python3 tools/pr_stack_check.py 10043 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-10043-latest git diff --check 0836dfdf4fecb1e0326100c490476e15d3a74da5...affd3b1699a0037511b3781626906969dd06add2 git diff --exit-code bef132589ce213bbf5ffa6c1472f415d6ecd4557 affd3b1699a0037511b3781626906969dd06add2 -- core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp core/libs/prx/libSceAgcDriver/tests/PresentationPass.cpp core/libs/prx/libSceAgcDriver/tests/execution/PresentUpscale.cpp ``` ## Results | Check | Result | |---|---| | Diff check | Failed on trailing whitespace in the two imported FSR headers. | | Conventions and PR template | Passed. | | Current-main merge preview | Clean against `8a4fc62318a4b73b6895bf20a024c625efeb7c3b`. | | Fix/test files since validation head `bef132589ce213bbf5ffa6c1472f415d6ecd4557` | Unchanged at `affd3b1699a0037511b3781626906969dd06add2`. | | Hosted CI | Windows passed; Linux and specialized jobs were skipped. The NVIDIA report for the current head used validation layer 1.3.275; it lists `agc_driver_present_upscale` as skipped because the runner lacks `VK_EXT_headless_surface`. | | Build and GPU tests run locally | None. | <details><summary>Unedited local check output</summary> ```text All conventions checks passed. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace. +// - Replace transcendentals with manual versions. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:313: trailing whitespace. + // These follow the convention that A integer types don't have signage, until they are operated on. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace. +// ``` </details> ## Findings ### Blocking - The reported `VUID-vkCmdBeginRenderPass-initialLayout-00897` is fixed in source by adding sampled usage to views used with `VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL`. The supporting Khronos 1.4.341 run is on `bef132589ce213bbf5ffa6c1472f415d6ecd4557`, while the current head is `affd3b1699a0037511b3781626906969dd06add2`. The current-head NVIDIA run uses layer 1.3.275, which the author says does not report this VUID, and it skips `agc_driver_present_upscale`. Please provide the same focused validation on the current head and current `main`, with the layer inserted and no new VUIDs. The repository requires paired focused AGC validation on `main` and the change. ### Non-blocking - `git diff --check` reports trailing whitespace in the imported FSR headers. The PR says they are copied byte-for-byte from upstream; stripping whitespace and updating the recorded hashes would make the patch check clean if preserving the exact upstream bytes is not required. ## Sources - [Framebuffer view usage in the reviewed head](https://github.com/boykopovar/AnyPS5/blob/affd3b1699a0037511b3781626906969dd06add2/core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp#L372-L379), [upscaler view usage](https://github.com/boykopovar/AnyPS5/blob/affd3b1699a0037511b3781626906969dd06add2/core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp#L313-L315). - [AGC paired-validation requirement](https://github.com/boykopovar/AnyPS5/blob/0836dfdf4fecb1e0326100c490476e15d3a74da5/CONTRIBUTING.md#L73). - [Author's 1.4.341 report on `bef132589c`](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6538089840); [NVIDIA report on `affd3b1699a0`](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6550563831). ## Not verified - No local build, C++ tests, or GPU tests were run. The 1.4.341 validation run was reported by the author on the previous head, not independently reproduced on `affd3b1699a0037511b3781626906969dd06add2`. - Linux and console behavior were not verified in this session. ## To get this to a good state Run the relevant presentation, FSR, overlay, and headless-upscale tests on current `main` and `affd3b1699a0037511b3781626906969dd06add2` on the same machine/GPU with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, and `ANYPS5_REQUIRE_VULKAN=1`, using a validation layer version that reports `00897`. Include the exact commits, GPU/driver/OS, layer insertion check, commands, and logs; I will re-run the same review checks on the new head.
MarcZX10 commented 2026-11-01 02:41:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T02:41:14Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The new lavapipe comparison is useful, but it uses a main revision older than today’s base and misses a later change in VulkanDevice.cpp, which this PR also modifies.

What I ran

Reviewed PR head affd3b1699a0037511b3781626906969dd06add2 against PR base 0836dfdf4fecb1e0326100c490476e15d3a74da5; the merge preview against current main cf79276fee2f042feb6a7c71d0d6a27e9cfe2592 is clean. Environment: Debian Linux x86-64, Python 3.11.2; no local build or GPU tests.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10043
git diff --name-only cbcb37b3140db682277a9c51d950b90ce75de784 cf79276fee2f042feb6a7c71d0d6a27e9cfe2592 -- core/libs/prx/libSceAgcDriver/CMakeLists.txt core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp docs/dev/ENVIRONMENT.md docs/user/USAGE.md

Results

Check Result
Conventions and current-main merge preview Passed; preview is clean.
Author’s paired validation report On lavapipe, the author reports zero VUIDs on both cbcb37b314 and this head, and 20 00897 messages in a red control with the usage fix reverted. This is useful evidence, but it does not use the current base.
Current-main changes since the reported baseline Four paths changed, including VulkanDevice.cpp and the AGC CMake file; both are changed by this PR.
git diff --check Reports trailing whitespace in the imported FidelityFX headers; the PR records that these are unmodified upstream files. This is non-blocking.
Hosted checks Windows passed; Linux and specialized product jobs were skipped.
Unedited paths changed on main since the reported baseline
core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md

Negative control

Assertion Change to code under test Did the test fail?
The sampled-usage fix removes the reported 00897 validation messages. Author reports reverting that fix on this PR head. Yes; the author reports 20 messages in the red control. I did not run it.

Findings

Blocking

The baseline is not current. The report compares cbcb37b3140db682277a9c51d950b90ce75de784 with this PR head. Current main is cf79276fee2f042feb6a7c71d0d6a27e9cfe2592; since the reported baseline, main changed VulkanDevice.cpp, which this PR also changes. The report therefore does not establish the result with the current integration. Please rerun the paired validation on exact current main and this head, with the same layer and environment, and update the report with both SHAs and layer-insertion evidence.

Non-blocking

The whitespace findings are confined to the imported FidelityFX headers whose upstream bytes and hashes are recorded in the PR.

Sources

Not verified

I did not run a local build, GPU tests, or performance capture. The paired validation and negative control are author-reported and use lavapipe rather than a physical GPU.

To get this to a good state

Repeat the relevant paired validation against current main and this head on the same machine, using the validation layer that reports 00897, and include the exact SHAs and layer insertion evidence. I’ll recheck the same paths and report when the new evidence is available.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5726121101 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5726121101). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T02:41:14Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The new lavapipe comparison is useful, but it uses a `main` revision older than today’s base and misses a later change in `VulkanDevice.cpp`, which this PR also modifies. ## What I ran Reviewed PR head `affd3b1699a0037511b3781626906969dd06add2` against PR base `0836dfdf4fecb1e0326100c490476e15d3a74da5`; the merge preview against current `main` `cf79276fee2f042feb6a7c71d0d6a27e9cfe2592` is clean. Environment: Debian Linux x86-64, Python 3.11.2; no local build or GPU tests. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10043 git diff --name-only cbcb37b3140db682277a9c51d950b90ce75de784 cf79276fee2f042feb6a7c71d0d6a27e9cfe2592 -- core/libs/prx/libSceAgcDriver/CMakeLists.txt core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp docs/dev/ENVIRONMENT.md docs/user/USAGE.md ``` ## Results | Check | Result | |---|---| | Conventions and current-main merge preview | Passed; preview is clean. | | Author’s paired validation report | On lavapipe, the author reports zero VUIDs on both `cbcb37b314` and this head, and 20 `00897` messages in a red control with the usage fix reverted. This is useful evidence, but it does not use the current base. | | Current-main changes since the reported baseline | Four paths changed, including `VulkanDevice.cpp` and the AGC CMake file; both are changed by this PR. | | `git diff --check` | Reports trailing whitespace in the imported FidelityFX headers; the PR records that these are unmodified upstream files. This is non-blocking. | | Hosted checks | Windows passed; Linux and specialized product jobs were skipped. | <details> <summary>Unedited paths changed on main since the reported baseline</summary> ```text core/libs/prx/libSceAgcDriver/CMakeLists.txt core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp docs/dev/ENVIRONMENT.md docs/user/USAGE.md ``` </details> ## Negative control | Assertion | Change to code under test | Did the test fail? | |---|---|---| | The sampled-usage fix removes the reported `00897` validation messages. | Author reports reverting that fix on this PR head. | Yes; the author reports 20 messages in the red control. I did not run it. | ## Findings ### Blocking **The baseline is not current.** The report compares `cbcb37b3140db682277a9c51d950b90ce75de784` with this PR head. Current `main` is `cf79276fee2f042feb6a7c71d0d6a27e9cfe2592`; since the reported baseline, `main` changed `VulkanDevice.cpp`, which this PR also changes. The report therefore does not establish the result with the current integration. Please rerun the paired validation on exact current `main` and this head, with the same layer and environment, and update the report with both SHAs and layer-insertion evidence. ### Non-blocking The whitespace findings are confined to the imported FidelityFX headers whose upstream bytes and hashes are recorded in the PR. ## Sources - [Author’s paired validation report and red control](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6552110689) - [Current `main` Vulkan-device change](https://github.com/boykopovar/AnyPS5/blob/cf79276fee2f042feb6a7c71d0d6a27e9cfe2592/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp) - [PR’s sampled-view usage fix](https://github.com/boykopovar/AnyPS5/blob/affd3b1699a0037511b3781626906969dd06add2/core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp) ## Not verified I did not run a local build, GPU tests, or performance capture. The paired validation and negative control are author-reported and use lavapipe rather than a physical GPU. ## To get this to a good state Repeat the relevant paired validation against current `main` and this head on the same machine, using the validation layer that reports `00897`, and include the exact SHAs and layer insertion evidence. I’ll recheck the same paths and report when the new evidence is available.
MarcZX10 commented 2026-11-01 03:29:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T03:29:03Z.

Review: APPROVED


Re-checked — new head, looks good

The requested paired Vulkan validation is now reported for PR head affd3b1699a0037511b3781626906969dd06add2, and the author’s negative control reproduces the original validation error when the fix is reverted.

What I ran

  • PR head affd3b1699a0037511b3781626906969dd06add2; PR base 0836dfdf4fecb1e0326100c490476e15d3a74da5.
  • Environment: Debian 12, Linux x86-64, Python 3.11.2. No compiler was invoked; I did not build or run C++/GPU tests locally.
  • Commands:
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10043
python3 tools/pr_stack_check.py 10043 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-10043-final
gh api repos/boykopovar/AnyPS5/compare/cf79276fee2f042feb6a7c71d0d6a27e9cfe2592...b6bd6e7bf7b97ad00b3315fd26c1d4e76497f452 --jq '[.files[].filename | select(test("Presentation|libSceAgcDriver/CMakeLists|PerformanceOverlay"))]'

The author reports a clean merge of the PR head onto main cf79276fee2f042feb6a7c71d0d6a27e9cfe2592 as merge commit caa72b2703; this is author-provided, not a local merge/build. main has since advanced to b6bd6e7bf7b97ad00b3315fd26c1d4e76497f452. The intervening changes do not touch the FSR presentation implementation, its test registration, or the performance overlay paths.

Results

Check Result
Repository conventions and PR template Passed locally on the exact PR head/base.
git diff --check Reports trailing whitespace in the two vendored FidelityFX headers, which the PR identifies as byte-identical upstream files.
ABI and test-quality helpers Could not run in the isolated precheck worktree because those workspace-local scripts are absent there; no exports are changed.
Current-base merge preview The stack check reported a clean preview, but main advanced while it ran, so the tool marked the report stale. I do not count that preview as verified against the final tip.
Hosted CI Windows and conventions passed. Linux and specialized product jobs were skipped; a labels job was queued at the last snapshot.
Paired Vulkan validation The author reports zero validation messages on main cf79276fee2f042feb6a7c71d0d6a27e9cfe2592, the PR head, and their clean merge, using the same lavapipe host and validation layer. This was not run by me.
Unedited output excerpts
All conventions checks passed.
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace.
+//  - Replace transcendentals with manual versions. 
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace.
+// 
Target branch tip: `30989cb45bd8435022d2a39672e3308b60bdd47e`
All heads unchanged: **False**
- PR #10043: **clean** against current base; head `affd3b1699a0037511b3781626906969dd06add2`
- PR #10043: Base advanced during checks (30989cb45bd8435022d2a39672e3308b60bdd47e → 97ca8c87517817ad84b441629d074eea9cf9bfd8); discard merge results.

Negative control

Assertion Change to code under test Did the test fail?
The sampled-image usage fix removes VUID-vkCmdBeginRenderPass-initialLayout-00897. Author reports reverting only that fix on the clean merge. Yes: 20 00897 messages; with the fix restored, zero. Author-reported, not independently run.

Sources

Not verified

I did not build locally or independently run C++ tests, validation-layer tests, GPU tests, Windows runtime, or console behavior. Linux and specialized product CI jobs were skipped. The local current-base merge preview raced with main advancement, so I cannot report a verified merge preview against the final observed tip.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5726243698 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10043#pullrequestreview-5726243698). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T03:29:03Z. **Review:** APPROVED --- # Re-checked — new head, looks good The requested paired Vulkan validation is now reported for PR head `affd3b1699a0037511b3781626906969dd06add2`, and the author’s negative control reproduces the original validation error when the fix is reverted. ## What I ran - PR head `affd3b1699a0037511b3781626906969dd06add2`; PR base `0836dfdf4fecb1e0326100c490476e15d3a74da5`. - Environment: Debian 12, Linux x86-64, Python 3.11.2. No compiler was invoked; I did not build or run C++/GPU tests locally. - Commands: ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10043 python3 tools/pr_stack_check.py 10043 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-10043-final gh api repos/boykopovar/AnyPS5/compare/cf79276fee2f042feb6a7c71d0d6a27e9cfe2592...b6bd6e7bf7b97ad00b3315fd26c1d4e76497f452 --jq '[.files[].filename | select(test("Presentation|libSceAgcDriver/CMakeLists|PerformanceOverlay"))]' ``` The author reports a clean merge of the PR head onto `main` `cf79276fee2f042feb6a7c71d0d6a27e9cfe2592` as merge commit `caa72b2703`; this is author-provided, not a local merge/build. `main` has since advanced to `b6bd6e7bf7b97ad00b3315fd26c1d4e76497f452`. The intervening changes do not touch the FSR presentation implementation, its test registration, or the performance overlay paths. ## Results | Check | Result | |---|---| | Repository conventions and PR template | Passed locally on the exact PR head/base. | | `git diff --check` | Reports trailing whitespace in the two vendored FidelityFX headers, which the PR identifies as byte-identical upstream files. | | ABI and test-quality helpers | Could not run in the isolated precheck worktree because those workspace-local scripts are absent there; no exports are changed. | | Current-base merge preview | The stack check reported a clean preview, but `main` advanced while it ran, so the tool marked the report stale. I do not count that preview as verified against the final tip. | | Hosted CI | Windows and conventions passed. Linux and specialized product jobs were skipped; a labels job was queued at the last snapshot. | | Paired Vulkan validation | The author reports zero validation messages on `main` `cf79276fee2f042feb6a7c71d0d6a27e9cfe2592`, the PR head, and their clean merge, using the same lavapipe host and validation layer. This was not run by me. | <details> <summary>Unedited output excerpts</summary> ```text All conventions checks passed. ``` ```text 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.h:252: trailing whitespace. +// - Replace transcendentals with manual versions. 3rdparty/FidelityFX-FSR/ffx-fsr/ffx_fsr1.h:38: trailing whitespace. +// ``` ```text Target branch tip: `30989cb45bd8435022d2a39672e3308b60bdd47e` All heads unchanged: **False** - PR #10043: **clean** against current base; head `affd3b1699a0037511b3781626906969dd06add2` - PR #10043: Base advanced during checks (30989cb45bd8435022d2a39672e3308b60bdd47e → 97ca8c87517817ad84b441629d074eea9cf9bfd8); discard merge results. ``` </details> ## Negative control | Assertion | Change to code under test | Did the test fail? | |---|---|---| | The sampled-image usage fix removes `VUID-vkCmdBeginRenderPass-initialLayout-00897`. | Author reports reverting only that fix on the clean merge. | Yes: 20 `00897` messages; with the fix restored, zero. Author-reported, not independently run. | ## Sources - [Author’s exact-main paired validation and negative control](https://github.com/boykopovar/AnyPS5/pull/10043#issuecomment-6552785591) - [Sampled-view usage fix at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/affd3b1699a0037511b3781626906969dd06add2/core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp) - [Upscaler view usage at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/affd3b1699a0037511b3781626906969dd06add2/core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp) ## Not verified I did not build locally or independently run C++ tests, validation-layer tests, GPU tests, Windows runtime, or console behavior. Linux and specialized product CI jobs were skipped. The local current-base merge preview raced with `main` advancement, so I cannot report a verified merge preview against the final observed tip.
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!10043
No description provided.