Repository navigation
Conversation
Rebase the graphics proposal onto upstream b42ef24 without carrying the historical macOS merge chain. Includes the compiler/runtime prerequisite from PR boykopovar#1835 and the still-required macOS foundation from mugurc/macos-port at 21930ce; those platform changes remain until their upstream PRs land. Preserve upstream starting-quad folding and the qualified vertex lane rule. Keep x87-dependent Math.cpp outside the optional ARM64 graphics closure rather than weakening its ABI assertion.
This was referenced Oct 15, 2026
Merged
11 tasks done
11 tasks done
11 tasks done
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add the public SDK's unchanged
pad_inputas the next runnable native Apple ARM64 consumer. Its seven functions are compiled AOT from an x86-64 ELF and linked to the shared runtime. The build uses #4396's provider catalog and matching DWARF candidates instead of a handwritten list of C function signatures and frame objects.The acceptance target compares the independently source-compiled ARM64 program and the AOT program across button edges, intercepted input, OPTIONS, read failure, user/initialization/open errors and the 625-iteration timeout. Test adapters publish state through the existing Pad implementation and count sleeps. A separate production-provider smoke preserves all 625 real 16 ms sleeps. Input buffers, notifications, return codes, closure and teardown are checked. Binary/object/runtime hashes bind the reports to the tested artifacts.
Also include a reproducible transfer probe using the unchanged public
ps5-payload-dev/sdkhello_worldsource atf5d40f02770e9b0001dd9e18056eca70b3da8b40. Its three known provider contracts transfer without changing the generic mechanism. The old-stylemain()remains a recovery obligation and is qualified in an explicit source profile. The original source/license is supplied separately, not vendored into this PR. This probe uses declaration-only cross headers and the verified ps5link CRT, so it does not validate that SDK's original loader.Stacked on #4396 and its prerequisites, based on main
c36fd0a0e. Review the incremental consumer change. Keep this draft while the in-tree direction is being decided.Tested
Latest integration checkpoint (12 October): aligned with main
2f4cc8983, including the new component technical-debt layout. The final combined stack with the separate C++ follow-up #4718 passed 588 compiler/relinker/runtime checks and 26 native integrations on Apple Silicon. Rebuilt cube AOT/reference still match all eight RGB frames after 600 flips each; controller and typed module-bundle acceptance pass. These are local results; hosted CI is running on the updated head. Full Linux/Windows builds still require maintainer dispatch.Integration checkpoint, 12 October: merged main
fe66af13ethrough the dependency stack and requalified affected provider identities after reviewing their implementations. The final combined stack passed 526 compiler/relinker/runtime cases, 26 native integration cases, the rebuilt graphics pair (600 flips each, teardown, eight exact RGB frames), controller O2 and SHA/memcmp O0/O2 checks on Apple Silicon. Hosted checks refer to the new head and remain separate from these local results. Full Linux/Windows builds require maintainer dispatch.Apple ARM64, current head:
native_aot_pad_input_compilecheck. The new compile check is registered in the existing Apple AOT CI lane; it does not require the graphics dependencies.native_pad_input_check: both native binaries agree in all six scenarios. The production-provider run completed its original delay and teardown in about 12 seconds.Hello, world!, returned zero and completed teardown.Reproduce after configuring the native graphics runtime as in BUILD.md:
BUILD.md contains the independent-source probe command as well.
Limits: the x86 controller input uses an O0 fixed-frame debug profile; this is not optimized or stripped-input recovery. Four C signatures and 26 frame objects are recovered, but seven of the ten catalog entries were newly qualified for this consumer. Native-pointer lifetimes, CRT initialization and constant-10 division safety remain explicit source facts. Physical controller acquisition/event pumping, console behavior, game compatibility and performance gains are not established by these tests. The startup and host string bindings in the transfer probe remain explicit qualifications.
Checklist
Based on current
main; no other open PR implements the same functionsOne topic per PR; reusable mechanisms are in feat(aot): qualify provider contracts and recover bounded debug facts #4396
No comments added in code
Unsupported or unqualified inputs reject; simulated providers are test-only
No private notes, logs, images or third-party fixture binaries added
Existing pinned SDK submodule reused; no new third-party dependency
Shared runtime behavior; source-specific assumptions stay in examples
Depends on: feat(aot): qualify provider contracts and recover bounded debug facts #4396, feat(aot): derive guard sites from qualified image recipes #4156, feat(aot): run source-built graphics on native Apple ARM64 #3891, feat(aot): discuss native ARM64 compiler architecture and integration #1835
AI-assisted: yes
Unblocks: none