[Help Wanted] UE5 / The Matrix Awakens (XSX) Bring-Up: XDAT/XBCH/FSSM Shader Lifting, HWRT/8GB+ GPU Testing & Remaining Runtime Gaps #37

Open
opened 2026-11-26 19:11:10 +00:00 by github-bot · 0 comments
Owner

@⁠californiaAlmonds on GitHub · 2026-11-23 11:42 UTC · original

Why I'm Asking for Help

I'm currently focused on Minecraft bring-up and main sprints, and I'm developing everything on a single Windows 10 laptop (NVIDIA GTX 1650 Ti, 4 GB VRAM, Turing TU117 — no hardware RT cores).

The Matrix Awakens (Frosty-XSX-Shipping.exe, package 1.20.1831.3754) is already booting cleanly past full UE5 initialization and into live PresentX on branch feat/ue5-matrix-awakens-imports (be560d8), so this is a great jumping-in point for contributors with desktop GPUs (RTX / RDNA2 / 8 GB+ VRAM) or interest in RDNA2 shaders, D3D12X, or GDK/Media Foundation shims.


What Is Already Live-Verified on feat/ue5-matrix-awakens-imports (be560d8)

  • Build & CTest: 0 MSVC /W4 warnings, 84/84 CTest passing (100%), 32 shim DLLs / 1,252 exports, synced with main (Sprint 15 Zero-Gaps) + Xbox D3D12/VFS/GameInput fixes.
  • Live The Matrix Awakens run (Win10 + GTX 1650 Ti 4 GB):
    • 0 missing static imports across all 7 newly unblocked UE5 DLLs (dxcompiler_xs, XCRDAPI, xg_xs, d3d12_xs, AcpHal, xmem, MFPlat) plus XAudio2_9, dstorage_xs, xgameruntime, and kernelx.
    • Runs 100 seconds crash-free (0 crashes, 0 DXGI_ERROR_DEVICE_REMOVED / DEVICE_HUNG).
    • Reaches TitleId: 7D3CD3FE (RETAIL), mounts IoStore .pak/.utoc, loads all 43,407 shader archive records (Global + Frosty), initializes XMA + XAudio2 live audio, completes FEngineLoop::Init(), loads /Game/Map/P_Construct_WP, initializes WorldPartition (253 cells) + MassTraffic, enters Match State: InProgress + Frame [1], and executes 3840x2160 4K PresentX.

Issues Found & Where Help Is Needed

1. Retail DXBC -> DXIL -> XDAT -> XBCH (zlib) -> FSSM RDNA2 Shader Unpacking & Lifting (Primary Blocker for Visible Pixels)

  • What we found: Cooked retail Xbox Series X shaders in The Matrix Awakens are wrapped in standard DXBC containers (SFI0, ISG1, OSG1, PSV0, RTS0, ILDN, HASH, DXIL), where the DXIL chunk payload contains XDAT -> XBCH (zlib-compressed) -> FSSM holding raw AMD RDNA2 ISA + stage metadata + entry-point name (e.g., ClearCS), rather than LLVM DXIL bitcode.
  • Current state: To keep the engine executing without driver crashes/TDRs, DeviceX (src/gpu/d3d12_xs/device_x.cpp) detects IsXboxXdatDxbcBlob and substitutes SM 5.0 stand-in PSOs (and CommandListX skips stand-in ExecuteIndirect/Dispatch/DispatchMesh/draws). As a result, the 4K PresentX frame is currently black until real shaders are lifted.
  • Help needed:
    • Add XDAT / XBCH (zlib) / FSSM container parsing in src/gpu/rdna2_xbox_container.cpp (extracting RDNA2 ISA words, register setup, root signature/SGPR bindings, and stage metadata).
    • Route extracted programs through OpenScarlett's existing RDNA2 IR -> HLSL/DXIL & SPIR-V lifter (src/gpu/rdna2_lifter.cpp, src/gpu/shader_cache.cpp) with persistent disk caching so UI/menu (BP_CountdownUI) and 3D scene shaders render real pixels.

2. Hardware Ray Tracing (Lumen / DXR) & 8 GB+ VRAM Live GPU Testing

  • What we found: On my 4 GB GTX 1650 Ti (RT=0), UE5 heavily spills D3D12_HEAP_TYPE_DEFAULT heaps to L0 system RAM and cannot run hardware ray tracing (BuildRaytracingAccelerationStructuresX / DeserializeStateObjectX currently use non-DXR software stubs).
  • Help needed:
    • Test feat/ue5-matrix-awakens-imports on RTX 20/30/40/50 or AMD RDNA2/RDNA3 (8 GB+ VRAM) GPUs and post logs (T:\Logs\Frosty.log + telemetry JSON).
    • Wire hardware DXR execution for retail ID3D12Device8 Slot 115 (DeserializeStateObjectX), ID3D12StateObjectXbox Slots 8–9 (GetPipelineReflectionX / GetReflectionBlobX), and ID3D12GraphicsCommandList6 Slot 131 (BuildRaytracingAccelerationStructuresX) when raytracing_tier >= 10.

3. D3D12 Debug Layer Break (0x0000087D) When OPENSCARLETT_D3D12_DEBUG=1

  • What we found: With OPENSCARLETT_D3D12_DEBUG=0, the game runs 100s cleanly, but enabling OPENSCARLETT_D3D12_DEBUG=1 hits an unhandled 0x0000087D exception inside D3D12SDKLayers called from FD3D12CommandListManager::ObtainCommandList+0x1BC (via FD3D12Viewport::Present / RHIEndFrame), even with ID3D12InfoQueue::SetBreakOnSeverity disabled on the host device.
  • Help needed: Capture the exact D3D12SDKLayers validation error causing 0x87D and fix the underlying D3D12 state/descriptor/command-list mismatch so debug-layer runs pass cleanly.

4. Remaining Minor Retail COM / GDK / Media Gaps

  • ScarlettRetailCmdList::Slot_67 (+0x218) (src/shims/d3d12_xs_shim.cpp): Called from FDynamicRHI::RHICreateShaderResourceViewFMask_RenderThread — currently hits RecordClUnimpl(67).
  • xgameruntime Game Save Provider (src/shims/xgameruntime_shim.cpp): QueryApiImpl requests CLSID/IID {704C3F58-E629-4CC2-B197-30511B996FE2}, causing LogGDKSaveGame: Could not get provider for user 0 - 0x80004002. Implementing/mapping this provider will enable saving FrostySaveData.
  • Startup Intro Movie (Electra / MFPlat): Verify the 21-second startup logo video plays cleanly through mfplat_xs.dll into BP_CountdownUI (Enter screen) once real shaders are lifted.
  • XMemSize / QueryTitlePhysicalPages (0x80070057): Investigate frequent E_INVALIDARG calls logged during DirectStorage Zlib decompression in veh_bringup.json telemetry.

How to Build & Reproduce Locally

git fetch origin
git checkout feat/ue5-matrix-awakens-imports
cmd /c build.cmd
.\build\openscarlett.exe run <path-to-matrix>\Mount --probe-unknown-imports

Diagnostic env vars available on this branch:

  • OPENSCARLETT_TRACE_RETAIL=1 — log unimplemented retail COM slots & device info
  • OPENSCARLETT_TRACE_D3D12_LOG=<path> — trace per-list D3D12 ops & DEVICE_REMOVED dumps
  • OPENSCARLETT_PRESENTX_CAPTURE_PNG=<path> — dump presented PresentX frames to PNG

License Reminder: OpenScarlett is strictly MIT-licensed. Any contributions must be clean-room MIT C++20 implementations (do not copy code from GPL or unlicensed reference projects).

Even just running the branch on your GPU and sharing Frosty.log / crash dumps or picking off one of the smaller items in #3/#4 would be a huge help while I keep pushing Minecraft and main forward!

**@⁠californiaAlmonds** on GitHub · 2026-11-23 11:42 UTC · [original](https://github.com/californiaAlmonds/OpenScarlett/issues/37) ## Why I'm Asking for Help I'm currently focused on **Minecraft bring-up and `main` sprints**, and I'm developing everything on a **single Windows 10 laptop (NVIDIA GTX 1650 Ti, 4 GB VRAM, Turing TU117 — no hardware RT cores)**. *The Matrix Awakens* (`Frosty-XSX-Shipping.exe`, package `1.20.1831.3754`) is already booting cleanly past full UE5 initialization and into live `PresentX` on branch **`feat/ue5-matrix-awakens-imports`** (`be560d8`), so this is a great jumping-in point for contributors with **desktop GPUs (RTX / RDNA2 / 8 GB+ VRAM)** or interest in **RDNA2 shaders, D3D12X, or GDK/Media Foundation shims**. --- ## What Is Already Live-Verified on `feat/ue5-matrix-awakens-imports` (`be560d8`) - **Build & CTest:** 0 MSVC `/W4` warnings, **84/84 CTest passing (100%)**, 32 shim DLLs / 1,252 exports, synced with `main` (Sprint 15 Zero-Gaps) + Xbox D3D12/VFS/GameInput fixes. - **Live *The Matrix Awakens* run (Win10 + GTX 1650 Ti 4 GB):** - **0 missing static imports** across all 7 newly unblocked UE5 DLLs (`dxcompiler_xs`, `XCRDAPI`, `xg_xs`, `d3d12_xs`, `AcpHal`, `xmem`, `MFPlat`) plus `XAudio2_9`, `dstorage_xs`, `xgameruntime`, and `kernelx`. - Runs **100 seconds crash-free** (`0` crashes, `0` `DXGI_ERROR_DEVICE_REMOVED` / `DEVICE_HUNG`). - Reaches `TitleId: 7D3CD3FE` (`RETAIL`), mounts IoStore `.pak/.utoc`, loads all **43,407** shader archive records (`Global` + `Frosty`), initializes **XMA + XAudio2** live audio, completes `FEngineLoop::Init()`, loads `/Game/Map/P_Construct_WP`, initializes **WorldPartition (253 cells)** + **MassTraffic**, enters **Match State: `InProgress`** + **Frame `[1]`**, and executes **`3840x2160` 4K `PresentX`**. --- ## Issues Found & Where Help Is Needed ### 1. Retail `DXBC -> DXIL -> XDAT -> XBCH (zlib) -> FSSM` RDNA2 Shader Unpacking & Lifting *(Primary Blocker for Visible Pixels)* - **What we found:** Cooked retail Xbox Series X shaders in *The Matrix Awakens* are wrapped in standard `DXBC` containers (`SFI0`, `ISG1`, `OSG1`, `PSV0`, `RTS0`, `ILDN`, `HASH`, `DXIL`), where the `DXIL` chunk payload contains **`XDAT` -> `XBCH` (zlib-compressed) -> `FSSM`** holding raw AMD RDNA2 ISA + stage metadata + entry-point name (e.g., `ClearCS`), rather than LLVM DXIL bitcode. - **Current state:** To keep the engine executing without driver crashes/TDRs, `DeviceX` (`src/gpu/d3d12_xs/device_x.cpp`) detects `IsXboxXdatDxbcBlob` and substitutes SM 5.0 stand-in PSOs (and `CommandListX` skips stand-in `ExecuteIndirect`/`Dispatch`/`DispatchMesh`/draws). As a result, the 4K `PresentX` frame is currently **black** until real shaders are lifted. - **Help needed:** - Add `XDAT` / `XBCH` (zlib) / `FSSM` container parsing in `src/gpu/rdna2_xbox_container.cpp` (extracting RDNA2 ISA words, register setup, root signature/SGPR bindings, and stage metadata). - Route extracted programs through OpenScarlett's existing RDNA2 IR -> HLSL/DXIL & SPIR-V lifter (`src/gpu/rdna2_lifter.cpp`, `src/gpu/shader_cache.cpp`) with persistent disk caching so UI/menu (`BP_CountdownUI`) and 3D scene shaders render real pixels. ### 2. Hardware Ray Tracing (Lumen / DXR) & 8 GB+ VRAM Live GPU Testing - **What we found:** On my 4 GB GTX 1650 Ti (`RT=0`), UE5 heavily spills `D3D12_HEAP_TYPE_DEFAULT` heaps to L0 system RAM and cannot run hardware ray tracing (`BuildRaytracingAccelerationStructuresX` / `DeserializeStateObjectX` currently use non-DXR software stubs). - **Help needed:** - Test `feat/ue5-matrix-awakens-imports` on **RTX 20/30/40/50 or AMD RDNA2/RDNA3 (8 GB+ VRAM)** GPUs and post logs (`T:\Logs\Frosty.log` + telemetry JSON). - Wire hardware DXR execution for retail `ID3D12Device8` Slot 115 (`DeserializeStateObjectX`), `ID3D12StateObjectXbox` Slots 8–9 (`GetPipelineReflectionX` / `GetReflectionBlobX`), and `ID3D12GraphicsCommandList6` Slot 131 (`BuildRaytracingAccelerationStructuresX`) when `raytracing_tier >= 10`. ### 3. D3D12 Debug Layer Break (`0x0000087D`) When `OPENSCARLETT_D3D12_DEBUG=1` - **What we found:** With `OPENSCARLETT_D3D12_DEBUG=0`, the game runs 100s cleanly, but enabling `OPENSCARLETT_D3D12_DEBUG=1` hits an unhandled `0x0000087D` exception inside `D3D12SDKLayers` called from `FD3D12CommandListManager::ObtainCommandList+0x1BC` (via `FD3D12Viewport::Present` / `RHIEndFrame`), even with `ID3D12InfoQueue::SetBreakOnSeverity` disabled on the host device. - **Help needed:** Capture the exact `D3D12SDKLayers` validation error causing `0x87D` and fix the underlying D3D12 state/descriptor/command-list mismatch so debug-layer runs pass cleanly. ### 4. Remaining Minor Retail COM / GDK / Media Gaps - **`ScarlettRetailCmdList::Slot_67 (+0x218)`** (`src/shims/d3d12_xs_shim.cpp`): Called from `FDynamicRHI::RHICreateShaderResourceViewFMask_RenderThread` — currently hits `RecordClUnimpl(67)`. - **`xgameruntime` Game Save Provider** (`src/shims/xgameruntime_shim.cpp`): `QueryApiImpl` requests CLSID/IID `{704C3F58-E629-4CC2-B197-30511B996FE2}`, causing `LogGDKSaveGame: Could not get provider for user 0 - 0x80004002`. Implementing/mapping this provider will enable saving `FrostySaveData`. - **Startup Intro Movie (`Electra` / `MFPlat`):** Verify the 21-second startup logo video plays cleanly through `mfplat_xs.dll` into `BP_CountdownUI` (**Enter** screen) once real shaders are lifted. - **`XMemSize` / `QueryTitlePhysicalPages` (`0x80070057`):** Investigate frequent `E_INVALIDARG` calls logged during DirectStorage Zlib decompression in `veh_bringup.json` telemetry. --- ## How to Build & Reproduce Locally ```powershell git fetch origin git checkout feat/ue5-matrix-awakens-imports cmd /c build.cmd .\build\openscarlett.exe run <path-to-matrix>\Mount --probe-unknown-imports ``` Diagnostic env vars available on this branch: - `OPENSCARLETT_TRACE_RETAIL=1` — log unimplemented retail COM slots & device info - `OPENSCARLETT_TRACE_D3D12_LOG=<path>` — trace per-list D3D12 ops & `DEVICE_REMOVED` dumps - `OPENSCARLETT_PRESENTX_CAPTURE_PNG=<path>` — dump presented `PresentX` frames to PNG > **License Reminder:** OpenScarlett is strictly **MIT-licensed**. Any contributions must be clean-room MIT C++20 implementations (do not copy code from GPL or unlicensed reference projects). Even just running the branch on your GPU and sharing `Frosty.log` / crash dumps or picking off one of the smaller items in #3/#4 would be a huge help while I keep pushing Minecraft and `main` forward!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:11:10 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.