Linux/Proton, RTX 5070 Laptop (8 GB): GPU hang (Xid 109 CTX SWITCH TIMEOUT) 4–10 min into the world, every run; raise helper fails with current DXC #2769

Open
opened 2026-11-29 17:06:42 +00:00 by Tadzi00 · 6 comments
Tadzi00 commented 2026-11-29 17:06:42 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tadzi00 on 2026-11-29T17:06:42Z.


Possibly related: #2472 (Linux/Proton, RTX 3080, same release and Proton, device lost after 6–14 minutes; Xid 31 there, with Xid 109 a few minutes before it in two runs). Here it is Xid 109 every time, once Xid 13, and no Xid 31.

bug-report-logs.zip

System

Release v2026.11.29.01 (victory.exe SHA-256 0d3dae51…ed67dffd, matches the release)
GPU GeForce RTX 5070 Laptop GPU, 8 GB (8151 MiB), NVIDIA 620.73.04; hybrid with AMD Radeon 780M (PRIME offload to the NVIDIA card)
CPU / RAM AMD Ryzen 7 260, 46 GB
OS CachyOS, kernel 7.3.6-3-cachyos
Screen 1920x1200 (16:10)
Proton Proton Experimental 11.0-20261123b (its vkd3d-proton), started with proton runinprefix, no Steam client, inside a bubblewrap sandbox without network
Game Xbox Series build 1.0.2.1, all 12 archives at the sizes listed in #474

Environment, following docs/linux-proton.md:
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, VKD3D_CONFIG=no_descriptor_heap, PROTON_ENABLE_NVAPI=1, NVIDIA and vkd3d shader disk caches set, WINEDLLOVERRIDES for DXVK/vkd3d/NVAPI set by hand (runinprefix does not set them), --set VICTORY_WARMUP_RESTART=0 --set VICTORY_FULLSCREEN=1, DXC dxcompiler.dll given with VICTORY_DXC.

Because of the 16:10 screen, every run uses the +0x247af2d workaround from #2055 (--set VICTORY_NATIVE_SIZE=...); without it the title stops at System Init as described there.

What happens

The title boots, passes the account picker, loads the world and plays (with sound) for 4–10 minutes, then the picture stops. A few seconds after the last frame the kernel logs a GPU hang. The title does not exit (its watchdog is told to quit), so the window stays frozen until it is closed. It happens in different places each time.

NVRM: Xid (PCI:0000:01:00): 109, pid=…, name=main, channel 0x00000006, errorString CTX SWITCH TIMEOUT, Info 0x4c010

No crashes.log entry is written for these runs (the only entries there are the earlier +0x247af2d stops from before the workaround).

Runs (times UTC)

Run Settings Last frame Kernel fps before Card memory at the end
A Series S, output 2560x1440, --preload, DLSS off 16:01:29 Xid 109 16:01:34 ~15 6135 of 6170 MB budget, 11.5 GB shared
B Series X, output 2560x1440, DLSS off 16:10:54 Xid 109 16:10:59 ~5 6210 of 6210 MB, 12.6 GB shared
C Series S, --fps 60, VICTORY_VRAM_BUDGET_MB=5500 16:34:01 Xid 109 16:34:06 2–7 5665 of 5500 MB, 15.2 GB shared
D as C + --dlss quality + vkd3d-proton master 71cae091b beside victory.exe 16:44:04 Xid 109 16:44:08 ~10 5160 of 5390 MB, 7.3 GB shared
E as C + --dlss quality, Proton's vkd3d, output 1920x1080 16:52:31 Xid 109 16:52:37 13–15 5491 of 5500 MB, 9.8 GB shared
F as E, but DXC v1.7.2207 (so raise compiles, see below) ~16:57:37 Xid 13 16:57:38 3–7 5071 of 5500 MB, 9.0 GB shared

Run F's kernel lines:

NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics SM Warp Exception on (GPC 2, TPC 4, SM 1): MMU Fault
NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics Exception: ESR 0x5297b0=0x8090017 0x5297b4=0x0 0x5297a8=0x1c813b60 0x5297ac=0x1104
NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics Exception: channel 0x00000006, Class 0000cec0, Offset 00000000, Data 00000000

So the hang comes with and without DLSS, with Proton's vkd3d-proton and with master, at 2560x1440 and 1920x1080 output, and both above and below the card-memory budget (runs D and E stayed under it). VK_NV_raw_access_chains was off in every run.

Second finding: the raise helper does not compile with current DXC

Wine's d3dcompiler_47 refuses raise (E5005: Function "isnan" is not defined), and the DXC fallback refuses it too with DXC v1.9.2609 (2026-09), which defaults to HLSL 2021:

WARN victory_gpu::hlsl: a shader of ours: DXC: hlsl.hlsl:288:27: error: operands for short-circuiting logical binary operator must be scalar, for non-scalar types use 'or'
    found = (isnan(found) || isinf(found)) ? 0.0 : max(found, 0.0);
hlsl.hlsl:290:23: error: operands for short-circuiting logical binary operator must be scalar, for non-scalar types use 'or'
    was = (isnan(was) || isinf(was)) ? 0.0 : max(was, 0.0);
WARN victory_gpu::hlsl: a shader of ours (raise): DXC failed too (VICTORY_DXC names dxcompiler.dll or its folder)
WARN victory_gpu::ambient: no stand-in for the indirect light

Using or(isnan(x), isinf(x)) (or compiling with -HV 2018) should fix it. With DXC v1.7.2207 (HLSL 2018 default) it compiles, but in that run (F) glass got new artifacts and the card faulted (Xid 13) after about 2 minutes instead of the usual Xid 109, so the stand-in may have its own problem here.

Other things in the logs

  • Glass and other transparent surfaces show noise in every run, as in #2661 / #2440.
  • VICTORY_GPU_DETILE: the detile shader could not be made; textures are detiled on the PC
  • host view heap capped at 1000000 (737855 title + 262144 dynamic slots); views past 737855 read a null slot count=1245184
  • the texture queue's room: … no room, new textures wait before the hangs in runs A and B.

Logs

Attached: the play logs of runs A–F (%LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-*.log, from the Wine prefix).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6681596843 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2769). Originally posted by [Tadzi00](https://github.com/Tadzi00) on 2026-11-29T17:06:42Z. --- Possibly related: #2472 (Linux/Proton, RTX 3080, same release and Proton, device lost after 6–14 minutes; Xid 31 there, with Xid 109 a few minutes before it in two runs). Here it is Xid 109 every time, once Xid 13, and no Xid 31. [bug-report-logs.zip](https://github.com/user-attachments/files/35577719/bug-report-logs.zip) ## System | | | |---|---| | Release | v2026.11.29.01 (`victory.exe` SHA-256 `0d3dae51…ed67dffd`, matches the release) | | GPU | GeForce RTX 5070 Laptop GPU, 8 GB (8151 MiB), NVIDIA 620.73.04; hybrid with AMD Radeon 780M (PRIME offload to the NVIDIA card) | | CPU / RAM | AMD Ryzen 7 260, 46 GB | | OS | CachyOS, kernel 7.3.6-3-cachyos | | Screen | 1920x1200 (16:10) | | Proton | Proton Experimental 11.0-20261123b (its vkd3d-proton), started with `proton runinprefix`, no Steam client, inside a bubblewrap sandbox without network | | Game | Xbox Series build 1.0.2.1, all 12 archives at the sizes listed in #474 | Environment, following docs/linux-proton.md: `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`, `VKD3D_CONFIG=no_descriptor_heap`, `PROTON_ENABLE_NVAPI=1`, NVIDIA and vkd3d shader disk caches set, `WINEDLLOVERRIDES` for DXVK/vkd3d/NVAPI set by hand (`runinprefix` does not set them), `--set VICTORY_WARMUP_RESTART=0 --set VICTORY_FULLSCREEN=1`, DXC `dxcompiler.dll` given with `VICTORY_DXC`. Because of the 16:10 screen, every run uses the `+0x247af2d` workaround from #2055 (`--set VICTORY_NATIVE_SIZE=...`); without it the title stops at System Init as described there. ## What happens The title boots, passes the account picker, loads the world and plays (with sound) for 4–10 minutes, then the picture stops. A few seconds after the last frame the kernel logs a GPU hang. The title does not exit (its watchdog is told to quit), so the window stays frozen until it is closed. It happens in different places each time. ``` NVRM: Xid (PCI:0000:01:00): 109, pid=…, name=main, channel 0x00000006, errorString CTX SWITCH TIMEOUT, Info 0x4c010 ``` No `crashes.log` entry is written for these runs (the only entries there are the earlier `+0x247af2d` stops from before the workaround). ## Runs (times UTC) | Run | Settings | Last frame | Kernel | fps before | Card memory at the end | |---|---|---|---|---|---| | A | Series S, output 2560x1440, `--preload`, DLSS off | 16:01:29 | Xid 109 16:01:34 | ~15 | 6135 of 6170 MB budget, 11.5 GB shared | | B | Series X, output 2560x1440, DLSS off | 16:10:54 | Xid 109 16:10:59 | ~5 | 6210 of 6210 MB, 12.6 GB shared | | C | Series S, `--fps 60`, `VICTORY_VRAM_BUDGET_MB=5500` | 16:34:01 | Xid 109 16:34:06 | 2–7 | 5665 of 5500 MB, 15.2 GB shared | | D | as C + `--dlss quality` + vkd3d-proton master `71cae091b` beside victory.exe | 16:44:04 | Xid 109 16:44:08 | ~10 | 5160 of 5390 MB, 7.3 GB shared | | E | as C + `--dlss quality`, Proton's vkd3d, output 1920x1080 | 16:52:31 | Xid 109 16:52:37 | 13–15 | 5491 of 5500 MB, 9.8 GB shared | | F | as E, but DXC v1.7.2207 (so `raise` compiles, see below) | ~16:57:37 | **Xid 13** 16:57:38 | 3–7 | 5071 of 5500 MB, 9.0 GB shared | Run F's kernel lines: ``` NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics SM Warp Exception on (GPC 2, TPC 4, SM 1): MMU Fault NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics Exception: ESR 0x5297b0=0x8090017 0x5297b4=0x0 0x5297a8=0x1c813b60 0x5297ac=0x1104 NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics Exception: channel 0x00000006, Class 0000cec0, Offset 00000000, Data 00000000 ``` So the hang comes with and without DLSS, with Proton's vkd3d-proton and with master, at 2560x1440 and 1920x1080 output, and both above and below the card-memory budget (runs D and E stayed under it). `VK_NV_raw_access_chains` was off in every run. ## Second finding: the `raise` helper does not compile with current DXC Wine's `d3dcompiler_47` refuses `raise` (`E5005: Function "isnan" is not defined`), and the DXC fallback refuses it too with DXC v1.9.2609 (2026-09), which defaults to HLSL 2021: ``` WARN victory_gpu::hlsl: a shader of ours: DXC: hlsl.hlsl:288:27: error: operands for short-circuiting logical binary operator must be scalar, for non-scalar types use 'or' found = (isnan(found) || isinf(found)) ? 0.0 : max(found, 0.0); hlsl.hlsl:290:23: error: operands for short-circuiting logical binary operator must be scalar, for non-scalar types use 'or' was = (isnan(was) || isinf(was)) ? 0.0 : max(was, 0.0); WARN victory_gpu::hlsl: a shader of ours (raise): DXC failed too (VICTORY_DXC names dxcompiler.dll or its folder) WARN victory_gpu::ambient: no stand-in for the indirect light ``` Using `or(isnan(x), isinf(x))` (or compiling with `-HV 2018`) should fix it. With DXC v1.7.2207 (HLSL 2018 default) it compiles, but in that run (F) glass got new artifacts and the card faulted (Xid 13) after about 2 minutes instead of the usual Xid 109, so the stand-in may have its own problem here. ## Other things in the logs - Glass and other transparent surfaces show noise in every run, as in #2661 / #2440. - `VICTORY_GPU_DETILE: the detile shader could not be made; textures are detiled on the PC` - `host view heap capped at 1000000 (737855 title + 262144 dynamic slots); views past 737855 read a null slot count=1245184` - `the texture queue's room: … no room, new textures wait` before the hangs in runs A and B. ## Logs Attached: the play logs of runs A–F (`%LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-*.log`, from the Wine prefix).
brunofgmag commented 2026-11-29 17:34:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by brunofgmag on 2026-11-29T17:34:03Z.


I get the same hang on a desktop RTX 4080 with the same driver and kernel (620.73.04, CachyOS 7.3.6-3), Proton Experimental with vkd3d-proton master 71cae091b, VKD3D_CONFIG=no_descriptor_heap,pipeline_library_app_cache and VK_NV_raw_access_chains off. My builds are based on 568c5e5d, where it hit about one run in three of the same scripted scene.

One hang was caught with vkd3d-proton breadcrumbs. This is the region that started and never finished:

Found pending command list context [325, 325] in executable state, TOP_OF_PIPE marker 134, BOTTOM_OF_PIPE marker 133.
===== Potential crash region BEGIN =====
  set_shader_hash  hash: c123db74dc6accc5 (compute)
  root_const x12
  root_desc
  Tag: ExecuteIndirect [MaxCommandCount, ArgBuffer cookie, ArgBuffer offset, Count cookie, Count offset]  (max 1, offset 32, no count buffer)
  execute_indirect_unroll_compute
  top_marker 134 / bottom_marker 134
  execute_indirect
===== Potential crash region END =====

The shader is meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev (container hash 0452fc2d2e2fc4c3). Earlier in the same list a compute pass writes the argument buffer, and a first ExecuteIndirect reads it at offset 0 and completes. The second one, at offset 32, is the one that hangs. This is a single capture, so I would not assume every 109 is this dispatch.

To get it you need vkd3d-proton built with -Denable_trace=true and VKD3D_CONFIG=breadcrumbs. I also had to change vkd3d to print the report when the fence wait times out, because the process is gone before any device lost reaches it. The new d3d12core.dll has to go in the prefix's system32.

What did not stop the hang here:

  • VKD3D_CONFIG=single_queue: one 109 and one Xid 13 in four runs.
  • Hiding VK_EXT_device_generated_commands from vkd3d: one 109 in 12 runs. That is a lower rate than usual, but too few runs to say it helps.
  • Capping every loop of the translated shaders at 64 iterations, in a diagnostics build (release builds ignore that switch).
  • Running the GPU at stock clocks instead of my usual undervolt. It hung several times that way too.

The group counts read back right before that ExecuteIndirect, in other runs, matched what the CPU asked for and were at most 3,082.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7259792354 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2769#issuecomment-7259792354). Originally posted by [brunofgmag](https://github.com/brunofgmag) on 2026-11-29T17:34:03Z. --- I get the same hang on a desktop RTX 4080 with the same driver and kernel (620.73.04, CachyOS 7.3.6-3), Proton Experimental with vkd3d-proton master `71cae091b`, `VKD3D_CONFIG=no_descriptor_heap,pipeline_library_app_cache` and `VK_NV_raw_access_chains` off. My builds are based on `568c5e5d`, where it hit about one run in three of the same scripted scene. One hang was caught with vkd3d-proton breadcrumbs. This is the region that started and never finished: ``` Found pending command list context [325, 325] in executable state, TOP_OF_PIPE marker 134, BOTTOM_OF_PIPE marker 133. ===== Potential crash region BEGIN ===== set_shader_hash hash: c123db74dc6accc5 (compute) root_const x12 root_desc Tag: ExecuteIndirect [MaxCommandCount, ArgBuffer cookie, ArgBuffer offset, Count cookie, Count offset] (max 1, offset 32, no count buffer) execute_indirect_unroll_compute top_marker 134 / bottom_marker 134 execute_indirect ===== Potential crash region END ===== ``` The shader is `meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev` (container hash `0452fc2d2e2fc4c3`). Earlier in the same list a compute pass writes the argument buffer, and a first `ExecuteIndirect` reads it at offset 0 and completes. The second one, at offset 32, is the one that hangs. This is a single capture, so I would not assume every 109 is this dispatch. To get it you need vkd3d-proton built with `-Denable_trace=true` and `VKD3D_CONFIG=breadcrumbs`. I also had to change vkd3d to print the report when the fence wait times out, because the process is gone before any device lost reaches it. The new `d3d12core.dll` has to go in the prefix's `system32`. What did not stop the hang here: - `VKD3D_CONFIG=single_queue`: one 109 and one Xid 13 in four runs. - Hiding `VK_EXT_device_generated_commands` from vkd3d: one 109 in 12 runs. That is a lower rate than usual, but too few runs to say it helps. - Capping every loop of the translated shaders at 64 iterations, in a diagnostics build (release builds ignore that switch). - Running the GPU at stock clocks instead of my usual undervolt. It hung several times that way too. The group counts read back right before that `ExecuteIndirect`, in other runs, matched what the CPU asked for and were at most 3,082.
Aiken-Project-A commented 2026-11-29 19:54:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aiken-Project-A on 2026-11-29T19:54:30Z.


Data from a Turing card, for the three leads in this thread. The same Xid 109 here: RTX 2060 6 GB laptop, NVIDIA 615.78.08, Linux 7.2, wine-proton 11 (7b3ceaf8), vkd3d-proton 71cae091, main 829188e9 plus a few local fixes, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, VKD3D_CONFIG=no_upload_hvv,force_host_cached,no_descriptor_heap. Ours is always CTX SWITCH TIMEOUT, channel 0x00000022, Info 0x4c01f, mostly in the first minutes at the cell window after the intro, once during loading, in roughly a quarter to a half of the runs.

1. Hiding device generated commands does not remove it here. With VK_EXT_device_generated_commands, VK_NV_device_generated_commands and VK_NV_device_generated_commands_compute added to VKD3D_DISABLE_EXTENSIONS (vkd3d-proton logs them as disabled): 4 runs, 1 Xid 109, at the window, same signature as always. Frame time unchanged (window 86–88 ms, intro 87–100 ms).

2. The indirect arguments are fenced correctly. The clamp pass (indirect.rs) moves the scratch buffer UNORDERED_ACCESS → INDIRECT_ARGUMENT after its dispatch, and vkd3d-proton turns INDIRECT_ARGUMENT into DRAW_INDIRECT | COMPUTE_SHADER stages with INDIRECT_COMMAND_READ | SHADER_READ access (command.c, the resource-state mapping). A single-record dispatch without a count buffer then reads the clamped record straight from that buffer (vkCmdDispatchIndirect, no copy). So a stale-argument race between the clamp and the execution looks unlikely, which fits the group counts read back here (at most 3,082).

3. meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev (#0452fc2d2e2fc4c3) cannot hang on a barrier by itself, as far as I can tell. Native: 128 threads, 856 instructions. Translated (saved with VICTORY_SHADER_SAVE, read with dxil-spirv --glsl): 13 group barriers and no loops. I checked how uniform the branch conditions around each barrier are:

  • 11 barriers sit under conditions that are the same for the whole group (constants, loads indexed by the group id, shared memory read after a barrier);
  • the last 2, in the culling part, sit under a condition that is the same within a subgroup but may differ between subgroups (it comes from subgroupBroadcastFirst, i.e. each 32-lane half picks its own first lane where the console had one 64-lane wave). Subgroups that skip them go straight to the end and exit.

So no subgroup reaches a barrier only partly, and exited threads do not hold a PTX barrier. With no loops and sane group counts, I found no way for this dispatch to run forever on its own; the hang in the capture above may involve something around it rather than the shader itself.

A scan of all translated compute and mesh shaders of one run (1,381; the same text analysis, conservative, so false positives are possible): 207 have group barriers, 4,652 in total. 12 have at least one barrier under a condition that can differ between invocations of one subgroup, which would be undefined on NVIDIA (barrier.sync.aligned): 5dc3b25986622949 (20 such barriers), 6f225b641c5b0708 (20), 3d65925d7cd4a39a (6), 7de0f9db96ddd295 (6), 8bb272e763f76148 (4), e3730d3d043e0d90 (4), 0a5ecfee6b79e13b (2), and one each in 0aa7934094794dbf, 982f3cccd5c04294, 9662515112a3f961, d9978c76c746d809, e4a7e088c7780ce8. I have not checked them by hand; several have 2D groups (local_size_x 4 or 8), where a condition on the x index can split a subgroup. The script and the GLSL are available if useful.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7261654233 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2769#issuecomment-7261654233). Originally posted by [Aiken-Project-A](https://github.com/Aiken-Project-A) on 2026-11-29T19:54:30Z. --- Data from a Turing card, for the three leads in this thread. The same Xid 109 here: RTX 2060 6 GB laptop, NVIDIA 615.78.08, Linux 7.2, wine-proton 11 (`7b3ceaf8`), vkd3d-proton `71cae091`, main `829188e9` plus a few local fixes, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`, `VKD3D_CONFIG=no_upload_hvv,force_host_cached,no_descriptor_heap`. Ours is always `CTX SWITCH TIMEOUT, channel 0x00000022, Info 0x4c01f`, mostly in the first minutes at the cell window after the intro, once during loading, in roughly a quarter to a half of the runs. **1. Hiding device generated commands does not remove it here.** With `VK_EXT_device_generated_commands`, `VK_NV_device_generated_commands` and `VK_NV_device_generated_commands_compute` added to `VKD3D_DISABLE_EXTENSIONS` (vkd3d-proton logs them as disabled): 4 runs, 1 Xid 109, at the window, same signature as always. Frame time unchanged (window 86–88 ms, intro 87–100 ms). **2. The indirect arguments are fenced correctly.** The clamp pass (`indirect.rs`) moves the scratch buffer `UNORDERED_ACCESS → INDIRECT_ARGUMENT` after its dispatch, and vkd3d-proton turns `INDIRECT_ARGUMENT` into `DRAW_INDIRECT | COMPUTE_SHADER` stages with `INDIRECT_COMMAND_READ | SHADER_READ` access (`command.c`, the resource-state mapping). A single-record dispatch without a count buffer then reads the clamped record straight from that buffer (`vkCmdDispatchIndirect`, no copy). So a stale-argument race between the clamp and the execution looks unlikely, which fits the group counts read back here (at most 3,082). **3. `meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev` (#0452fc2d2e2fc4c3) cannot hang on a barrier by itself, as far as I can tell.** Native: 128 threads, 856 instructions. Translated (saved with `VICTORY_SHADER_SAVE`, read with dxil-spirv `--glsl`): 13 group barriers and no loops. I checked how uniform the branch conditions around each barrier are: - 11 barriers sit under conditions that are the same for the whole group (constants, loads indexed by the group id, shared memory read after a barrier); - the last 2, in the culling part, sit under a condition that is the same within a subgroup but may differ between subgroups (it comes from `subgroupBroadcastFirst`, i.e. each 32-lane half picks its own first lane where the console had one 64-lane wave). Subgroups that skip them go straight to the end and exit. So no subgroup reaches a barrier only partly, and exited threads do not hold a PTX barrier. With no loops and sane group counts, I found no way for this dispatch to run forever on its own; the hang in the capture above may involve something around it rather than the shader itself. **A scan of all translated compute and mesh shaders of one run** (1,381; the same text analysis, conservative, so false positives are possible): 207 have group barriers, 4,652 in total. 12 have at least one barrier under a condition that can differ between invocations of one subgroup, which would be undefined on NVIDIA (`barrier.sync.aligned`): `5dc3b25986622949` (20 such barriers), `6f225b641c5b0708` (20), `3d65925d7cd4a39a` (6), `7de0f9db96ddd295` (6), `8bb272e763f76148` (4), `e3730d3d043e0d90` (4), `0a5ecfee6b79e13b` (2), and one each in `0aa7934094794dbf`, `982f3cccd5c04294`, `9662515112a3f961`, `d9978c76c746d809`, `e4a7e088c7780ce8`. I have not checked them by hand; several have 2D groups (`local_size_x` 4 or 8), where a condition on the x index can split a subgroup. The script and the GLSL are available if useful.
ColorMeBoom commented 2026-11-30 01:05:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ColorMeBoom on 2026-11-30T01:05:19Z.


A possible workaround, from the shader in brunofgmag's breadcrumbs: leaving out meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev (0452fc2d2e2fc4c3, the hash Aiken-Project-A gives) stopped the Xid 109 here in 3 of 3 runs, with no loss of speed. That's a small sample, so please treat it as a lead.

--set VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,0452fc2d2e2fc4c3

The first two hashes are the launcher's own defaults; setting the switch replaces them, so they need to stay in the list.

Setup

Build v2026.11.29.02 (f889bb07), release, cross-compiled; victory.exe play
GPU GeForce RTX 4070 SUPER 12 GB, NVIDIA 620.73.04
CPU / RAM Intel Core i7-14700K, 32 GB
OS CachyOS, kernel 7.3.5
Wine Wine 11.22 (no Proton), headless gamescope 3.17
D3D12 / DXGI vkd3d-proton master 71cae091, built locally; DXVK dxgi.dll from GE-Proton11-14
Always on VKD3D_CONFIG=no_descriptor_heap, DLSS off, --set VICTORY_PATCH_SSE4A=0 (#2393)

Each run is scripted: boot, Enter at the start screen, stand at the cell window, then turn and walk out of the cell. The hang signature was the same each time: Xid 109 … CTX SWITCH TIMEOUT, Info 0x2c014, channel 0x00000010, at the cell window. The title doesn't exit; the picture stays frozen.

Runs

"DGC" means VK_EXT_device_generated_commands, VK_NV_device_generated_commands and VK_NV_device_generated_commands_compute, hidden through VKD3D_DISABLE_EXTENSIONS.

Scene VK_NV_raw_access_chains DGC Cap 0452fc2d2e2fc4c3 Result
2560×1440 on on none runs Xid 109, about 8 min after launch
1920×1080 (--res 1080to1440) off on 15 runs Xid 109, about 7½ min
1920×1080 off hidden 15 runs no Xid, 25 min
1920×1080 off hidden none runs no Xid in 3 runs of about 7 min (Series X, Series S, pinned to P-cores)
1920×1080 off hidden 20 runs Xid 109, about 4½ min
1920×1080 off on none left out no Xid, about 12 min
1920×1080 off on none left out no Xid, about 12 min
1920×1080 off hidden 20 left out no Xid, about 12 min

Hiding DGC helped on its own but didn't stop the hang: 4 of 5 runs got past the window, and the fifth hung, as in brunofgmag's 1 in 12. With DGC on, both runs without the leave-out hung, and both with it passed.

What it costs

  • Speed: none that I could measure. With the shader running and DGC hidden, uncapped standing at the window was 21.9 fps; with it left out it was 22.4 and 22.3. At a 20 cap it held 20.0, and the slowest tenth of samples was 19.6 while walking.
  • Picture: nothing visibly wrong in the cell or the corridor outside it. The player and the other inmates were drawn whole. This pass culls pre-skinned meshlets against the previous frame, so busier scenes with many characters might still show something I didn't see.

Limits

  • 3 runs with the leave-out, all of 12 minutes or less, in the opening area.
  • The release build's frame line counts left-out draws together with the ray-tracing passes, so I couldn't confirm from the log that this pipeline was skipped. The evidence is that the runs pass.
  • If it holds up for others, it may point at what the dispatch does on 32-lane NVIDIA hardware (Aiken-Project-A's notes on the two barriers under subgroup-uniform conditions). I haven't looked into the translated code.

AI-assisted (Claude Code, Claude Opus 5.5 ran the builds and game runs and wrote this comment).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7265830514 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2769#issuecomment-7265830514). Originally posted by [ColorMeBoom](https://github.com/ColorMeBoom) on 2026-11-30T01:05:19Z. --- A possible workaround, from the shader in brunofgmag's breadcrumbs: leaving out `meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev` (`0452fc2d2e2fc4c3`, the hash Aiken-Project-A gives) stopped the Xid 109 here in 3 of 3 runs, with no loss of speed. That's a small sample, so please treat it as a lead. ``` --set VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,0452fc2d2e2fc4c3 ``` The first two hashes are the launcher's own defaults; setting the switch replaces them, so they need to stay in the list. ## Setup | | | |---|---| | Build | v2026.11.29.02 (`f889bb07`), release, cross-compiled; `victory.exe play` | | GPU | GeForce RTX 4070 SUPER 12 GB, NVIDIA 620.73.04 | | CPU / RAM | Intel Core i7-14700K, 32 GB | | OS | CachyOS, kernel 7.3.5 | | Wine | Wine 11.22 (no Proton), headless gamescope 3.17 | | D3D12 / DXGI | vkd3d-proton master `71cae091`, built locally; DXVK `dxgi.dll` from GE-Proton11-14 | | Always on | `VKD3D_CONFIG=no_descriptor_heap`, DLSS off, `--set VICTORY_PATCH_SSE4A=0` (#2393) | Each run is scripted: boot, Enter at the start screen, stand at the cell window, then turn and walk out of the cell. The hang signature was the same each time: `Xid 109 … CTX SWITCH TIMEOUT, Info 0x2c014`, channel `0x00000010`, at the cell window. The title doesn't exit; the picture stays frozen. ## Runs "DGC" means `VK_EXT_device_generated_commands`, `VK_NV_device_generated_commands` and `VK_NV_device_generated_commands_compute`, hidden through `VKD3D_DISABLE_EXTENSIONS`. | Scene | `VK_NV_raw_access_chains` | DGC | Cap | `0452fc2d2e2fc4c3` | Result | |---|---|---|---|---|---| | 2560×1440 | on | on | none | runs | Xid 109, about 8 min after launch | | 1920×1080 (`--res 1080to1440`) | off | on | 15 | runs | Xid 109, about 7½ min | | 1920×1080 | off | hidden | 15 | runs | no Xid, 25 min | | 1920×1080 | off | hidden | none | runs | no Xid in 3 runs of about 7 min (Series X, Series S, pinned to P-cores) | | 1920×1080 | off | hidden | 20 | runs | Xid 109, about 4½ min | | 1920×1080 | off | on | none | **left out** | no Xid, about 12 min | | 1920×1080 | off | on | none | **left out** | no Xid, about 12 min | | 1920×1080 | off | hidden | 20 | **left out** | no Xid, about 12 min | Hiding DGC helped on its own but didn't stop the hang: 4 of 5 runs got past the window, and the fifth hung, as in brunofgmag's 1 in 12. With DGC on, both runs without the leave-out hung, and both with it passed. ## What it costs - **Speed:** none that I could measure. With the shader running and DGC hidden, uncapped standing at the window was 21.9 fps; with it left out it was 22.4 and 22.3. At a 20 cap it held 20.0, and the slowest tenth of samples was 19.6 while walking. - **Picture:** nothing visibly wrong in the cell or the corridor outside it. The player and the other inmates were drawn whole. This pass culls pre-skinned meshlets against the previous frame, so busier scenes with many characters might still show something I didn't see. ## Limits - 3 runs with the leave-out, all of 12 minutes or less, in the opening area. - The release build's frame line counts left-out draws together with the ray-tracing passes, so I couldn't confirm from the log that this pipeline was skipped. The evidence is that the runs pass. - If it holds up for others, it may point at what the dispatch does on 32-lane NVIDIA hardware (Aiken-Project-A's notes on the two barriers under subgroup-uniform conditions). I haven't looked into the translated code. AI-assisted (Claude Code, Claude Opus 5.5 ran the builds and game runs and wrote this comment).
colonelpanic8 commented 2026-11-30 06:07:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by colonelpanic8 on 2026-11-30T06:07:19Z.


Another data point for the same hang, on Linux with plain Wine (not Proton) and an Ampere card. Leaving out 0452fc2d2e2fc4c3 held up here as well: no hangs in 6 runs, against about 1 in 4 without it.

Setup

OS NixOS, Linux 7.3.0
GPU GeForce RTX 3090 24 GB, NVIDIA 595.112.07 (an older branch than the 620.73.04 / 615.78.08 above, so the hang isn't tied to one driver)
CPU Intel Core i7-13700K (no SSE4a), 31 GB
Wine Wine 11.0 (wow64), with the view-tree wineserver from docs/linux-proton.md
D3D12 / DXGI vkd3d-proton and DXVK dxgi.dll taken from GE-Proton11-14
Display headless gamescope
Always on VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, Series S profile, DLSS and frame generation off, ray tracing off (no VICTORY_BVH_BUILDER)
Game Xbox Series build 1.0.2.1

Each run is unattended: boot into the world, then measure for 6 minutes (36 frame-time samples). The hang has the same signature every time: Xid 109 … CTX SWITCH TIMEOUT, channel 0x00000044, 3–5 minutes in.

Runs per build

Base (main at) Extra Runs that hung
923e38c 0 of 4
d148613 1 of 5
829188e9 5 of 5, all within ~5 min
716a0c99 (29.02/29.03 hotfixes) 1 of 3
716a0c99 late-fault fix for #2393 1 of 4
41adb551 #2585 0 of 6 with VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,0452fc2d2e2fc4c3

All builds also carry the opt-in title watchdog hook from #1428.

Without the leave-out, that's 3 hangs in 12 runs on the builds after 923e38c, leaving out 829188e9. Six clean runs at a 1-in-4 rate would happen by chance about 18% of the time. With ColorMeBoom's 3 of 3 it's 9 clean runs (about 7.5%), so still a lead rather than proof.

Speed: no cost. The three leave-out runs on a quiet machine had medians of 36.0, 36.0 and 36.9 ms, against 36–37 ms without it. The other three ran while the machine was busy with other work and aren't comparable. I haven't checked visually whether anything stops being drawn without it.

Other notes

  • 829188e9 hung every run. The 716a0c99 hotfixes brought it back to the baseline rate. Switching their old defaults back on one at a time on 716a0c99 did not bring the every-run hang back, though that's one run each and two of them were on a loaded machine: VICTORY_WAVE_FOLDED=1, VICTORY_ALIAS_TARGETS=1 with VICTORY_LAZY_TWINS=1, and VICTORY_SLOTS_BITMAP=1.
  • One run on 829188e9 with VKD3D_CONFIG=no_descriptor_heap still hung.
  • VKD3D_CONFIG=breadcrumbs never wrote a dump on this card, even with 90 s of grace after the Xid. The driver never reports the device as lost; vkd3d-proton only logs Failed to wait for Vulkan timeline semaphore, vr 2. So brunofgmag's dump is the only shader name I have.
  • The #2393 crash (insertq at +0x5084782) also hit here under Wine, in 3 of 9 runs on 716a0c99. There were none in 10 runs with a late-fault fix: #2585 in the leave-out runs above, and an equivalent local patch in 4 more.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7270324903 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2769#issuecomment-7270324903). Originally posted by [colonelpanic8](https://github.com/colonelpanic8) on 2026-11-30T06:07:19Z. --- Another data point for the same hang, on **Linux with plain Wine** (not Proton) and an **Ampere** card. Leaving out `0452fc2d2e2fc4c3` held up here as well: no hangs in 6 runs, against about 1 in 4 without it. ## Setup | | | |---|---| | OS | NixOS, Linux 7.3.0 | | GPU | GeForce RTX 3090 24 GB, NVIDIA **595.112.07** (an older branch than the 620.73.04 / 615.78.08 above, so the hang isn't tied to one driver) | | CPU | Intel Core i7-13700K (no SSE4a), 31 GB | | Wine | Wine 11.0 (wow64), with the view-tree wineserver from docs/linux-proton.md | | D3D12 / DXGI | vkd3d-proton and DXVK `dxgi.dll` taken from GE-Proton11-14 | | Display | headless gamescope | | Always on | `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`, Series S profile, DLSS and frame generation off, ray tracing off (no `VICTORY_BVH_BUILDER`) | | Game | Xbox Series build 1.0.2.1 | Each run is unattended: boot into the world, then measure for 6 minutes (36 frame-time samples). The hang has the same signature every time: `Xid 109 … CTX SWITCH TIMEOUT, channel 0x00000044`, 3–5 minutes in. ## Runs per build | Base (`main` at) | Extra | Runs that hung | |---|---|---| | `923e38c` | | 0 of 4 | | `d148613` | | 1 of 5 | | `829188e9` | | **5 of 5**, all within ~5 min | | `716a0c99` (29.02/29.03 hotfixes) | | 1 of 3 | | `716a0c99` | late-fault fix for #2393 | 1 of 4 | | `41adb551` | #2585 | **0 of 6** with `VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,0452fc2d2e2fc4c3` | All builds also carry the opt-in title watchdog hook from #1428. Without the leave-out, that's 3 hangs in 12 runs on the builds after `923e38c`, leaving out `829188e9`. Six clean runs at a 1-in-4 rate would happen by chance about 18% of the time. With ColorMeBoom's 3 of 3 it's 9 clean runs (about 7.5%), so still a lead rather than proof. **Speed:** no cost. The three leave-out runs on a quiet machine had medians of 36.0, 36.0 and 36.9 ms, against 36–37 ms without it. The other three ran while the machine was busy with other work and aren't comparable. I haven't checked visually whether anything stops being drawn without it. ## Other notes - `829188e9` hung every run. The `716a0c99` hotfixes brought it back to the baseline rate. Switching their old defaults back on one at a time on `716a0c99` did not bring the every-run hang back, though that's one run each and two of them were on a loaded machine: `VICTORY_WAVE_FOLDED=1`, `VICTORY_ALIAS_TARGETS=1` with `VICTORY_LAZY_TWINS=1`, and `VICTORY_SLOTS_BITMAP=1`. - One run on `829188e9` with `VKD3D_CONFIG=no_descriptor_heap` still hung. - `VKD3D_CONFIG=breadcrumbs` never wrote a dump on this card, even with 90 s of grace after the Xid. The driver never reports the device as lost; vkd3d-proton only logs `Failed to wait for Vulkan timeline semaphore, vr 2`. So brunofgmag's dump is the only shader name I have. - The #2393 crash (`insertq` at `+0x5084782`) also hit here under Wine, in 3 of 9 runs on `716a0c99`. There were none in 10 runs with a late-fault fix: #2585 in the leave-out runs above, and an equivalent local patch in 4 more.
tijmenvn commented 2026-11-30 21:20:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tijmenvn on 2026-11-30T21:20:31Z.


Same Xid 109 here on a desktop RTX 4090, with both vkd3d-proton workarounds and a VRAM budget active. Possibly related: #1428, but see below: skipping its wave64 compute does not help here.

Setup: CachyOS, kernel 7.3.6, Hyprland; RTX 4090, NVIDIA 620.73.04 (open kernel modules); build e1251c31 (release, cargo-xwin) started with victory.exe play, Series X, DLSS DLAA; GE-Proton 11-15 via umu-launcher, nested gamescope (2560x1440, -S fit, WSI layer); vkd3d-proton master 71cae091b beside victory.exe; d3dcompiler_47.dll 10.0.17134 beside victory.exe.
Active: VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains and VKD3D_CONFIG=no_descriptor_heap (both confirmed in the running process's environment), VICTORY_VRAM_BUDGET_MB=19000, NVIDIA shader disk cache, vm.unprivileged_userfaultfd=1.

What happens: play is normal (22–30 fps), then at a heavy moment the picture freezes; about 5 s later vkd3d-proton reports VK_ERROR_DEVICE_LOST and the kernel logs Xid 109. Moments: a scene switch, starting and in the middle of NPC conversations, resuming from the pause menu.

2026-11-30 21:14  Xid 109  ch 0x25  Info 0x2c03c   HW RT off, face relocation kept
2026-11-30 21:23  Xid 109  ch 0x25  Info 0x2c03c   same spot (NPC conversation)
2026-11-30 22:02  Xid 109  ch 0x24  Info 0x3ec03a  VICTORY_HW_RT=1, resuming from pause
2026-11-30 22:17  Xid 109  ch 0x1d  Info 0x3cc038  VICTORY_HW_RT=1, play's default VICTORY_LEAVE_OUT
                                                   (02384a60 and 731a3917 both skipped), mid NPC conversation

Earlier, before no_descriptor_heap, there were also Xid 31 MMU faults at GPCCLIENT_GCC; those stopped with it, as in docs/linux-proton.md. Xid 109 did not stop with VK_NV_raw_access_chains disabled.

Ruled out so far:

  • Video memory: at the 21:14 hang the layer had 16861 MB in use of its 19000 MB budget.
  • #1428's wave64 compute: still hangs with 02384a60 and 731a3917 skipped (22:17).
  • Hardware RT: hangs with it on and off.
  • VKD3D_CONFIG=breadcrumbs: no breadcrumb output on this driver.

At the 21:23 hang, the last pipeline finished before the GPU stopped was mesh 674e860f9713b8ce, pixel fb93cb23cbe58dc0-mask (30,076-byte pixel shader, about 9 s to build, first used at that moment). But the Info values differ between hangs, so probably not one fixed shader. Logs available on request.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7292264566 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2769#issuecomment-7292264566). Originally posted by [tijmenvn](https://github.com/tijmenvn) on 2026-11-30T21:20:31Z. --- Same Xid 109 here on a desktop RTX 4090, with both vkd3d-proton workarounds and a VRAM budget active. Possibly related: #1428, but see below: skipping its wave64 compute does not help here. **Setup:** CachyOS, kernel 7.3.6, Hyprland; RTX 4090, NVIDIA 620.73.04 (open kernel modules); build `e1251c31` (release, cargo-xwin) started with `victory.exe play`, Series X, DLSS DLAA; GE-Proton 11-15 via umu-launcher, nested gamescope (2560x1440, `-S fit`, WSI layer); vkd3d-proton master `71cae091b` beside victory.exe; `d3dcompiler_47.dll` 10.0.17134 beside victory.exe. **Active:** `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` and `VKD3D_CONFIG=no_descriptor_heap` (both confirmed in the running process's environment), `VICTORY_VRAM_BUDGET_MB=19000`, NVIDIA shader disk cache, `vm.unprivileged_userfaultfd=1`. **What happens:** play is normal (22–30 fps), then at a heavy moment the picture freezes; about 5 s later vkd3d-proton reports `VK_ERROR_DEVICE_LOST` and the kernel logs Xid 109. Moments: a scene switch, starting and in the middle of NPC conversations, resuming from the pause menu. 2026-11-30 21:14 Xid 109 ch 0x25 Info 0x2c03c HW RT off, face relocation kept 2026-11-30 21:23 Xid 109 ch 0x25 Info 0x2c03c same spot (NPC conversation) 2026-11-30 22:02 Xid 109 ch 0x24 Info 0x3ec03a VICTORY_HW_RT=1, resuming from pause 2026-11-30 22:17 Xid 109 ch 0x1d Info 0x3cc038 VICTORY_HW_RT=1, play's default VICTORY_LEAVE_OUT (02384a60 and 731a3917 both skipped), mid NPC conversation Earlier, before `no_descriptor_heap`, there were also Xid 31 MMU faults at `GPCCLIENT_GCC`; those stopped with it, as in docs/linux-proton.md. Xid 109 did not stop with `VK_NV_raw_access_chains` disabled. **Ruled out so far:** - Video memory: at the 21:14 hang the layer had 16861 MB in use of its 19000 MB budget. - #1428's wave64 compute: still hangs with `02384a60` and `731a3917` skipped (22:17). - Hardware RT: hangs with it on and off. - `VKD3D_CONFIG=breadcrumbs`: no breadcrumb output on this driver. At the 21:23 hang, the last pipeline finished before the GPU stopped was `mesh 674e860f9713b8ce, pixel fb93cb23cbe58dc0-mask` (30,076-byte pixel shader, about 9 s to build, first used at that moment). But the `Info` values differ between hangs, so probably not one fixed shader. Logs available on request.
BitWuehler commented 2026-12-01 08:46:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BitWuehler on 2026-12-01T08:46:14Z.


Two verified fixes from testing on Linux (CachyOS) / GE-Proton 11-14 (vkd3d-proton master) / RTX 5080 16 GB (driver 620.73.04) (and cross-checked on RTX 5090 Linux in #1428):

  1. For the recurring Xid 109 CTX SWITCH TIMEOUT hang in the world:
    Set VICTORY_CODE_TABLE_AFTER=1 (together with VICTORY_WAVE_FOLDED=0). On Blackwell + NVIDIA Linux Vulkan (620.73.04), placing the dispatch code table before the body triggers 16–18 KB local-memory spills per lane and reliably trips Xid 109 after a few minutes in the world. With VICTORY_CODE_TABLE_AFTER=1, both our 22-minute continuous world runs on RTX 5080 and 4/4 runs on RTX 5090 (#1428) completed with 0 Xids.

  2. For the ambient.rs raise helper failing under DXC (0x80004005):
    ambient.rs compiles the RAISE pass with -D RAISE (empty macro value) while naming the entry point void raise(...). Unlike FXC (D3DCompile), DXC's HLSL 2021 preprocessor/parser rejects that combination (macro collision / HLSL 2021 strictness). Passing -HV 2018 in hlsl.rs and renaming the macro guard to PASS_RAISE (or -D RAISE=1 with a distinct macro name) lets all 5 ambient.rs passes compile cleanly through DXC under Proton.

(Summary compiled with AI assistance.)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7305761178 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2769#issuecomment-7305761178). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-12-01T08:46:14Z. --- Two verified fixes from testing on **Linux (CachyOS) / GE-Proton 11-14 (`vkd3d-proton master`) / RTX 5080 16 GB (driver 620.73.04)** (and cross-checked on RTX 5090 Linux in #1428): 1. **For the recurring `Xid 109 CTX SWITCH TIMEOUT` hang in the world:** Set **`VICTORY_CODE_TABLE_AFTER=1`** (together with **`VICTORY_WAVE_FOLDED=0`**). On Blackwell + NVIDIA Linux Vulkan (`620.73.04`), placing the dispatch code table before the body triggers 16–18 KB local-memory spills per lane and reliably trips `Xid 109` after a few minutes in the world. With `VICTORY_CODE_TABLE_AFTER=1`, both our 22-minute continuous world runs on RTX 5080 and 4/4 runs on RTX 5090 (#1428) completed with **0 Xids**. 2. **For the `ambient.rs` `raise` helper failing under DXC (`0x80004005`):** `ambient.rs` compiles the `RAISE` pass with `-D RAISE` (empty macro value) while naming the entry point `void raise(...)`. Unlike FXC (`D3DCompile`), DXC's HLSL 2021 preprocessor/parser rejects that combination (`macro collision` / HLSL 2021 strictness). Passing `-HV 2018` in `hlsl.rs` and renaming the macro guard to `PASS_RAISE` (or `-D RAISE=1` with a distinct macro name) lets all 5 `ambient.rs` passes compile cleanly through DXC under Proton. *(Summary compiled with AI assistance.)*
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#2769
No description provided.