feat(middleware): 100% parity on Bink2/FSR (100% parity across all 11 active subsystems) #61

Open
github-bot wants to merge 9 commits from github-bot/gh-61 into main AGit
Owner

@⁠bulkynomad on GitHub · 2026-11-26 08:12 UTC · original
bulkynomad:feat/subsystem-parity-wave5 → main · +1463 −277 · 33 files · 9 commits · open

Achieves 100% export parity on Middleware (Bink2Scarlett / AMD FidelityFX), bringing all 11 active offline subsystems in ScarlettX to 100% coverage:

Milestone Summary

  • Middleware (Bink2 / FSR) (34/34, 100%): Added 12 missing Bink2 exports (\BinkSetSoundTrack, \BinkSetVideoOnOff, \BinkSetFrameRate, \BinkGetFrameRate, \BinkGetRects, \BinkGetRealtime, \BinkGetTrackType, \BinkService, \BinkSetMixBins, \BinkSetMixBinVolumes, \BinkSetMemory, \BinkOpenMiles).
  • All 11 Active Offline Subsystems Now at 100% Parity:
    • \d3d12_xs → PC D3D12 & PSOs\ (46/46, 100%)
    • \Audio (XAudio2 / AcpHal)\ (42/42, 100%)
    • \Networking (HTTP / XCurl)\ (40/40, 100%)
    • \Middleware (Bink2 / FSR)\ (34/34, 100%)
    • \XGameSave (persistent)\ (30/30, 100%)
    • \DirectStorage & XVD\ (24/24, 100%)
    • \XTaskQueue & XAsync\ (24/24, 100%)
    • \XUser & Identity\ (24/24, 100%)
    • \XSystem & Runtime\ (18/18, 100%)
    • \Input (GameInput)\ (16/16, 100%)
    • \XMem & Threading\ (16/16, 100%)
    • \DXR / XboxBvhBuilder\ (14/14, 100%)
    • \PE64 Loader & Auto-Stubs\ (6/6, 100%)
  • Total Tracked Exports: Increased to 322.
  • Overall Emulator Status: 79.1% (334 / 422 functions).
  • CTest Pass Rate: 26/26 tests passing (100%).
**@⁠bulkynomad** on GitHub · 2026-11-26 08:12 UTC · [original](https://github.com/Freminet/ScarlettX/pull/61) `bulkynomad:feat/subsystem-parity-wave5` → `main` · +1463 −277 · 33 files · 9 commits · open Achieves 100% export parity on Middleware (Bink2Scarlett / AMD FidelityFX), bringing all 11 active offline subsystems in ScarlettX to 100% coverage: ### Milestone Summary - **Middleware (Bink2 / FSR)** (34/34, 100%): Added 12 missing Bink2 exports (\BinkSetSoundTrack\, \BinkSetVideoOnOff\, \BinkSetFrameRate\, \BinkGetFrameRate\, \BinkGetRects\, \BinkGetRealtime\, \BinkGetTrackType\, \BinkService\, \BinkSetMixBins\, \BinkSetMixBinVolumes\, \BinkSetMemory\, \BinkOpenMiles\). - **All 11 Active Offline Subsystems Now at 100% Parity**: - \d3d12_xs → PC D3D12 & PSOs\ (46/46, 100%) - \Audio (XAudio2 / AcpHal)\ (42/42, 100%) - \Networking (HTTP / XCurl)\ (40/40, 100%) - \Middleware (Bink2 / FSR)\ (34/34, 100%) - \XGameSave (persistent)\ (30/30, 100%) - \DirectStorage & XVD\ (24/24, 100%) - \XTaskQueue & XAsync\ (24/24, 100%) - \XUser & Identity\ (24/24, 100%) - \XSystem & Runtime\ (18/18, 100%) - \Input (GameInput)\ (16/16, 100%) - \XMem & Threading\ (16/16, 100%) - \DXR / XboxBvhBuilder\ (14/14, 100%) - \PE64 Loader & Auto-Stubs\ (6/6, 100%) - **Total Tracked Exports**: Increased to 322. - **Overall Emulator Status**: 79.1% (334 / 422 functions). - **CTest Pass Rate**: 26/26 tests passing (100%).
- Add XUserGetTokenAndSignatureOptions, XUserGetTokenAndSignatureHttpHeader, and XUserGetTokenAndSignatureData to xgameruntime_abi.h
- Implement XUserGetTokenAndSignatureAsync with deterministic synthetic offline token and signature payload
- Implement XUserGetTokenAndSignatureResultSize and XUserGetTokenAndSignatureResult with buffer size validation and HLE state lifecycle management
- Bind slots 23, 24, and 25 in MakeUserVtbl for {01ACD177}
- Add ABI verification in test_xgameruntime_abi and QueryApiImpl slot verification in test_query_api_impl
- Update status generator and documentation
- Implement XboxID3D12GraphicsCommandList::FlushPipelineX at slot 67 in BuildCmdListVtable().
- Due to the +2 slot shift after slot 60 in the v4 SDK (version 0x20004), BuildCmdListVtableV4() automatically relocates FlushPipelineX to slot 69 while keeping slot 67 as E_NOTIMPL.
- Extend test_d3d12_list_layout to verify FlushPipelineX slot resolution across both SDK layout versions (0x20001 and 0x20004).
- Update status dashboard and documentation metrics.
- Integrated PR #54 (XUserGetTokenAndSignatureAsync, result query APIs, ABI tests).
- Integrated PR #55 (CmdList slot 67 FlushPipelineX, vtable layout test updates).
- Synchronized status metrics and dashboard (272 exports, 26/26 tests passing).
- Implement IDStorageQueueX::EnqueueSignal (slot 5) in kQueueVtbl, allowing direct fence signaling upon request batch completion with COM ref-counting.
- Implement IDStorageQueueX::CancelRequestsWithTag (slot 7) in kQueueVtbl, filtering and marking matching queued/submitted requests with E_ABORT (0x80004004).
- Add MockFence and comprehensive unit test coverage in tests/test_dstorage_guest.cpp verifying both signal propagation and tag-based request cancellation.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:57:14 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/61/head:github-bot/gh-61'
git switch 'github-bot/gh-61'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-61'
git switch 'github-bot/gh-61'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-61'
git switch 'github-bot/gh-61'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-61'
git switch 'main'
git merge --squash 'github-bot/gh-61'
git switch 'main'
git merge --ff-only 'github-bot/gh-61'
git switch 'main'
git merge 'github-bot/gh-61'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.