D3D12.X: preserve native host vtable prefixes and tails #1904
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1904
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1904"
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?
@mikebuckets171 on GitHub · 2026-11-24 22:55 UTC · original
mikebuckets171:pr/d3dmetal-native-vtable-prefix→main· +130 −18 · 1 files · 1 commits · draftPart of #258. This upstreams Ahmet Dedeler's focused D3DMetal host-vtable fix from
ddf3be7, preserving its author and existing Claude Mythos 5.2 co-author trailer. D3DMetal is native code under Wine rather than a PE module: the existing extended vtable layout puts XCL metadata where D3DMetal expects its C++ ABI prefix and does not preserve enough host tail slots. The change mirrors the host prefix and tail only when the original methods are outside PE modules; PE-backed Windows host tables keep their existing layout.What is in it
crates/xcl/src/hle/d3d12x/real.rs: preserve the native host vtable prefix/tail and map extended tables back to their original table; add a focused regression test for native and PE-backed table layouts.Tested
cargo build --workspace --locked --release --target x86_64-pc-windows-gnullvm— passed on this head.cargo test -p xcl --lib --release --target x86_64-pc-windows-gnullvm hle::d3d12x::real::native_host_table_tests::a_native_hosts_table_keeps_its_prefix_and_other_tables_keep_theirs -- --exact --nocapture— 1 passed, 0 failed, 951 filtered out, under CrossOver.main689f2db477c3c062cf162649781640ef8a977c18:50768d87beca1773980745db1fbc68cf69446b92:main; this is a bounded no-regression check only, not evidence the title reaches the changed vtable path. Wine reports peak commit as 0 MB, so memory is unmeasured.Not tested
cargo test --workspace -- --test-threads=4and any Windows GPU run; no Windows GPU machine was available in this session. Per #258 guidance this is a Mac-host-only behavior change, so Windows remains untested pending a Windows tester.AI use
@DavidM1911 on GitHub · 2026-11-25 02:15 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.