feat(libSceVideoOut): allow ANYPS5_OUTPUT_4K override in outputStatus #7879
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7879"
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 ErenYeager1836 on 2026-10-19T12:05:51Z.
What
Allows running titles that expect 4K output buffers on displays below 4K by setting
ANYPS5_OUTPUT_4K=1.PPSA34063 (NHL 27, #7635) allocates output buffers for 3840x2160. On a 1080p host monitor,
sceVideoOutGetOutputStatusinfersresolutionas 1 (<= 1080p), causing the title's rendering job pipeline (Job6) to encounter a null buffer dereference at startup. SettingANYPS5_OUTPUT_4K=1forcesstatus.resolutionto 2 (SCE_VIDEO_OUT_RESOLUTION_3840X2160), allowing the title's 4K render path to proceed.Documents
ANYPS5_OUTPUT_4Kindocs/dev/ENVIRONMENT.mdand notes the override behavior indocs/dev/debt/libSceVideoOut.md.Tested
PPSA34063crash log whereoutputStatusreporting resolution 1 causes null buffer pointer dereference on threadJob6.python tools/check_conventions.pypasses.python tools/env_reference.pypasses with the new environment entry.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 repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T12:16:54Z.
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)core/libs/prx/libSceVideoOut/src/Output.cppL22Some 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.
core/libs/prx/libSceVideoOut/src/Output.cppdocs/dev/debt/libSceVideoOut.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceVideoOut/src/Output.cppdocs/dev/debt/libSceVideoOut.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceVideoOut.mdImported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-19T12:25:53Z.
Review: COMMENTED
Verified the implementation and documentation in PR #7879:
force4kbased onstd::getenv("ANYPS5_OUTPUT_4K") != nullptrincore/libs/prx/libSceVideoOut/src/Output.cppallows overridingstatus.resolutionto 2 (4K) for titles that query resolution before registering buffers.docs/dev/ENVIRONMENT.mdand functional debt documented underdocs/dev/debt/libSceVideoOut.md.The CI
conventionsworkflow is failing because the PR description does not include the required template sections from.github/pull_request_template.md. Updating the PR body with### Testedand### Checklistwill clear the failure:With
ANYPS5_OUTPUT_4K=1the title selectsPS5_4K, does not crash, and displays pictures.This change:
status.resolution = 2) viaANYPS5_OUTPUT_4Kenvironment variable incore/libs/prx/libSceVideoOut/src/Output.cpp.ANYPS5_OUTPUT_4Kindocs/dev/ENVIRONMENT.mdanddocs/dev/debt/libSceVideoOut.md.Fixes #7635.
Tested
Windows 11, MinGW-w64 GCC 15.2.0 (Release). Verified on NHL 27 (PPSA34063).
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 ErenYeager1836 on 2026-10-19T13:44:18Z.
Thanks for the verification @fogydes! Updated the PR description with the required
### Checklistand### Testedsections. Conventions CI is now passing green.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T17:59:03Z.
Closing in favour of #7814, which fixes the same thing at the root.
sceVideoOutGetOutputStatusright aftersceVideoOutOpen, with no buffer registered, reportsresolutionfollowing the console/display resolution setting (2 on a 4K display set to Automatic, 1 when set to 1080p). #7814 reports it from the host display accordingly, in the sameoutputStatusinOutput.cpp, so the two PRs overlap and cannot both land.If #7814 does not cover your 1080p-display case once merged, please open a new PR with the evidence for what is still wrong. Welcome to reopen with this addressed.
Pull request closed