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>
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>
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>
- 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>
- 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>
- 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>
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>
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>
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>
d3d12_xs.dll (M1-C1, #414) now creates a device through the host
D3D12CreateDevice and returns a proxy covering ID3D12Device through
ID3D12Device10, ID3D12CommandQueue, ID3D12CommandAllocator and
ID3D12GraphicsCommandList through 7 (the levels the mingw-w64 d3d12.h
declares). Child objects are returned as proxies and translated back
for the host; pipeline-state creation logs shader container metadata;
unsupported interface levels and slots past the public vtable log via
BX_VTABLE_STUB_LOG. Pass-through methods are generated by
shims/d3d12_xs/tools/gen_proxy.py. Adds tests/conformance/test_d3d12_xs.
Signed-off-by: sahib453 <sahibsingh4533@gmail.com>
Rebases onto origin/main and retires the paused in-tree native-first workspace, legacy scripts, legacy CI, and native-only docs per ADR 0006 (preserving full history permanently at Git tag native-first-final).
Addresses all maintainer review findings on PR #406:
- Isolate CrossOver/Wine child process environment in bx-cli (env_clear + minimal allowlist + opt-in --inherit-env, with unit tests)
- Replace naive objdump grep in scripts/build-shims.sh with strict PE Export Directory verification (exact names, ordinals, forwarders, 0 extra exports, 0 forbidden MinGW imports across all 16 DLLs / 102 exports)
- Restore global * @MacosPorters/maintainers fallback in .github/CODEOWNERS alongside per-track rules
- Restore independent-verification, claims/evidence-class, provenance-first, and contributor clean-room protections in AGENTS.md
- Unify docs/roadmap.md, CONTRIBUTING.md, README.md, docs/README.md, THIRD_PARTY_NOTICES.md, and CHANGELOG.md around Milestones M0-M6 and ADR 0006
Signed-off-by: ates <ahmetrizaates@hotmail.com>