Intel host support (CLWB/CLZERO/MONITORX/SSE4a emulation) + GPU hang on NVIDIA at the language screen #85
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#85
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?
@tadymila on GitHub · 2026-11-24 00:21 UTC · original
Setup
1. Intel CPUs: missing Zen 2 instructions (patch attached)
The title faults with
0xC000001Don instructions Intel lacks. I added a vectored handler invictory-loader(cpucompat.rs, installed fromreport_crashes(), ahead of the crash reporter):CLWB m8CLFLUSHOPT(or DS:CLFLUSH)CLZEROclzero/add/cmp/jbloop runs in one goMONITORX/MWAITXPAUSE; NOPINSERTQ(SSE4a, imm form)jmpinto a near stub (shifts on rax/rcx, flags saved);EXTRQtooUnhandled illegal instructions are logged with their bytes. The INSERTQ/EXTRQ stubs were checked natively against a reference for every len/idx. With this, the title boots to the language screen at 30 fps on the i7-9700F.
2. NVIDIA: GPU hang (TDR) at the language screen
With
VICTORY_D3D12_DEBUG=1+VICTORY_D3D12_DRED=1(diag build):DXGI_ERROR_DEVICE_HUNG, list stopped at command 60 of 90 (op 4), commands 59..87 between barriers, no markersslow host submission ms=508..534compute 052a2316a03b9ba1,vertex 0602c2384acbb3b2/pixel a78d088fa55aa495,vertex 58d926085fca4999/pixel edc1cad8ffb79bc9,vertex dfafaf385b2f94e8/pixel 06295fb1d1aefb78TdrDelay=10, so it looks like a non-terminating loop rather than a slow shader. My guess is wave64-dependent code running with 32-lane waves on NVIDIA.Other warnings on NVIDIA:
host view heap capped at 1000000 ... count=1245184no host texture: 2560x1440format 86(B5G5R5A1) flags 5 (RT|UAV), andformat 115(B4G4R4A4) flags 1 (RT); these are unsupported RT/UAV formats on NVIDIA.VICTORY_D3D12_WARP=1) also fails:0x887A0005after ~35 s, before the language screen.Happy to run any test build.
@Marvisak on GitHub · 2026-11-25 01:46 UTC · original
Automated triage for the maintainers.
Thank you for the detailed report. Part 1 is now handled on
main: the loader's vectored handleremulate_amd_onlyincrates/victory-loader/src/crash.rsemulatesclzero(including the zeroing loop, seeclzero),monitorx/mwaitx,rdpru, SSE4ainsertq/extrq(sse4a) andclwb(including write-back loops,clwb_loop). The AMD-only set came with #10 (d348b9a) andclwbwith #45 (7d33c46, merged 2026-11-24 00:30 UTC, after this report). Could you try currentmainwithout your local handler and say whether any0xc000001dremains (crash reports now show the refused instruction's bytes)? The illegal-instruction crashes are tracked in #102.Part 2 (device hung on NVIDIA, wave64 suspected) belongs to the NVIDIA hang discussion in #71: on
main, wave64 compute programs that depend on the lane layout declareWaveSize(64)and are refused on 32-lane hosts. A note of the VIctory commit and the driver version would help when you rerun.Generated by Claude Code