GTA VI 1.0.2.1 Scarlett: Wine bring-up notes #293
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator#293
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@gringoestrangeiro on GitHub · 2026-11-23 16:25 UTC · original
Bring-up notes for a GTA VI 1.0.2.1 Scarlett dump under Wine 11.11 (staging, Linux), with this repo's compat DLLs cross-compiled for
x86_64-pc-windows-gnuand vkd3d-proton 3.1.0 providing D3D12. The GNU target is not officially supported (see #126), so treat timing and FMA-sensitive results with suspicion; the runtime path itself has been usable for bring-up. No game files, assets, or binaries are included.Run state
With local, uncommitted patches for the two IIDs below, the run reaches:
"Americas"window (1932x1092 clamped to 1920x1080) and enters the renderer.D3D12XboxCreateDevicereturnsS_OK; the host vkd3d-proton device is wrapped (SM 6.8 reported).CreateCommandQueueXsucceeds for one DIRECT queue and four type-2 queues.DStorageGetFactoryreturns a factory and the title opens its archives.Unhandled page fault on execute access ... at 0000000000000000, before any PSO creation orshader_xlatcompile is logged. That is the next blocker.On current
main, bothDStorageGetFactoryandCreateCommandListXfail earlier withE_NOINTERFACE.Host-side shims needed
These live outside the repo today; the current setup assumes the Microsoft GDK runtime and a PC
iphlpapiare available.xgameruntime.dll— Wine has no GDK runtime, andcompat_common::gdkpatches a runtime that is already loaded rather than providing one. A minimalcdylibbuilt againstcompat-commonis enough:InitializeApiImpl,InitializeApiImplEx,InitializeApiImplEx2,XGameRuntimeInitializecallcompat_common::gdk::install()and return 0.QueryApiImpl(clsid, iid, out)callscompat_common::gdk::query_api_impl(...).UninitializeApiImpl,XGameRuntimeUninitialize,XErrorReportreturn 0.Once loaded, the GDK import hook routes
GetProcAddress(xgameruntime!QueryApiImpl)to the emulated dispatcher; XAsync/XUser/XNetworking/XDisplay all resolve. A title that loadsxgameruntime.dllby name cannot start on Wine without such a stub. Is a first-class compat crate for this wanted?IPHLPAPI.dll— the title importsGetNetworkConnectivityHint, which Wine 11.11's builtin does not export. A one-export DLL that fillsNL_NETWORK_CONNECTIVITY_HINT(InternetAccess, fixed cost, no approaching/over/roaming flags) gets past the loader. Long term this probably belongs in a compat crate, not as a replacement DLL that hides every otheriphlpapiexport.GameInput.dll— Microsoft'sGameInput.dllfrom theMicrosoft.GameInput4.1.314 NuGet package (GameInputRedist.dllrenamed). The repo's gamepad hook then wraps the realGameInputCreateandRegisterDeviceCallbackworks; no code change needed.dxcompiler.dll+dxil.dll—tombox_xshader::dxc::available()requires both and looks in%TOMBOX_DXC_DIR%, the title executable's directory, thenC:\Program Files (x86)\Windows Kits\10\bin\<newest>\x64. Wine has no Windows SDK install, so without them any SM 6.x translation is refused with:shader needs profile ...; FXC compiles only shader model 5 and dxcompiler.dll/dxil.dll are not available.Dropping the Windows SDK /
Microsoft.Direct3D.DXCpair beside the title satisfies the check; both DLLs load and are import-patched byos_host. The latest run did not reach a shader compile, so translation is still untested.1.
CreateCommandListXrejects the Xbox base command-list IIDThe title passes
c3827890-4024-474c-98cf-645b51dc4874to device slot 73. That GUID sharesd2/d3/d4with the Xbox list v5 IID already incmdlist_x.rs:device_wrap.rs::create_command_list_xonly rewrites the DMA IID; every other IID is forwarded unchanged to PCCreateCommandList(slot 12), which does not know the Xbox GUID and returnsE_NOINTERFACE.Proposed fix:
IID_XBOX_GRAPHICS_COMMAND_LIST_BASEand map it toIID_PC_GRAPHICS_COMMAND_LISTwhen calling the real slot 12 (same shape as the existing DMA path).cmdlist_x.rs::query_interface_x: translate to the PC base IID for the real QI, then return the existing shim, as the PC-list branch already does. Without this, a titleQueryInterface(base)on the returned list still getsE_NOINTERFACE.create_command_list_xdescribes the params struct as{NodeMask@0, _@4, Type@8, _@0xC}, but the code reads{Type@0, _@4, NodeMask@8, _@0xC}. The log showstype=0(DIRECT) andnodeMask=1, so the code is right and the comment is stale.With a local patch doing the create-side mapping, slot 73 returns
S_OKand the shim is installed. I have not sent this as a PR because it needs the QI half and a title-side check beyond creation.2.
DStorageGetFactoryrejects the title'sIDStorageFactoryXIIDThe title asks for
62959d11-d45f-4884-a0a3-f7862ea243ae.xcrdapiaccepts onlyfb3b54ac-bf82-463a-b777-73195837864d(plusIUnknown), soDStorageGetFactoryreturnsE_NOINTERFACEand no factory is handed out.A second factory IID is the smallest fix:
IID_FACTORY_X_V2incrates/compat/xcrdapi/src/abi.rs.factory_qialongsideIID_FACTORY_X.DStorageGetFactory(IID_FACTORY_X)test.The local alias returns
S_OKfromDStorageGetFactory, after which the title callsSetStagingBufferSize/OpenFile. I am not claiming the alias is verified beyond that: it is not tested against a console oracle, and the rest of the DStorage path is unverified. If the project prefers, I can send this as a one-change PR with apendingnote inexports.txt.Related
@gringoestrangeiro on GitHub · 2026-11-23 16:40 UTC · original
Update after more bring-up: the title now opens its "Americas" window and reaches its own crash report at System Init / Frame 0 (
Version: 930.048.020-vb_sub_story, TitleID7952987a, Wanted Level 0). It then faults in vkd3d-proton (d3d12core+0x3F4F7, write0x4D0) because the console display/swapchain init still fails.The loader/IID gaps found since the first report are in PR #296:
c3827890-...mapped to PC v5IDStorageFactoryXIID62959d11-...accepted byxcrdapiThe remaining blocker is the console display/swapchain path, not these IIDs.
@NinosTech on GitHub · 2026-11-24 09:14 UTC · original
Wine comparison for the first story transition
A patched XCL run on GE-Proton11-1 and an RTX 5060 Ti gives a later comparison point for this Wine thread. Original setup accepted DualSense input, the intro rendered and the first story prestream began. At least six seconds of game audio continued after fade while 198 consecutive sampled frames had no visible story image. Limiting simultaneous large compute pipeline builds from two to one still left a host D3D12 failure. This is an XCL result. It does not establish a cause for the earlier TomBox swapchain issue.
Full test record and revisions.