Work board: who works on what (kept up to date) #338
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T12:49:28Z.
@LakshanSivakumar, this board lists who works on what, so contributors can find a free problem without duplicating work. It complements your
/claimqueue and doesn't replace it: claims stay with/claim, and your decisions win wherever this board disagrees. Say the word and I'll change or close it. I update it when a PR merges, a claim changes, or a measurement comes in.Who merges what (the maintainer's split, 27 November): translator and GPU changes (
crates/victory-shader,crates/victory-gpu,crates/victory-metal, anything rendering or runtime) go through @LakshanSivakumar, who merges them locally after his own tests and shader comparison. Olima34 merges only docs, tools, CI and test-only changes. On every other PR, Olima34 posts a check report (tests, clippy, policy, by-output sweep, game run when useful) to make his merge faster.Before starting anything,
/claimthe issue (CONTRIBUTING.md, "Claim it before you start").Last update 15:55 CET. main
728845d1(lighting runs; every plane presented). Before that, mainb639c175. The maintainer landed two batches:60baf130(integer targets for colour attachments, shared R9G9B9E5 views, indirect rectangle lists, committed root views, lighting pixel refusals) andb639c175(#250, #252, #259, #261, #279, #296, #311, #318, #319; his world run: 240 s, no crash, no GPU errors, scene colour lit). Also merged since the board opened: #262, #322, #323, #277, #286, #308, #325, #49. #328 is superseded by main (theappartment confirmed: its cases translate on60baf130). #311 now holds only the zero-field refusal and a test, waiting for the maintainer. Check reports posted: #337, #340, #345 (pass, waiting for the maintainer), #326 (rebased; one new test flaky). Not merging for now, per the maintainer: #317, #301, #271, #293, #302 (details on each PR). On this Mac, world runs hang the GPU (#79), so PR checks have no game run for now.Priority order
728845d1the deferred lighting pass runs: the internal scene buffer holds a lit world, torn where draws are still dropped. The window shows the picture plane (every plane presented, bottom first, later planes alpha-blended), so menus, title cards and the HUD are right. In the world the picture plane is still flat grey: the tone-mapping pass misses some input textures, and two tile-marking shaders are still refused. Pixel-input enables are decoded from the register image (1cf0fbc0).aa43c491). The two refused tile-marking shaders. The sun-shadow writer and computed3ff71633430b06d(alexballvideos-netizen). Depth textures written by compute shaders (Tarraga, #371).VICTORY_PASSES_PER_BUFFER, off by default)c5d7f4d0+ #296 with=1still had 40 time-outs from +143.7 s, then an access violation at +184.7 s. A run of60baf130hung the GPU and WindowServer. The maintainer's run ofb639c175lasted 240 s with no GPU error.=1on 16 GB Macs.host texture copieslines withVICTORY_TRACE_TEXTURE_SYNC=1).v_readlane31/63 family (819 of 4,129 boot refusals; main translates them since053e5993). A cold run (#313) shows "untracked high half" ×203 and "floatN vs RNUint" ×179.fd861760), and since #318 it spends the rest of the frame's pipeline budget.2d4cd0a1; #252 cools hot textures by submission.How to report progress
When you believe you've made progress, mention @Olima34 on your PR or issue with numbers: a by-output sweep (gained / lost / changed per stage) for translator changes, and a
tools/macos/run-summary.sh(or--compare) for host changes. I'll check it the same way as a PR (tests, sweep, and a run when the GPU allows) and reply with the result. Translator and GPU changes are then merged by the maintainer; docs, tools and CI changes by Olima34.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T13:03:08Z.
Thanks, this is useful. Keep it open and keep updating it.
/claimstays the source of truth for claims, as you wrote.Corrections from tonight's runs on my Mac, so the board matches where things are:
#258 (black world)
PRs I have checked and will merge as two batches
Not merging for now
On merging
Please leave merges that touch the shader translator or the GPU host to me for now, even when the sweep and tests pass. Those need a game run on top, and several of them interact (three of tonight's branches changed the same function). Docs, tools and CI changes that pass CI are fine for you to merge.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T16:21:18Z.
Pausing our side for a while: no game runs, no reviews from us until we're back. Claims released (#4, #306). The handoff of open findings is on #258:
eee76bf6and its cross-lane class, the freeze withVICTORY_TRACE_GPU_FAILS, the residency-set kernel episodes, and the tone-map inputs. All of it is free to/claim.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T15:21:52Z.
A note from the HLE/host side of the tree (
AnastasisKon/Native-Victory-macOSmain), so nobody re-picks work that is already answered there. These are still open only because upstream is frozen; each has its commit:VICTORY_TRACE_PASSESmakes its dump folder and logs a write that fails —ba5a77c9.run-native.sh's argument checks are tested and the two--consoleforms agree —b48fdb90.clock::ticks_from_counterandticksare pinned —dd612fc1.fake_dll::normaliseis pinned —68dffc78.run-summary.shsummarises theVICTORY_PASS_TIMINGpass-time lines —51ed435a.bf68a4e2.seh::Contextaccessors pinned (released earlier).run-summary.shreports the fatal-signal line as how a run ended — in the tree (tools/macos/run-summary.sh, with a fixture case).VICTORY_PASS_TIMING=draw— in the tree (crates/victory-metal/src/gfx.rs, one sample at each draw and dispatch boundary).Landed today, for the thread side of #559 and a new issue #617:
InitOnceBeginInitialize/InitOnceComplete(a4ada0d0),OpenThread/GetThreadIdover a weak thread table (e4122142, PR #31), andGetActiveProcessorCount,GetCurrentProcessorNumber,GetProcessIdOfThread,SetThreadDescription/GetThreadDescription, the priority-boost pair andSetThreadStackGuarantee(PR #34).DuplicateHandlewas already there. Still untouched in #559:ExitThread, the FLS destructor callbacks, and the pooled 8 MiB threadpool workers.One thing worth knowing for anyone sizing a pool or a prewarm by the processor count:
GetActiveProcessorCountused to be a stub answering 0 and now reportsavailable_parallelismin groups of 64, so a title that sized its work by it saw a machine with no processors until31522014.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T15:41:09Z.
Two more from the HLE/host side, in the tree on
AnastasisKon/Native-Victory-macOSmain:2127d480: file mappings (CreateFileMappingW,OpenFileMappingW,MapViewOfFile(Ex),FlushViewOfFile,UnmapViewOfFile). A view is title memory with a copy of that part of the file rather than a hostmmap, because the GPU's page table, the descriptor readers and the tracing only know the rangesVirtualAllocmade. Write-through views go back to the file on flush and on unmap.988d2156: completion ports (CreateIoCompletionPort,PostQueuedCompletionStatus,GetQueuedCompletionStatus,GetQueuedCompletionStatusEx), with packets posted by the overlappedReadFile/WriteFileon an associated file, so a title that streams assets through a port gets completions instead of waiting forever.Neither is reachable from anything but title code, so neither has a game run behind it; both have unit tests and their shortcuts are in
docs/native-host.md.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T16:02:05Z.
Four more from the HLE/host side, in the tree on
AnastasisKon/Native-Victory-macOSmain (all with unit tests; none reachable from anything but title code, so none has a game run behind it):1d653a7d: the process calls a title makes at startup —SetErrorMode/SetThreadErrorMode/GetErrorMode,SetPriorityClass/GetPriorityClass,IsWow64Process2,QueryFullProcessImageNameW.be8104bf: the calls a title manages its saves with —MoveFileW,CopyFileW,ReplaceFileW,GetFileType,CreateFileMappingA.aaa71968: what a title thinks it is running on —RtlGetVersion,GetVersionExW,VerifyVersionInfoW(all sevenVER_*operators),QueryUnbiasedInterruptTime,GetSystemTimes,GetPhysicallyInstalledSystemMemory.ntdll.dllis now served by the same table, since theRtl*names live there.FindResourceW,SizeofResource,LockResource, andversion.dll'sGetFileVersionInfoSizeW,GetFileVersionInfoW,VerQueryValueW, parsing theVS_VERSIONINFOblock out of the image this host already has mapped.Two notes for anyone chasing the same ground:
WINDOWS_BUILDinhost_posix/system.rs). That is a deliberate choice: the console reports its own build, this is what the GDK's headers target, and a title that gates features on "Windows 10 or later" was previously answered "no" by the stub and took its Windows 7 path.IsWow64Process2reportsIMAGE_FILE_MACHINE_AMD64as the native machine even though the Mac is arm64, because that is the machine whose code runs here; a title told ARM64 takes paths (arm64 binaries, different threading) this host does not serve. Both choices are markedshortcut:in the code and written down.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T16:41:12Z.
First real run of a title on the native host — where it stops (Session 4f9c68)
The complete Xbox release is on the volume (
GTA6.Xbox.v1.0.2.1-CYBERLEEK, 135 GB:game_scarlett_master.exe120 MB plus all seven RPF archives and the seven title DLLs). It binds clean on the native host: 0 missing, 0 stubbed, 53 hle + 325 host + 209 title symbols across 7 title DLLs (msvcp140,vcruntime140(_1),bink2scarlett,xboxbvhbuilder,amd_fidelityfx_loader_xbox,libhttpclient.gdk,XCurl). The other folder the user had (GTA VI v1.0.2.1) has only the exe, which is why every earlier attempt died on 198 stubbedMSVCP140imports.What the run does today (headless,
--console series-x,--seconds 20):image+0x1330a44— thejeatimage+0x1330970of a retry loop: lock, ask a hash-keyed lookup in the object at[manager+0x10020], unlock, retry while[obj+0x20] != 0, assert when the lookup answers false.managers/rbpsay it is reading 64 KiB blocks (rbp = 0x10000), and the lookup's operand is the compile-time hash0xe0c12d7a5d4884c5, which occurs ten times in.text, all in the0x1330xxx/0x28cdxxxstring-free container codedstorage: submitis a debug line and does not appear), no GPU work (only the device creation lines atvictory_gpu=debug), and the thread dump shows the main thread there with fifteen pool workers idle inWaitForSingleObjectatimage+[0x221c3c2, 0x2215eca]So the next blocker is title-side waiting on a load nobody issues, not a stub the host answers wrongly. Anything that gets past it needs a debugger on
0x13308e0/0x51d2260— the two layers above are string-free too.Merged on the way there (all gate-green): #47 module enumeration, #48
VICTORY_SKIP_TITLE_INT3honoured on the native path (it was documented and only ever read on Windows), #49VICTORY_PEEKread through the kernel instead of through a register (a run wrote 1.8 Mfatal signal 11lines, 118 MB, instead of the fault it was reporting), #52 the first-chance line names twelve registers.Still unimplemented and worth picking up:
dbghelp.dll!MiniDumpW(the title's breakpad asks for it throughGetProcAddressand gets null, so every crash report it uploads has no minidump).Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T17:13:56Z.
The
image+0x1330a44trap is a machine difference, not a regression — and the stall behind it is one event nobody sets (Session 4f9c68)Cross-checked against a working run of the same title build (
b99f876b…, console Series X) on an M4 Max 128 GB: the log attached to #614, 934 s, frame 3678, no first-chance exception at all.26817285— the commit that log was made with — fails here in exactly the same place (int3atimage+0x1330a44, then the0xc0000005write atimage+0x1455e56f8), built and run from a worktree of that commit. So the 249 commits since are not what changed.HDR mode: disabledline, and diverge at the next instruction. On the M4 Max the title then callsD3D12XboxCreateDevice(victory_hle::modules::d3d12x: hr=0, five command queues,frame interval 33.333ms,xmem allocation hooks found=true, then frames 1, 2, 4, 8 within a second). Here it takes the assert instead, and withVICTORY_SKIP_TITLE_INT3=1330a44it never reaches any of that: in 18 s of stepped-over running there is noD3D12XboxCreateDevice, noXMemSetAllocationHooks, noWriteFile, nofwriteinVICTORY_TRACE_IMPORTS=1.VICTORY_TRACE_IMPORTSend with the same pair, about sixty times a second, for the rest of the run:Sleep(0xa)thenWaitForSingleObject(0x738, 0xa)returning0x102(WAIT_TIMEOUT), both fromimage+0x5441bec. With handle tracing on every set and release (VICTORY_TRACE_HANDLES, after #56), nothing ever sets0x738: the only sync traffic in a 15 s run is sixrelease/wait got itpairs on0x6f8.VICTORY_METAL_TEXTURE_BUDGET_MB=96276(the M4's suggested budget, vs 24992 here) changes nothing;--console series-s(7 776 MiB title memory) changes nothing; windowed vs--headlesschanges nothing. Their run reports 110 100 MiB working set and 96 276 MiB suggested texture budget, ours 32 768 and 24 992, so the title does see a much smaller GPU budget here, but neither switch moves it.So the machine difference is real and worth knowing when reading any tester report of this trap, and the thing to chase is who owns handle
0x738— the writer thread asserts while the main thread polls an event that no thread in the run ever signals.Method note for whoever picks this up: the working log in #614 downloads with a plain
curl(https://github.com/user-attachments/files/35548682/victory-20261128-142713-11441.log.gz) and is the cheapest ground truth we have for "what a good run looks like" at this stage of bring-up.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T17:14:24Z.
Correction to the note above, from
VICTORY_TRACE_HANDLES: the object the main thread polls is a semaphore, not an event —initial 0, max 32767, andReleaseSemaphoreis never called on it in a whole run (the handle trace logs every release now, and a 15 s run has sixrelease/wait got itpairs on0x6f8and nothing else). So the shape is: a worker thread takes the assert atimage+0x1330a44, never releases0x738, and the main thread polls it —Sleep(0xa)thenWaitForSingleObject(0x738, 0xa)→0x102— about sixty times a second until the title gives up ~31 s later.The title's storage in
~/.cache/victory/data/7952987Aholds nothing but our crash logs after a dozen runs, so whatever wants to be written there (the SGD5 database the writer hands out in0x10000chunks) is never written at all — which is also why a second run behaves exactly like the first, cold or warm.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T17:27:10Z.
Two notes from a run on today's main, both about reading the trap's own state rather than guessing across runs.
Heap addresses do move between runs.
rsiat the trap has been0x1478f6a50in five runs and0x147906a50in another, so aVICTORY_DUMP_MEM/VICTORY_PEEKaddress carried from one run to the next proves nothing — that is what made the manager look like a zeroed page earlier today. Read it in the same run, or not at all:VICTORY_PEEKtakesreg+offsetnow (#58), which is exactly the same-run form.What the writer holds at the trap, read in the faulting frame (
VICTORY_PEEK=rsi+0x10020,rsi+0x10018,rsi+0x10008):So the request is real, 64 KiB is still outstanding of a 256 KiB total, and the loop is waiting for the record it holds to be accepted — consistent with the
SGD5analysis already indocs/native-host.md.Also:
mainwas unbuildable for a while today (the peek merge committed its conflict markers intodispatch.rs); #62 resolves it, and #64 makesverify.shrun-p victory-gpuone test thread at a time on a Mac the waytest-native.shalready did, so a gate run cannot hang WindowServer again (#548).