Commit Graph
961 Commits
Author SHA1 Message Date
ates 8a19b2b999 Add reversible system32 shim staging in bx-cli run (#459)
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 21:06:10 +03:00
Ateş ac0fd2e502 Merge pull request #454 from MacosPorters/track-a/408-bx-cli-supervision
[M1-A1] Supervised timeout, cleanup and trace summary for bx-cli run
2026-11-26 20:45:44 +03:00
ates 73c190d725 Merge remote-tracking branch 'origin/main' into HEAD
Signed-off-by: ates <ahmetrizaates@hotmail.com>

# Conflicts:
#	CHANGELOG.md
2026-11-26 20:43:46 +03:00
ates f3c2b7fe34 Re-resolve bottle prefix on timeout/signal cleanup for managed first-launch stubs
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 20:43:20 +03:00
Ateş 4333a7cc5e Merge pull request #452 from skakwy/track-a/437-api-set-shims
Add API-set resolution fixture and ADR 0007 (#437)
2026-11-26 20:42:35 +03:00
ates 66e9351410 Require valid module lookups in test_apiset_resolution and accept ADR 0007
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 20:42:05 +03:00
Ateş 060083cc56 Merge pull request #441 from devil8blade/track-e/439-xgameruntime-dynamic-api-impl
[M1-E3][ABI] Dynamic GDK loader exports in xgameruntime.dll
2026-11-26 20:36:09 +03:00
atharvranjan 7d7249ee8b Clean up the bottle CrossOver actually launches; limit --backend to bottles
- Locate --bottle through CrossOver's CXBottle module with the launch's
  environment, so CX_BOTTLE_PATH, configured paths and managed bottles are
  stopped correctly. Refuse to launch if it cannot be located.
- Require --bottle for --backend: a bare prefix loads Wine's own D3D12.

Both reproduced by atesahmet0 on #454.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
2026-11-26 11:19:36 -06:00
atharvranjan d0395a61da Add supervised timeout and cleanup to bx-cli run (#408)
- --timeout, and cleanup on timeout, SIGINT, SIGTERM or SIGHUP: stop the
  launcher process group, then wineserver for the selected bottle or prefix.
  wineserver -k exit 1 (nothing running) is accepted only if -w succeeds.
- Pass shim overrides with bin/wine --dll and --backend with --env in bottle
  mode, because bin/wine discards WINEDLLOVERRIDES and applies bottle
  settings over the environment. First found by jelly013.
- Print the trace summary after a run with --log.
- Record the libc dependency and a one-host D3D12 swapchain observation.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
2026-11-26 11:01:28 -06:00
skakwyandClaude Sonnet 5.5 2eb59e033b Add API-set resolution fixture and ADR 0007 (#437)
test_apiset_resolution imports one export from each of the six win32_bridge
API-set DLLs through the PE import directory and reports, per name, whether a
BetterXen shim file or a host module serves it, and which module the import
address table slot is bound to. --expect host (default) or --expect shim
selects the outcome that passes.

On CrossOver 26.0 all six names are served by the host (twinapi.appcore.dll
for PSM, user32.dll for ntuser) and +loaddll shows no Loaded record for any
shim file. ADR 0007 proposes relying on Wine's built-ins and records that
evidence; a CrossOver 26.3 re-run is still needed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: skakwy <nils_0805@icloud.com>
2026-11-26 17:53:14 +01:00
Ateş eec56dd028 Merge pull request #448 from MacosPorters/track-f/446-boot-texture-computer
[M1-F2] Exercise the texture computer in test_integration_boot
2026-11-26 19:27:14 +03:00
devil8blade e7899574ab Keep XErrorReport logs valid UTF-8 and record loader provenance
Invalid bytes are written as \u00XX and a multi-byte character is not
split when the detail buffer fills. The six loader prototypes are
recorded as BetterXen-defined. The two changelog notes are one entry.

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
2026-11-26 16:25:51 +00:00
atharvranjan 486f7b197f Check full footprints and keep one Fixed changelog section
Also verify footprint format, width, height and depth, call Release through
the computer's own vtable, and state the release check precisely.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
2026-11-26 10:11:04 -06:00
atharvranjan 390e85fc8d Exercise the texture computer in test_integration_boot
The fixture passed a null descriptor to XGCreateTextureComputer and reported
the stage as pending, although #415 implemented it. Create a 100x50 two-mip
RGBA8 computer, check its layout against hand-computed values, require the
suggested layout to be linear and require release to free the object.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
2026-11-26 10:09:10 -06:00
devil8blade 18178da12c Address review: surface unsupported QueryApiImpl in trace, null out on failure
Unsupported and mismatched QueryApiImpl queries keep their structured log
and also call BX_STUB_LOG so bx-cli trace lists them. Failure paths clear
the output pointer. XErrorReport uses the public void signature.

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
2026-11-26 16:05:11 +00:00
Ateş bfa80dee8b Merge pull request #440 from MacosPorters/track-a/438-trace-summary
Report sampled CLWB bounds and guest crashes in bx-cli trace
2026-11-26 18:47:38 +03:00
ates 829a94fa2f bx-cli: print clwb VEH traps : 0 when no CLWB records exist
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 18:47:28 +03:00
devil8blade 2e895e0f9b Export GDK dynamic loader entry points from xgameruntime.dll
The static loader resolves InitializeApiImpl, InitializeApiImplEx,
InitializeApiImplEx2, UninitializeApiImpl, QueryApiImpl, and XErrorReport
with GetProcAddress. Those initialize entry points share the existing
runtime refcount with XGameRuntimeInitialize and
XGameRuntimeInitializeWithOptions. UninitializeApiImpl releases that same
state. QueryApiImpl dispatches the offline families this DLL already
implements and logs any other class or interface. XErrorReport records
the code and message and does not terminate the process.

Closes #439

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
2026-11-26 15:38:34 +00:00
Ateş 02b8924de7 Merge pull request #427 from MacosPorters/track-b/412-xmem-physical
[M1-B2] Map xmem physical pages into shared aliases
2026-11-26 18:31:10 +03:00
ates 925311e852 Merge main and address PR #427 review findings
- Wire physical-page accounting into xmem.cpp via shims/xmem/xmem_accounting.h so XMemGetWorkingSetStatistics and bx_xmem_get_internal_stats report allocated_physical_bytes and enforce one shared title memory budget across heap, virtual, and physical allocations.
- Require exact full-span coverage in unmap_span; empty or partially mapped spans now fail with ERROR_INVALID_PARAMETER without disturbing existing views.
- Document Win32 AWE-modeled synthetic signatures (AllocateUserPhysicalPages / FreeUserPhysicalPages in memoryapi.h) and intra-span duplicate-tag aliasing vs duplicate-tag free rejection.
- Expand test_xmem_physical to cover working-set stats, shared cap enforcement, invalid flags, intra-span duplicate-tag aliasing, duplicate and stale free non-mutation, and partial/empty unmap rejection.
- Resolve CHANGELOG.md conflict with origin/main.

Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 18:30:37 +03:00
Ateş f7194d0255 Merge pull request #431 from MacosPorters/track-a/410-win32-bridge
[M1-A3] Cover Win32 bridges and track offline PSM registrations
2026-11-26 18:20:03 +03:00
ates 7ea4f1f6ca Merge main and address PR #431 review findings
- Replace std::mutex/std::unordered_set + -fexceptions in psm_appnotify.cpp with a Win32 SRWLOCK and HeapAlloc open-addressed token set, keeping -fno-exceptions and reducing both PSM DLLs from ~2.4 MB back to 118 KB.
- Tag state (PSM1) and constrained (PSM2) tokens so cross-family unregisters log foreign_token while duplicate, null, or arbitrary invalid tokens log unknown_token.
- Fix load_bridge to call FreeLibrary on path mismatch or path-query failure without leaking the module handle or reporting a stale GetLastError().
- Verify exact per-(event, detail) JSONL counts inside test_win32_bridge (both with caller-provided BX_LOG_FILE and a self-managed temp log).
- Resolve CHANGELOG.md conflict with origin/main.

Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 18:19:30 +03:00
Ateş bd8edd8f70 Merge pull request #429 from MacosPorters/track-e/419-audio-input
Implement bounded audio queues and GameInput ordinal 1 COM stub
2026-11-26 18:09:00 +03:00
ates 058bc981dc Merge main and address PR #429 review findings
- Reject ApuAlloc before ApuCreateHeap is called and reset used=0 explicitly on heap creation
- Validate max_streams > 0 and record it on DSP connections in XDspConnectWithMaximumStreamLimit
- Expand test_audio_input to cover pre-heap ApuAlloc failure, single-output ApuAlloc, zero max_streams rejection, and GameInput v0 QueryInterface/method dispatch
- Resolve CHANGELOG.md merge conflict with main

Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 18:08:53 +03:00
ates a8c4dbb77e Report sampled CLWB bounds and guest crashes in bx-cli trace
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 18:08:33 +03:00
Ateş d8b83818c1 Merge pull request #430 from MacosPorters/track-a/409-veh-clwb-crash-log
[M1-A2] Cover CLWB addressing and log unhandled guest exceptions
2026-11-26 18:01:49 +03:00
ates 0a2544cd51 Merge main and address review feedback on REX decoding, crash write isolation, and marker constant
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 18:01:41 +03:00
Ateş 0082d16b1e Merge pull request #424 from MacosPorters/track-b/411-xmem-core
[M1-B1] Enforce xmem title memory budgets
2026-11-26 17:19:59 +03:00
ates 4c7f1c5aff Merge main, sanitize console memory attributes in XMemVirtualAlloc, and zero larger stats tail
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 17:19:52 +03:00
Ateş d72350c854 Merge pull request #426 from MacosPorters/track-b/413-xcrdapi-dstorage
[M1-B3] Exercise asynchronous storage through XCRDAPI
2026-11-26 17:17:27 +03:00
ates 035c93e4d6 Merge main, guard closed handle in GetFileInformation, reject ambiguous requests, and expand tests
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 17:17:19 +03:00
Ateş b93fecf20a Merge pull request #422 from MacosPorters/track-e/418-offline-gdk-runtime
[M1-E1] Implement offline xgameruntime task queues and services
2026-11-26 17:13:59 +03:00
ates e79b0b9648 Merge branch 'main' into track-e/418-offline-gdk-runtime
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 17:13:52 +03:00
Ateş 1d94ca41e0 Merge pull request #435 from devil8blade/track-c/415-xg-xs-texture-address
[M1-C2] xg_xs.dll texture address computer MVP (XGCreateTextureComputer & XGSuggestSwizzleMode)
2026-11-26 17:04:31 +03:00
ates 044f2b628b Merge main and accept E_POINTER for null descriptor probe in test_integration_boot
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 17:04:09 +03:00
Ateş 856321f13d Merge pull request #436 from jelly013/track-d/417-d3dmetal-harness
[M1-D2] D3DMetal isolation harness via utmapp/d3dmetal-native
2026-11-26 17:02:13 +03:00
devil8blade f9ecde4e95 xg_xs: stage overlapping copies and split the size contract
Stage a source span before an in-place pitch change so later rows stay
intact. Report a D3D12 copy_end beside the aligned allocation span, and
look up mip offsets from a table built at creation.

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
2026-11-26 13:45:46 +00:00
Ateş baca93ce4e Merge pull request #434 from sahib453/track-c/414-d3d12-xs-proxy
[M1-C1] D3D12XboxCreateDevice logging COM proxy over host d3d12.dll
2026-11-26 16:16:33 +03:00
ates 8d7f856a83 Merge main, guard shaderless DXBC for D3DMetal 3.0, and log feature level
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 16:16:03 +03:00
jelly013 8fcc15596a [M1-D2] Fail on framework init errors, device removal and held pipes
Address review feedback on the D3DMetal harness failure handling:

- The probe reports `init_failed` (exit 3) when d3dmetal-native cannot
  initialize a framework that was found; the harness judges it FAIL.
  Exit 77 (SKIP) is now reserved for the CLI finding no framework.
- The fence wait checks for UINT64_MAX before treating the fence as
  complete and reports GetDeviceRemovedReason() as `device_removed`.
- Output collection shares the probe deadline: pipes are read in
  chunks over a channel, so a descendant that inherits stdout/stderr
  cannot keep the harness waiting past the timeout plus a short drain
  grace; such a run is judged incomplete.

The probe protocol is bumped to version 2.

Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com>
2026-11-26 14:13:55 +01:00
Ateş b8edfc18ba Merge pull request #428 from sahib453/track-f/420-integration-boot
[M1-F1] Add test_integration_boot synthetic boot fixture linking all 16 shims
2026-11-26 16:10:54 +03:00
ates 3f90a73deb Chain unhandled exception filter and clarify clwb form count
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 16:10:47 +03:00
jelly013 0b55f9fefe [M1-D2] Add D3DMetal isolation harness via d3dmetal-native
Add the opt-in d3dmetal-harness crate (bx-d3dmetal-harness) that runs a
user-supplied D3DMetal.framework outside CrossOver/Wine through
utmapp/d3dmetal-native, so D3D12 faults can be attributed to D3DMetal or
to Wine.

D3DMetal ships x86_64-only, so an x86_64 probe hosts it under Rosetta 2
while the arm64 harness locates the framework, checks Mach-O archs, runs
the probe with a cleared environment and timeout, and judges the readback
of an original SM 6.6 DXIL compute kernel against host-computed values.
Without a framework the harness reports SKIP; default builds and tests
need neither D3DMetal nor the probe.

Record d3dmetal-native, directx-native and DXC per file in the upstream
registry and component reuse matrix.

Closes #417

Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com>
2026-11-26 13:47:05 +01:00
devil8blade ce5a0a6e43 xg_xs: log unimplemented layouts and round BC footprints
Name TEXTURE1D, TEXTURE3D, and MSAA in the unimplemented log, and
include the SW_64KB mode in tiled vtable traces. Footprints now use
D3D12 block-rounded dimensions, and tiled CopyFromSubresource is tested.

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
2026-11-26 10:44:47 +00:00
devil8blade d7cd155924 xg_xs: add linear 2D texture address computer
Implement XGCreateTextureComputer and XGSuggestSwizzleMode for
linear RGBA8 and BC1 through BC7 layouts. RDNA 2 SW_64KB_S/D/R
modes return E_NOTIMPL and do not write addresses.

Closes #415

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
2026-11-26 10:32:22 +00:00
Ateş fadc89b023 Merge pull request #423 from devil8blade/track-d/416-dxbc-accc-fspx
[M1-D1] dxbc-accc FSPX section parser and C ABI bridge
2026-11-26 11:30:47 +03:00
ates c38be3e256 Merge branch 'main' into track-d/416-dxbc-accc-fspx
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 11:27:53 +03:00
ates 5e002c409f docs(agents): remove contributor clean-room rule
Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 11:14:13 +03:00
devil8blade 78a29fac05 Measure DXIL BitcodeOffset from DxilBitcodeHeader
BitcodeOffset is relative to the header at program byte 8. Offset 16
places the bitcode just after the 24-byte header, and offset 15 is
rejected.

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
2026-11-26 08:11:34 +00:00
devil8blade c70b951aab Reject a DXIL header whose bitcode size is zero
A DxilProgramHeader must declare a non-empty bitcode range that fits
in SizeInUint32 words, and that declared size only has to fit in the
chunk.

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
2026-11-26 08:10:24 +00:00