Repository navigation
Conversation
LuizDusky
marked this pull request as ready for review
November 23, 2026 23:26
TxCsOffc
requested changes
Nov 25, 2026
TxCsOffc
left a comment
Owner
There was a problem hiding this comment.
Thank you for the detailed bring-up work and the shader/runtime fixes here!
There are several very valuable changes in this PR:
- Fixing
KernelSchedParamto match the 4-byte guestsched_paramlayout (src/kernel/pthread.h/pthread.cpp) - Wrapping
scriptingGetMemandAddLibkernelUnityFuncwithLoader::GuestCpu::GetHostFunctionStub(src/libs/libKernel.cpp) - Cooperative cross-thread signal queueing (
PthreadQueuePendingSignal/PthreadWakeForSignal) andpthread_jit_write_protect_np(1)beforeHandleCallback - Embedded vertex attribute lowering in
MslEmitter.cpp+metalRenderer.mmand keyingBuildStageStaticKeyon stride and index source (vid/iid) with unit coverage intests/shaderCfgTests.cpp
However, I cannot merge this PR as-is because building kyty_emulator against KyTx's configured dbc-hbin/FEX-darwin fails to compile in src/loader/guest_cpu/fex_guest_cpu.cpp (commit 859671c7 unconditionally targets alamshafil/fexcore-darwin APIs):
src/loader/guest_cpu/fex_guest_cpu.cpp:236:4: error: no member named 'DCacheLineSize' in 'FEXCore::HostFeatures'
src/loader/guest_cpu/fex_guest_cpu.cpp:237:4: error: no member named 'ICacheLineSize' in 'FEXCore::HostFeatures'
src/loader/guest_cpu/fex_guest_cpu.cpp:352:44: error: too many arguments to function call, expected at most single argument 'NewThreadState', have 3 arguments
src/loader/guest_cpu/fex_guest_cpu.cpp:609:76: error: no type named 'SyscallArguments' in namespace 'FEXCore::HLE'
src/loader/guest_cpu/fex_guest_cpu.cpp:607:25: error: use of undeclared identifier 'OSABI'
src/loader/guest_cpu/fex_guest_cpu.cpp:607:47: error: no member named 'SyscallOSABI' in namespace 'FEXCore::HLE'
src/loader/guest_cpu/fex_guest_cpu.cpp:711:19: error: allocating an object of abstract class type 'KytySyscallHandler'
src/loader/guest_cpu/fex_guest_cpu.cpp:899:30: error: no type named 'ScopedJITWriteProtect' in namespace 'FEXCore::Allocator'
Requested changes
- Either preserve compatibility with
dbc-hbin/FEX-darwininfex_guest_cpu.cpp(for example via compile-time detection / a CMake option so both FEX ports build cleanly), or split thealamshafil/fexcore-darwinmigration (fex_guest_cpu.cpp+docs/bringup/) into its own dedicated PR. - That way, the
pthread/libKernelfixes and the native Metal embedded vertex-pulling & cache-key fixes can be verified and merged cleanly right away.
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.
Changes
Validation
shader_cfgsuite hit the same SPIR-V repeated-export failure before and after the change.Audio quality and other titles still need validation. See the ARM64 bring-up notes for the build commands and limitations.
Prepared with AI assistance.