feat(libSceJxr): release prediction rows #16851
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16851"
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 MarrasFederico on 2026-11-07T18:16:55Z.
What
freePredInfowas a parameterless placeholder that threw. It now follows pinned jxrlib strPredQuant.c: a non-nullpPredInfoMemoryis released with the guestfreeand the field is cleared; the per-channel row pointers are left as they were. A codec without a block is left unchanged. A null codec throwsstd::invalid_argumentwhere jxrlib dereferences it.The test hands the codec a guest
mallocblock and checks that the free callback still observes the originalpPredInfoMemory. After the callback returns, only that field is cleared: a full codec byte snapshot is compared, and the quantizers and prediction rows match an untouched reference copy. A second call is a no-op; a null codec throws.freePredInfo - not measured on a PS5: prototype and layout are inferred from the export name; the debt entry is in
docs/dev/debt/libSceJxr.md.Tested
Ubuntu 26.04.1 LTS x86-64, GCC 15.2.0, Release,
BUILD_TESTING=ON, base5062ba1fa434906ad0075f4d46bc763946e21ca3. No PS5 hardware or title was tested; Windows and macOS were not tested.Built
core/libs/prx/libSceJxr/allserially withnice -n 19 cmake --build build --parallel 2 --target core/libs/prx/libSceJxr/all.ctest --test-dir build -R 'guest_jxr' --output-on-failurepasses (100% tests passed out of 15).On current
mainthe export is a parameterless placeholder that throws throughNotImplemented_nid_no_patch, so the new assertions cannot pass there.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpass.Regression control: moving the pointer clear before the guest free makes the callback-order assertion fail. Restored the source, rebuilt with the same serial limits, and all 15 JPEG XR tests pass.
pr_overlap.pyreturned 2. Compared every reported head (#14212, #15626, #15645, #15646, #15684, #15689, #15771, #15772, #15774, #16282, #16710, #16827) against its own merge base, including the original export and any new private-helper definitions: none implements the same export or helpers. Shared debt/header insertions remain. The related #16827 allocates prediction rows. It shares the LP64 assertion, header/helper insertion points, test heap fixture and inventory count; combine #16827 first and reconcile those common insertions, keeping one heap fixture. No functional dependency is required.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 gabichuuuuu on 2026-11-08T18:18:48Z.
Review: COMMENTED
Windows run of head
bd430edbb7, merged alone ontomainf35f1e5eca(clean merge). Setup: Windows 11, WinLibs GCC 15.2 (x86_64-ucrt-posix-seh), Release,BUILD_TESTING=ON.guest_jxr*tests with--repeat until-fail:5: every run passes.main'slibSceJxr/Export.cppand this PR's header, the build stops withconflicting declaration of C function, because the test calls exports whose signatures only exist with this PR.Merge order: every open libSceJxr PR from this series edits the same "remaining stubs" line in
docs/dev/debt/libSceJxr.md, so each merge will conflict with the next one there.Pull request closed