feat(agc): scale the presentation with FSR 1 under ANYPS5_UPSCALE=fsr #10043
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10043"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by 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=fsrturns it on. The default stays today's bilinear scaler.No title needs this to run, and nothing changes unless it's set. With
ANYPS5_UPSCALEunset, 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=1920in itsapp0/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: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=1920in the dump'sapp0/Media/boot.config(it ships with 3840), run it in a window larger than 1920x1080, and compareANYPS5_UPSCALEunset withANYPS5_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:
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:
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_UPSCALEandANYPS5_FSR_SHARPNESS(0.0 sharpest to 2.0 weakest, default 0.2) are read once when the window's device is created, likeANYPS5_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;FsrEasu.frag) scales it to the fitted size;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 fromTRANSFER_DST_OPTIMALas 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 inCOLOR_ATTACHMENT_OPTIMALwhenever 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 inPRESENT_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.QueuePresentwaits for the presentation's rendering inside it.[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.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
getenvcalls at device creation and one bool per present.Things to know:
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.0is RCAS's weakest setting, not off. Withfsrselected, RCAS always runs.ANYPS5_FSR_SHARPNESSstops the start even withoutfsr, like any invalid setting.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/holdsffx-fsr/ffx_a.h,ffx-fsr/ffx_fsr1.handlicense.txt(MIT), copied unmodified from tag v1.0.2 (a21ffb8f6c). Its README gives the source, the commit and each file's SHA-256..gitmodulescan't stop recursion into a submodule's own submodules.Commits:
build(agc): the vendored FSR 1.0.2 headers and license, with the README.feat(agc):PresentationUpscaler,UpscaleMode, the EASU and RCAS shaders, and the hooks intoPresentationPass,PresentationScalerandVulkanDevice::present.PresentationPass::ExitDependency, shared with the upscaler's passes).Graphics::CreateShaderModule, asmain's presentation pass and overlay create theirs.docs/dev/ENVIRONMENT.mdgets rows forANYPS5_UPSCALEandANYPS5_FSR_SHARPNESS.test(agc):agc_driver_presentation_fsr, with the exit dependency's three layouts;agc_driver_present_upscale, which presents throughVulkanDeviceon a headless surface in all four combinations of FSR and the overlay and counts the presentations that ran FSR; andagc_performance_overlay's over-FSR case.test(agc): the--fsr-costmode ofagc_driver_presentation_pass_tests(30febcf78), not registered with ctest.Tested
Planet of Lana (PPSA19450) with
platform-ps5-video-out-width=1920inapp0/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_UPSCALEunset orfsr). Clocks weren't held; nvidia-smi logged them every second.guest 1920x1080 presented at 2372x1334, and withfsrthe 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 readsRES: 1920X1080 / 2560X1334.agc_driver_presentation_fsr(Vulkan; it runsagc_driver_presentation_pass_tests --fsr) covers:ANYPS5_UPSCALEunset the output is bit-identical, and the stage equals today's fitted image when FSR doesn't upscale;agc_driver_present_upscalepresents throughVulkanDeviceon aVK_EXT_headless_surfaceswapchain (1084x610) and counts the presentations that ran FSR. Withfsr, 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
main7e69be6793built the same way:main.mainhas the same status here. The two new tests,agc_driver_presentation_fsrandagc_driver_present_upscale, pass.guest_net_buffer_validation, which fails onmainthere too.check_test_registration.pyfinds nothing unregistered on either.check_skips.pyflags onlyguest_sce_neton both, as on every branch on that machine.agc_driver_presentation_pass,agc_driver_presentation_fsr,agc_driver_present_upscale,agc_performance_overlayandagc_performance_overlay_statisticspass 10 of 10, headless and under Xvfb.Validation with
VK_LAYER_KHRONOS_validationand synchronization validation. The layer reports a planted write-after-write hazard on that machine, so validation was on.video_out_hdr_present's 259x137 buffer is presented at 1152x609.main, plus the 18 on X11.main, then this PR unset, withfsr, withfsrat sharpness 2.0, and withfsrand the performance overlay on (ANYPS5_OVERLAY=1).VUID-VkDeviceCreateInfo-pNext-pNext, once per device, from a device struct that layer version doesn't know. Every testmainhas gets the same count here. The 6 extra come fromagc_driver_present_upscale, which opens a device per case.agc_driver_presentation_fsrhad 10.fsr, FSR's start line appears 13 times in each configuration, fromvideo_out_hdr_present, sixguest_video_out_*tests,agc_driver_present_upscaleand 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.ANYPS5_UPSCALEunset,mainand this PR differ in 0 of 2,073,600 pixels, in three capture pairs.fsr, 679,356 pixels differ, all in the presented image: the frame is sharper at the band edges. Adding the overlay tofsrchanges 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Validation,
mainagainst this PR, on GitHub's Linux runner (run):VK_LAYER_KHRONOS_validationwithANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1on llvmpipe, for the same tests plusagc_driver_image_table_vouched_lookups. The loader inserted the layer 5 times onmainand 12 with this PR. Both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds noVUID-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) andagc_performance_overlay(2.5 s) pass.agc_driver_present_upscaleskips: NVIDIA's Windows driver has noVK_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 ofmain5b85225ef3(run), which brings #7705, #8552 and milescoviello's #10807. #10807 adds a test of the presentation source in host memory totests/PresentationPass.cppwhere this PR adds its FSR tests; the merge keeps both, and nothing else conflicted. That test usesPresentationScaler'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 failsguest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_web, which this PR doesn't touch;main88f99678bffails the same two in this verify's Windows job (run), andmain's own Windows CI passes them. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.711dd2ac58:59245dfc48, a merge ofmain0cd07dc4ab, and a test commit (sweep run, validation run).mainnow 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 inPresentationPass.hpp,PresentationPass.cpp,VulkanDevice.cppanddocs/dev/ENVIRONMENT.md.PresentationPass: this PR'srecordInto, which FSR's last pass uses, now draws throughmain'starget,destinationFramebufferand scissoreddraw. The pass keeps bothmain'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'sUpscaledPresentsandmain'sPresentCountsboth count.ENVIRONMENT.mdkeeps both rows.agc_driver_present_upscale: a 960x540 display buffer with a 960x540 overlay plane, presented into its 1084x610 headless window withANYPS5_UPSCALE=fsr, must be upscaled with the plane composited.^agc,^video_outand^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_progressandagc_submit_progress_no_timelineneed a Vulkan device and fail creating it on GitHub's device-less runner, asmain'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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon llvmpipe,mainagainst this head, for the present, upscale, FSR, presentation-pass, overlay and VideoOut tests: the one message isVUID-VkDeviceCreateInfo-pNext-pNext, fromagc_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 otherVUID-message.platform-ps5-video-out-width=1920boot.config change, maximized on the 2560x1440 panel. Environment:ANYPS5_UPSCALE=fsr, the performance overlay on (ANYPS5_OVERLAY=1),APS5_STORAGE_CACHE_ENTRIES=1024andAPS5_THREAD_PRIORITY=high.APS5_STORAGE_CACHE_ENTRIESis the variable #14220 adds: neither this PR normainreads it, so it had no effect in this run.guest 1920x1080 presented at 2372x1334, and the overlay readsRES: 1920X1080 / 2560X1334.439f6720f2, a merge ofmainedf6804cf5(×10 run, validation run). The merge was clean:CMakeLists.txt,VulkanDevice.hpp,VulkanDevice.cpp,tests/PerformanceOverlay.cpp,ENVIRONMENT.mdandUSAGE.mdmerged 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 from711dd2ac58, whose patch this merge doesn't change.agc_driver_present_upscale,agc_driver_presentation_fsr,^agc_driver_presentation_pass,^agc_performance_overlay,^video_outand^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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon llvmpipe,mainagainst this head, for the same tests as the validation run above. One VUID appears only with this PR:VUID-VkDeviceCreateInfo-pNext-pNext, from the devicesagc_driver_present_upscalecreates, whose device struct this layer version doesn't know.maincan't show it, because its tree has noagc_driver_present_upscale. Neither side reports any otherVUID-message.c88633cf17, a merge ofmain0afe7a4755(×10 run, validation run), as MarcZX10 asked.mainnow has Get-fix's #9431, which adds a GCN check (tile mode, pitch and display height) toResidentPresentableinVulkanDevice.cpp. This PR changespresent()and the device's state setup, notResidentPresentable. The merge was clean, and this PR's own diff is unchanged.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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.agc_resident_presentadded. The loader inserted the layer 4 times onmainand 12 with this PR. The one VUID that appears only with this PR is againVUID-VkDeviceCreateInfo-pNext-pNext, from the devicesagc_driver_present_upscalecreates, a testmain's tree doesn't have. Neither side reports any otherVUID-message.51655586c5, a merge ofmain1a217758a5, which bringsf0d5ff528f, the system dialog drawn in the presentation.RecordRectscall inVulkanDevice.cpp. The merge keepsmain's*systemLayoutand this PR'supscaledin the layout condition.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main1a217758a5against this head, the same tests plusagc_driver_sample_multisample_target, amaintest that opens a real device:VK_LAYER_KHRONOS_validation5 times onmainand 13 with this PR.VUID-VkDeviceCreateInfo-pNext-pNext: once onmain, 8 times with this PR, all for VkStructureType 1000574000. This PR adds no VUID.VkPhysicalDeviceMaintenance8FeaturesKHR, whichmain'sVulkanDevice.cppchains into every device it creates. The runner'svulkan-validationlayers1.3.275.0-1 doesn't know it.d0bd686d8d, a merge ofmain2b1ae87c69, which brings MarcZX10's #12702 (the pad status overlay) (run).VulkanDevice::present, where this PR addsupscaled(FSR) whereverdrawnmeans "the swapchain image is already inCOLOR_ATTACHMENT_OPTIMAL", and #12702 addspadStatusShown. The merge keeps both:planePass->RecordOverlay: initial layoutdrawn || upscaled, finaloverlay || keyboard || padStatusShown;overlay->Record: initialdrawn || upscaled || plane != nullptr || keyboard || padStatusShown, and theelse ifthe negation of all five.padStatus->RecordRectsgets the sameupscaledthis PR gives the keyboard overlay'sRecordRects, so its initial layout isdrawn || 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.main'sdrawsOveralready includespadStatusShown, and this PR'supscaler->RecordPresentuses it.^video_out,^guest_video_out,agc_resident_presentandagc_driver_sample_multisample_target.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.agc_pad_status_overlay,_shared,_eventsand_invalid,agc_keyboard_overlay,agc_performance_overlay_statistics,agc_resident_present,video_out_flip_overlayandvideo_out_flip_padstatuspass 10 of 10, 15 tests in all; the twovideo_out_flip_*tests skip without a display.ctest -R '^(agc|shader)': 1,157 passed, 0 failed.bef132589c, jotitadev's fix forVUID-vkCmdBeginRenderPass-initialLayout-00897(review), with jotitadev as co-author.SHADER_READ_ONLY_OPTIMAL, butPresentationPass::destinationFramebufferandPresentationUpscaler::transientFramebuffernarrowed their views' usage throughVkImageViewUsageCreateInfotoCOLOR_ATTACHMENTand transfer bits. The commit addsSAMPLEDto the view when the pass uses that layout. Both images were already created withSAMPLED.vulkan-sdk-1.4.341.0tag (14de3c0d7b) and loaded throughVK_LAYER_PATH. The 44 tests of the ×10 set below ran 3 times per tree, as an unprivileged user, withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1:d0bd686d8d: 2000897messages per run, in all 3 runs:agc_driver_presentation_fsr10,agc_driver_present_upscale8,agc_performance_overlay2.bef132589c: 0 validation messages of any kind, in all 3 runs.guest_video_out_high_frame_rateskips, since Xvfb has no 120 Hz mode.vulkan-validationlayers, the one GitHub's runner and the NVIDIA bot use): neither tree logs00897. Both log the same 8VUID-VkDeviceCreateInfo-pNext-pNextmessages, forVkPhysicalDeviceMaintenance8FeaturesKHR, which that layer predates.^video_out,^guest_video_out,agc_resident_presentandagc_driver_sample_multisample_target.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.d0bd686d8dagainstbef132589c, the same tests:VK_LAYER_KHRONOS_validation13 times in each.VUID-VkDeviceCreateInfo-pNext-pNext, so the fix adds none.affd3b1699, a merge ofmain0836dfdf4f(run). #12862 movedlibSceAgcDriver's test registrations intotests/cmake/; the conflict inCMakeLists.txtis resolved withtools/agc_test_split.py resolve, which moves this PR's registrations intotests/cmake/agc_driver_presentation_pass_tests.cmake(+6 lines). Nothing else conflicted. Its FSR shader build rules andPresentationUpscaler.cppstay inCMakeLists.txt, unchanged, since they aren't test registrations. Apart from the move, this PR's diff is unchanged. With-DBUILD_TESTING=ON,ctest -Ngives 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Layer 1.4.341 on this head and current
main, as MarcZX10 asked (review):maincbcb37b314againstaffd3b1699on one cloud Linux machine (Ubuntu 24.04.5, lavapipe: Mesa 25.2.8, LLVM 20.1.2), both built with CI's Linux configure.vulkan-sdk-1.4.341.0tag (14de3c0d7b) and loaded throughVK_LAYER_PATH.VK_LOADER_DEBUG=layershows it inserted inside a test process on each tree.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.00897.main: 52 run. Offscreen: 16 pass, 36 skip, 0 fail. Xvfb: 51 pass, 1 skip, 0 fail.main's 52 plus this PR's two. Offscreen: 18 pass, 36 skip, 0 fail. Xvfb: 53 pass, 1 skip, 0 fail.guest_video_out_high_frame_rateskips, since Xvfb has no 120 Hz mode.00897messages:agc_driver_presentation_fsr10,agc_driver_present_upscale8,agc_performance_overlay2. Those are d0bd686d8d's counts. With the fix restored, it logs 0.Layer 1.4.341 again, on
maincf79276fee, as MarcZX10 asked (review), sincecbcb37b314predates #13807'sVulkanDevice::buildTarget()line.maincf79276fee,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.00897.main: 52 run. Offscreen: 16 pass, 36 skip, 0 fail. Xvfb: 51 pass, 1 skip, 0 fail.00897messages, 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.main, and 1 is unstable onmain.agc_driver_present_upscaleskips there, since that runner has noVK_EXT_headless_surface.57f34f0692, a merge ofmain4a58bc29ad, which brings MarcZX10's #12536 (ANYPS5_FPS_LIMIT) (×10, validation).VulkanDevice::presentanddocs/dev/ENVIRONMENT.md. The merge keeps both sides in each, and this PR's other changed lines are the same:present, the overlay'sNotePresenttakesmain's frame limit argument, and itsRecordand theelsebranch keep this PR's upscaled condition;ENVIRONMENT.mdkeeps both rows.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon GitHub's Linux runner),main4a58bc29adagainst this merge, for the same tests:mainand 13 with this merge;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 ontomaine6f5730, driver 595.99.02, Ubuntu 26.04.1.main, and 4 are unstable onmain.VK_LAYER_KHRONOS_validation, no new validation IDs over 1,241 GPU tests.agc_driver_presentation_fsrpassed.agc_driver_present_upscaleskips again, since that runner's Vulkan loader has noVK_EXT_headless_surface. Neither is inmain's baseline, so neither was compared.03c1bad1f4, a merge ofmain88e804b0a7(run). Two conflicts, each a pair of additions at the same place, and the merge keeps both: this PR'sVulkanDevice::UpscaledPresentsinVulkanDevice.cppbesidemain's newFillCompletionSyncCount, and this PR'sANYPS5_UPSCALErow indocs/dev/ENVIRONMENT.mdbesidemain's newANYPS5_TEST_HOST_IMPORT_ALIGNMENTrow. This PR's diff overmainis unchanged.agc_driver_present_upscale,agc_driver_presentation_fsr,agc_driver_sample_multisample_targetandagc_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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_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 ontomain1c8c0ef, Mesa 25.2.8, Ubuntu 26.04.1, the full suite, since this PR changes3rdparty/FidelityFX-FSR.main, and 6 are unstable onmain.VK_LAYER_KHRONOS_validation, no new validation IDs over 1,367 GPU tests.agc_driver_present_upscale(29.78 s),agc_driver_presentation_passand the performance-overlay tests passed on the GPU.agc_driver_presentation_fsrprinted its passed line and then hit its 30 s timeout in the bot's 4-way parallel run, at 30.03 s. Run alone underVK_LAYER_KHRONOS_validationon 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
03c1bad1f4merged ontomain1c8c0efc8c.agc_driver_presentation_passandagc_performance_overlaypass onmainand on the merge.agc_driver_presentation_fsrpasses 3 of 3, andagc_driver_present_upscale3 of 3 with real headless swapchains, the overlay cases included. TechLevelZero's NVIDIA bot skips that test, since its loader has noVK_EXT_headless_surface.VUID-orSYNC-HAZARD-message.maincomparison): withif (false && upscale.fsr)on the merge,agc_driver_present_upscalefails 3 of 3 at "FSR without the overlay ... was not upscaled".933b263a6d:agc_driver_presentation_fsrgets 60 s (×10). ItsTIMEOUTintests/cmake/agc_driver_presentation_pass_tests.cmakegoes from 30 to 60, and nothing else changes. The test takes 19.95 s alone underVK_LAYER_KHRONOS_validationon the RX 6300, against a 30.03 s timeout in the bot's 4-way parallel run.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.d7a519d557, a merge ofmain06a9092274, which brings SuarezPM's #14943 (draw names in device-lost fault reports) (×10, validation).VulkanDevice.cpp, where #14943 addsSubmissionSnapshots.hppandTraceRevision.hppand this PR addsUpscaleMode.hppat the same place. The merge keeps all three. This PR's diff overmainis unchanged.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon GitHub's Linux runner),main06a9092274against this merge, for the same tests:mainand 13 with this merge;VUID-VkDeviceCreateInfo-pNext-pNext, so the merge adds none.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Overlap:
VulkanDevice::present(commit 2) and covers both on together (commit 3), as described under How.docs/dev/ENVIRONMENT.md.libSceAgcDriver/CMakeLists.txt.docs/user/USAGE.md.PresentationPass.hpp. #9508 makesdraw()'sSlot&non-const, and this PR addsrecordInto()next to it; both apply.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-constSlot&.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.pyshows this head is 4 ahead/209 behind fetchedupstream/mainat0db47b263, 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 base7e69be679, 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.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
2227f13661is behind currentmainand several changed paths overlap this upscaling PR.What I ran
711dd2ac58against currentmainedf6804cf52c62eacafc592dd6142cb4efe5bd05.git merge-base,git merge-tree --write-tree,git diff --name-statusfor the paths changed since the report baseline, andgit diff --check.Results
0cd07dc4ab/edf6804cf5911521b0d1cb5d6dd947fc32a9c65ec8cc8aab07VulkanDevice, AGC CMake,PerformanceOverlaytests, and user/dev docs711dd2ac58and main2227f13661; validation comparison reports no new VUIDsUnedited merge/path output
Negative control
2227f13661with this head, but does not cover current-main changes listed aboveFindings
Blocking
mainand rerun the focused presentation/upscale/overlay/VideoOut tests with Vulkan validation on the same machine and GPU. The changedVulkanDeviceand presentation-test paths can affect the feature’s integration, so the older pair does not validate the current base.Non-blocking
git diff --checkreports trailing whitespace in vendored FSR headers; hosted conventions passes. I did not request reformatting those imported files.Sources
Not verified
main.To get this to a good state
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
c88633cf1703198fcea3a708c767c835258d76e2; recorded PR base:0afe7a47556945dfa529b173722d673a2fb23773; currentmain:f6fddd60d826831f70f7c62e25423610ee742bcc.mainis clean. Since the PR base, currentmainchanged 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.Results
929c3778de85cd03ecd321f5c74f54345f3a263fgit diff --checkVUID-VkDeviceCreateInfo-pNext-pNextfrom devices created by the newagc_driver_present_upscaletest; the report attributes it to a structure unknown to that validation-layer versionUnedited local command output
Findings
Blocking
maincannot 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
Sources
mainNot 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.
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
51655586c53136a42524e17af0ef83771ee72def; PR base:1a217758a55c09e817366fa4412b07fc91e3.main5ecef095b61e7a406b279c97896f3a8a6fbd6353; merge preview is clean, treea22eabc4342e86a5446231742f36b5d943975fc2.Results
a22eabc4342e86a5446231742f36b5d943975fc2git diff --checkmain1a217758a5and PR head51655586c5, the focused validation run reports the sameVUID-VkDeviceCreateInfo-pNext-pNextforVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_8_FEATURES_KHRon both arms and no other VUID. It addsagc_driver_sample_multisample_targetto show the same warning on main.VulkanDevice.cppchange since1a217758a5adds optional host reporting; it does not alter the device-createpNextchain. CMake and docs also changed.Unedited local command output
The diff check reports trailing whitespace in
3rdparty/FidelityFX-FSR/ffx-fsr/ffx_a.handffx_fsr1.h; these imported headers are kept verbatim. The device-creation source diff since1a217758a5contains host-report changes, with nopNextorVkDeviceCreateInfochanges.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
main1a217758a5, while currentmainis5ecef095b6. The later changes inVulkanDevice.cppare 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
VulkanDevice.cppat main5ecef095Not verified
I did not run builds, CTest or GPU validation locally. Linux product CI is skipped. The reported GPU comparison used baseline
1a217758a5, not currentmain5ecef095b6.To get this to a good state
Run the focused presentation, upscale, FSR, overlay and VideoOut validation tests on current
mainand its clean merge with this PR, on the same GPU and layer. Report exact revisions and any VUID differences; I will reassess the result.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
51655586c53136a42524e17af0ef83771ee72def; PR base1a217758a55c09e817366fa4411daac854eeb3f9; current main5ecef095b61e7a406b279c97896f3a8a6fbd6353.a22eabc4342e86a5446231742f36b5d943975fc2.Results
a22eabc4342e86a5446231742f36b5d943975fc2.3rdparty/FidelityFX-FSRvendor files, the rest of the diff is clean.All conventions checks passed.VulkanDevice.cppfile changed since the measured base; its delta adds host-report collection and the mesh-window target flag. ThevkCreateDevicemaintenance8 pNext chain is unchanged.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 sameVUID-VkDeviceCreateInfo-pNext-pNextfor structure type1000574000on 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 reportUnedited local command output
git merge-tree --write-tree upstream/main upstream/pr/10043git diff --check upstream/main...upstream/pr/10043exited 2 and reported only trailing whitespace in the imported FSR files. The output begins:The full command reports additional trailing whitespace in
ffx_a.handffx_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/10043The current-main changed-path command printed:
The verification commit
847cc558c2051e0fd2003932855fed12f0fc97a0lists PR head51655586c53136a42524e17af0ef83771ee72defas its parent.Negative control
main1a217758a55cand PR head51655586c531; the main device setup already chainsVkPhysicalDeviceMaintenance8FeaturesKHR.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.
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
51655586c53136a42524e17af0ef83771ee72def; PR base1a217758a55c09e817366fa4411daac854eeb3f9; current main5ecef095b61e7a406b279c97896f3a8a6fbd6353.a22eabc4342e86a5446231742f36b5d943975fc2.Results
a22eabc4342e86a5446231742f36b5d943975fc2.3rdparty/FidelityFX-FSRvendor files, the rest of the diff is clean.All conventions checks passed.VulkanDevice.cppfile changed since the measured base; its delta adds host-report collection and the mesh-window target flag. ThevkCreateDevicemaintenance8 pNext chain is unchanged.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 sameVUID-VkDeviceCreateInfo-pNext-pNextfor structure type1000574000on 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 reportUnedited local command output
git merge-tree --write-tree upstream/main upstream/pr/10043git diff --check upstream/main...upstream/pr/10043exited 2 and produced: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/10043The current-main changed-path command printed:
The verification commit
847cc558c2051e0fd2003932855fed12f0fc97a0lists PR head51655586c53136a42524e17af0ef83771ee72defas its parent.Negative control
main1a217758a55cand PR head51655586c531; the main device setup already chainsVkPhysicalDeviceMaintenance8FeaturesKHR.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.
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-ffonto currentmainde96e3efbdwith no conflicts. Tests:agc_driver_presentation_pass,agc_driver_presentation_fsrand the threeagc_performance_overlay*.5/5 pass in 3 of 3 runs on both devices. But with layer 1.4.341,
agc_driver_presentation_fsrandagc_performance_overlaylogVUID-vkCmdBeginRenderPass-initialLayout-00897on every run, on both devices: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_OPTIMALare the ones this PR adds for EASU's output and forRecordStage. A render pass whose attachment'sinitialLayout/finalLayoutisSHADER_READ_ONLY_OPTIMALneeds a framebuffer view withSAMPLED(orINPUT_ATTACHMENT) usage. Both framebuffer views here narrow the usage throughVkImageViewUsageCreateInfotoCOLOR_ATTACHMENT(+ transfer bits):PresentationUpscaler::transientFramebuffer;PresentationPass::destinationFramebuffer.So the view lacks the bit, even though the image has it.
Fix I checked, which adds
SAMPLEDto the view only when the pass ends in that layout: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 clearsagc_performance_overlaybut leaves thepresentation_fsrmessages fromRecordStage, 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.
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 inSHADER_READ_ONLY_OPTIMAL; the reported current-layer run logsVUID-vkCmdBeginRenderPass-initialLayout-00897on every run.What I ran
Reviewed head
d0bd686d8d73c9bc45173d8b6ab9947ae07ba3cdagainst PR base2b1ae87c69bff8ba1df7a708ed7d6b099d416a08. The live merge preview against targetmain11df2a6ca804ed0ddc700a947f5f13e040f26a14was clean. Environment: Linux 6.1.0-54-amd64 x86_64, Python 3.11.2, GCC 12.2; no compiler or build was run.Results
11df2a6ca804ed0ddc700a947f5f13e040f26a14.git diff --checkUnedited output excerpts from local checks
Findings
Blocking
PresentationUpscaler::transientFramebuffernarrows the image view to color-attachment usage (plus transfer-source usage), even whenfinalLayoutisVK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL.PresentationPass::destinationFramebufferhas the same omission for itsRecordStagepath. This conflicts with the render-pass final layout and triggers the reported validation error. Please includeVK_IMAGE_USAGE_SAMPLED_BITin each view's usage when the final layout is shader-read-only, or make an equivalent correction.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.
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-ffontomain539c3425f8, I ranagc_driver_presentation_pass,agc_driver_presentation_fsrand the fouragc_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 no00897or other validation message.VK_LOADER_DEBUG=layershows the layer inserted.One thing outside the fix:
agc_driver_present_upscaleskips on the 3070 (no Vulkan loader with VK_EXT_headless_surface). On lavapipe 26.0.3 it segfaults right afterSurface capabilities drawable=1084x610 .... That happens in 3 of 3 runs with the layer, in a run without it, and in a run withbef132589creverted. 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.
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
affd3b1699a0037511b3781626906969dd06add2, based on0836dfdf4fecb1e0326100c490476e15d3a74da5.main8a4fc62318a4b73b6895bf20a024c625efeb7c3bis clean.Results
8a4fc62318a4b73b6895bf20a024c625efeb7c3b.bef132589ce213bbf5ffa6c1472f415d6ecd4557affd3b1699a0037511b3781626906969dd06add2.agc_driver_present_upscaleas skipped because the runner lacksVK_EXT_headless_surface.Unedited local check output
Findings
Blocking
VUID-vkCmdBeginRenderPass-initialLayout-00897is fixed in source by adding sampled usage to views used withVK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL. The supporting Khronos 1.4.341 run is onbef132589ce213bbf5ffa6c1472f415d6ecd4557, while the current head isaffd3b1699a0037511b3781626906969dd06add2. The current-head NVIDIA run uses layer 1.3.275, which the author says does not report this VUID, and it skipsagc_driver_present_upscale. Please provide the same focused validation on the current head and currentmain, with the layer inserted and no new VUIDs. The repository requires paired focused AGC validation onmainand the change.Non-blocking
git diff --checkreports 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
bef132589c; NVIDIA report onaffd3b1699a0.Not verified
affd3b1699a0037511b3781626906969dd06add2.To get this to a good state
Run the relevant presentation, FSR, overlay, and headless-upscale tests on current
mainandaffd3b1699a0037511b3781626906969dd06add2on the same machine/GPU withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1, andANYPS5_REQUIRE_VULKAN=1, using a validation layer version that reports00897. 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.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
mainrevision older than today’s base and misses a later change inVulkanDevice.cpp, which this PR also modifies.What I ran
Reviewed PR head
affd3b1699a0037511b3781626906969dd06add2against PR base0836dfdf4fecb1e0326100c490476e15d3a74da5; the merge preview against currentmaincf79276fee2f042feb6a7c71d0d6a27e9cfe2592is clean. Environment: Debian Linux x86-64, Python 3.11.2; no local build or GPU tests.Results
cbcb37b314and this head, and 2000897messages in a red control with the usage fix reverted. This is useful evidence, but it does not use the current base.VulkanDevice.cppand the AGC CMake file; both are changed by this PR.git diff --checkUnedited paths changed on main since the reported baseline
Negative control
00897validation messages.Findings
Blocking
The baseline is not current. The report compares
cbcb37b3140db682277a9c51d950b90ce75de784with this PR head. Currentmainiscf79276fee2f042feb6a7c71d0d6a27e9cfe2592; since the reported baseline,mainchangedVulkanDevice.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 currentmainand 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
mainVulkan-device changeNot 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
mainand this head on the same machine, using the validation layer that reports00897, and include the exact SHAs and layer insertion evidence. I’ll recheck the same paths and report when the new evidence is available.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
affd3b1699a0037511b3781626906969dd06add2; PR base0836dfdf4fecb1e0326100c490476e15d3a74da5.The author reports a clean merge of the PR head onto
maincf79276fee2f042feb6a7c71d0d6a27e9cfe2592as merge commitcaa72b2703; this is author-provided, not a local merge/build.mainhas since advanced tob6bd6e7bf7b97ad00b3315fd26c1d4e76497f452. The intervening changes do not touch the FSR presentation implementation, its test registration, or the performance overlay paths.Results
git diff --checkmainadvanced while it ran, so the tool marked the report stale. I do not count that preview as verified against the final tip.maincf79276fee2f042feb6a7c71d0d6a27e9cfe2592, the PR head, and their clean merge, using the same lavapipe host and validation layer. This was not run by me.Unedited output excerpts
Negative control
VUID-vkCmdBeginRenderPass-initialLayout-00897.00897messages; 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
mainadvancement, so I cannot report a verified merge preview against the final observed tip.