feat(videoout): allow forcing SDR output #7480
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7480"
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 Scramblrrrr on 2026-10-18T09:03:16Z.
What
On an HDR desktop, a title can select a floating-point BT.2100 PQ display format that VideoOut currently refuses. Add the opt-in
APS5_FORCE_SDRenvironment option to suppress advertised HDR availability and let titles select the existing SDR path. The detected display and surface capabilities are retained, and the normal availability/generation bookkeeping still applies. With the variable absent, behavior is unchanged.This is an output compatibility option. Floating-point PQ formats remain unsupported; there is no guessed conversion, title-specific branch, host display change or performance claim. The synthetic test covers suppressed availability, retained host capabilities, SDR reference white and restoration after the override is removed and the surface is republished.
Tested
Current head
0a7cb2fcamerges main3e3e8b905and adds the newly required environment-reference row. The production fix and fixture are unchanged from the tested head below. The updated conventions check passes. A fresh native run on this latest merge is pending while a separate title test uses the GPU.Windows 11 Pro 26200, GCC 15.2, Release, SPIRV-Tools OFF, RTX 5070 Ti / NVIDIA 617.42.
5a35a7111on maine5c2b3c325: all four HDR controls pass, zero skips, 2.69 s:agc_host_hdr,guest_video_out_hdr,video_out_hdr_probe,video_out_hdr_present. The latter executes Vulkan presentation. Final head only moves the documentation next to the existing HDR entry; production/test code is unchanged.87f94c64b4d4on the same main: without the option, registration stops atunsupported display pixel format 0xc001070722000000while host HDR is advertised. With the option, startup notices, title art and the offline main menu render correctly. This title test needs the public boot/resource stack listed in the tracking update; it is not a main-only title result. No executable patches or time scaling. The run was stopped intentionally after measurement, with no runtime fatal error.Not tested: the full suite, other hardware/operating systems, or title gameplay from this option alone. Raw title assets, code, descriptors, requests and logs remain local.
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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T09:12:00Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceAgcDriver.mdL156-157Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/ENVIRONMENT.mdImported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-19T06:35:55Z.
Intel and AMD Windows data:
agc_host_hdrfails onmainand passes with this PR, on an Intel UHD 770 and an AMD RX 9070 XT.Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built,
ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, withVkCacheemptied first. This head0a7cb2fcamerged intomain07377573f. "Without" means this PR's test files onmain07377573f, with none of its other changes.agc_host_hdrI also ran full CTest with this PR and the 13 other open AGC and shader PRs I tested in the same batch merged together (#7668, #7659, #7504, #7432, #7426, #7413, #7465, #7466, #7464, #7449, #7489, #7673, #7560). Neither GPU showed a failure beyond
main's own: the five image-table tests (#6647) andagc_driver_sample_multisample_target(#6957) on the UHD 770, andagc_driver_layered_volume_vertex_no_gpl(#4768) on the RX 9070 XT.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-19T15:09:36Z.
@savvaniss Thank you for the paired Windows Intel/AMD runs. This adds useful cross-vendor evidence: unchanged
agc_host_hdrfails on main07377573f and passes with0a7cb2fca, three executions per vendor. I am treating the larger multi-PR suite separately; its results do not isolate this PR. Our earlier Windows/NVIDIA paired test remains the third-vendor result. No title FPS benefit is claimed for the HDR override.AI-assisted: yes (Codex).