GPU: writing unbound UAVs removes the device on an RDNA3 iGPU #508

Open
opened 2026-11-26 04:06:33 +00:00 by github-bot · 8 comments
Owner

@⁠YorangSama on GitHub · 2026-11-24 04:18 UTC · original

Summary

Attempting the world on a Radeon integrated GPU (RDNA3, 64-lane waves) gets further than on the discrete
NVIDIA card in the same machine, and DRED names the fault exactly: a compute dispatch writes two UAVs that
resolve to None, whose descriptor heap is null, and the GPU page-faults.

Same machine, same title, same build, two adapters (per-app GPU preference switches between them):

  • RTX 4070 — 22 compute programs are refused at creation (wave lane count of 64 … maximum … is 32)
    and their dispatches are dropped; the world submission then removes the device.
  • Radeon iGPU — 0 wave64 refusals, 0 host-pipeline refusals, but a page fault in a compute dispatch.

With VICTORY_SHADER_LOOP_LIMIT=1000 the iGPU run's slow submissions drop from 20,518 ms to 444–498 ms
and it reaches 787 draws/frame, capturing loading frames correctly — so the loop limit works as the README
describes. What remains is not slowness: after that, a submission still removes the device, with DRED
pointing at an unbound UAV write.

Setup

  • CPU: Ryzen with Radeon integrated graphics (RDNA3) and RTX 4070, driver 32.0.16.2114
  • Windows 11 build 26300, VICTORY_DXIL = DXC 1.9.2609.5 dxil.dll
  • VIctory d2a4bae, cargo build --profile diag -p victory --features diagnostics
  • victory.exe run <exe> --execute, Series X profile unless noted

Data

RDNA3 iGPU, VICTORY_SHADER_LOOP_LIMIT=1000 VICTORY_D3D12_DRED=1 — the failure:

host GPU device removed after a submission of 11 lists; page fault at 0x4994000; no title memory copy
below it; the nearest above: 0x36a50000+0xae00000 at host 0x36bd80000 (670 copies in all)
breadcrumbs ["2/2 None", "2/2 None", ...]
list 10 of 11, of its 7: dispatch 128x64x1 [compute 2dc602192abf6288]
2dc602192abf6288: u5=0x15ff7a0 [heap 720829: null] u6=0x3a800000 u7=0x3b0000
tables ["... Srv s1+0: placed uav=false dim 1 288x1 f0 layout 0x1 at 0x3754f880",
        "... Uav s1+8: uav None",
        "... Uav s1+16: uav None",
        "... Uav s1+24: uav Some(\"80x45 f42 flags 0x4\")",
        "... Cbv s2+0: Constants"]

So s1+8 and s1+16 are unbound while the program writes them; u5 points at a null heap.
VICTORY_SKIP_PIPELINES=2dc602192abf6288 gets past this one, but the next 26-list compute submission then
removes the device too (0x887A0006), so it looks like a family rather than a single program.

Same run before the fault: 1 fps 1600.7 ms/frame 787 draws/frame, and frame-1024.png is the loading
key art rendered correctly at 1920×1080.

RTX 4070, VICTORY_D3D12_DEBUG=1 — 22× in one 7-minute run:

D3D12: ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane
count for device is 32. ... id=622 severity=1
WARN victory_gpu::pipeline::host: host pipeline refused error=…(0x80070057) shaders=[compute …]

and with VICTORY_D3D12_GBV=1:

Draw, SRV resource dimensions differs: Expected D3D12_SRV_DIMENSION_TEXTURE2D,
In Descriptor D3D12_SRV_DIMENSION_TEXTURE1D     (7×, e.g. [mesh d4111a6e6ea49d91, pixel c0a7fe77b1862e10])
Dispatch, UAV resource dimensions differs: Expected D3D12_UAV_DIMENSION_TEXTURE3D,
In Descriptor D3D12_UAV_DIMENSION_TEXTURE2D     (1×, heap index 372683)

The title itself is fine. Its own crash report (frame 1396) says
Current SRL fbk_stry000_FBK_STRY000_INTRO (Prestream), PED 87/600, VEHICLE 242/700,
BUILDING 8595/22500, player health 130/130 — the intro mission runs; only rendering is missing.

What I would like to know

  1. Should a dispatch whose UAVs resolve to None be dropped instead of submitted? This one is submitted and
    page-faults, which takes the whole device with it.
  2. Is wave64 → wave32 lowering planned for devices that report a maximum of 32
    (crates/victory-shader/src/emit/lower.rs:382 bakes it into the DXIL), or is a 64-lane device a hard
    requirement for the world?
  3. Would the GBV dimension mismatches (TEXTURE1D where TEXTURE2D is expected, TEXTURE2D where
    TEXTURE3D is expected) be worth asserting on in a diagnostics build?

Logs available on request (stderr per run, full DRED line, captured loading frames, the title's crash.log).
No game data attached.

**@⁠YorangSama** on GitHub · 2026-11-24 04:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/508) ### Summary Attempting the world on a Radeon integrated GPU (RDNA3, 64-lane waves) gets further than on the discrete NVIDIA card in the same machine, and DRED names the fault exactly: a compute dispatch writes two UAVs that resolve to `None`, whose descriptor heap is null, and the GPU page-faults. Same machine, same title, same build, two adapters (per-app GPU preference switches between them): * **RTX 4070** — 22 compute programs are refused at creation (`wave lane count of 64 … maximum … is 32`) and their dispatches are dropped; the world submission then removes the device. * **Radeon iGPU** — 0 wave64 refusals, 0 host-pipeline refusals, but a page fault in a compute dispatch. With `VICTORY_SHADER_LOOP_LIMIT=1000` the iGPU run's slow submissions drop from **20,518 ms to 444–498 ms** and it reaches 787 draws/frame, capturing loading frames correctly — so the loop limit works as the README describes. What remains is not slowness: after that, a submission still removes the device, with DRED pointing at an unbound UAV write. ### Setup - CPU: Ryzen with Radeon integrated graphics (RDNA3) **and** RTX 4070, driver 32.0.16.2114 - Windows 11 build 26300, `VICTORY_DXIL` = DXC 1.9.2609.5 `dxil.dll` - VIctory `d2a4bae`, `cargo build --profile diag -p victory --features diagnostics` - `victory.exe run <exe> --execute`, Series X profile unless noted ### Data **RDNA3 iGPU, `VICTORY_SHADER_LOOP_LIMIT=1000 VICTORY_D3D12_DRED=1`** — the failure: ``` host GPU device removed after a submission of 11 lists; page fault at 0x4994000; no title memory copy below it; the nearest above: 0x36a50000+0xae00000 at host 0x36bd80000 (670 copies in all) breadcrumbs ["2/2 None", "2/2 None", ...] list 10 of 11, of its 7: dispatch 128x64x1 [compute 2dc602192abf6288] 2dc602192abf6288: u5=0x15ff7a0 [heap 720829: null] u6=0x3a800000 u7=0x3b0000 tables ["... Srv s1+0: placed uav=false dim 1 288x1 f0 layout 0x1 at 0x3754f880", "... Uav s1+8: uav None", "... Uav s1+16: uav None", "... Uav s1+24: uav Some(\"80x45 f42 flags 0x4\")", "... Cbv s2+0: Constants"] ``` So `s1+8` and `s1+16` are unbound while the program writes them; `u5` points at a null heap. `VICTORY_SKIP_PIPELINES=2dc602192abf6288` gets past this one, but the next 26-list compute submission then removes the device too (`0x887A0006`), so it looks like a family rather than a single program. **Same run before the fault:** `1 fps 1600.7 ms/frame 787 draws/frame`, and `frame-1024.png` is the loading key art rendered correctly at 1920×1080. **RTX 4070, `VICTORY_D3D12_DEBUG=1`** — 22× in one 7-minute run: ``` D3D12: ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32. ... id=622 severity=1 WARN victory_gpu::pipeline::host: host pipeline refused error=…(0x80070057) shaders=[compute …] ``` and with `VICTORY_D3D12_GBV=1`: ``` Draw, SRV resource dimensions differs: Expected D3D12_SRV_DIMENSION_TEXTURE2D, In Descriptor D3D12_SRV_DIMENSION_TEXTURE1D (7×, e.g. [mesh d4111a6e6ea49d91, pixel c0a7fe77b1862e10]) Dispatch, UAV resource dimensions differs: Expected D3D12_UAV_DIMENSION_TEXTURE3D, In Descriptor D3D12_UAV_DIMENSION_TEXTURE2D (1×, heap index 372683) ``` **The title itself is fine.** Its own crash report (frame 1396) says `Current SRL fbk_stry000_FBK_STRY000_INTRO (Prestream)`, `PED 87/600`, `VEHICLE 242/700`, `BUILDING 8595/22500`, player health 130/130 — the intro mission runs; only rendering is missing. ### What I would like to know 1. Should a dispatch whose UAVs resolve to `None` be dropped instead of submitted? This one is submitted and page-faults, which takes the whole device with it. 2. Is wave64 → wave32 lowering planned for devices that report a maximum of 32 (`crates/victory-shader/src/emit/lower.rs:382` bakes it into the DXIL), or is a 64-lane device a hard requirement for the world? 3. Would the GBV dimension mismatches (`TEXTURE1D` where `TEXTURE2D` is expected, `TEXTURE2D` where `TEXTURE3D` is expected) be worth asserting on in a diagnostics build? Logs available on request (stderr per run, full DRED line, captured loading frames, the title's crash.log). No game data attached.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:06:33 +00:00
Author
Owner

@⁠BastienRodz on GitHub · 2026-11-24 04:43 UTC · original

I'm working on this. Reading the code: a descriptor slot the title never wrote a known view into is a null Texture2D SRV on the host (HostHeap::fill_null, and make_null for fresh tables). The translated shaders index the heap directly (SM 6.6), with the kind they expect in each handle's annotation. So the dispatch in your DRED (Uav s1+8: uav None, Uav s1+16: uav None) writes through SRV descriptors, which a GPU does not have to survive.

Plan: the translator records the resource kind it annotates for each table descriptor it reads (UAV or SRV; buffer, raw, structured or texture dimension). Where the title has no view, the host makes a null descriptor of that kind, so writes are dropped and reads return zero. I'll open a PR when it's tested. No game data used.

AI-assisted (Claude Code, Gemini).

**@⁠BastienRodz** on GitHub · 2026-11-24 04:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/508#issuecomment-7122285953) I'm working on this. Reading the code: a descriptor slot the title never wrote a known view into is a null **Texture2D SRV** on the host (`HostHeap::fill_null`, and `make_null` for fresh tables). The translated shaders index the heap directly (SM 6.6), with the kind they expect in each handle's annotation. So the dispatch in your DRED (`Uav s1+8: uav None`, `Uav s1+16: uav None`) writes through SRV descriptors, which a GPU does not have to survive. Plan: the translator records the resource kind it annotates for each table descriptor it reads (UAV or SRV; buffer, raw, structured or texture dimension). Where the title has no view, the host makes a null descriptor of that kind, so writes are dropped and reads return zero. I'll open a PR when it's tested. No game data used. AI-assisted (Claude Code, Gemini).
Author
Owner

@⁠wwwwwwww3333333 on GitHub · 2026-11-24 04:43 UTC · original

Source-level analysis; not runtime-tested with game files.

Q1 (drop dispatches with None UAVs): I think #135 already covers most of this. It writes a null view of the kind the shader expects into fresh tables (make_null_kind(index, u.kind, u.dwords)), and it drops the dispatch when a table can't be made. #336 also drops it.

One path it doesn't change: in State::table_entry, which handles tables that are not rebuilt, mirror() returns None for a slot with no view. The slot then keeps the null Texture2D SRV from fill_null/make_null. A shader that writes that index as a UAV through ResourceDescriptorHeap[] hits an SRV, which is a descriptor-type mismatch. That fits the RDNA3 page fault. #413 keeps make_null there as well. On top of #135, this could be a one-line follow-up: when u.kind == ResourceType::Uav and index < host.count(), call make_null_kind(index, u.kind, u.dwords).

I can't tell from the report whether s1+8/s1+16 came from a fresh table or a mirrored one. If you can test #135 on the iGPU with GBV enabled, that would show whether the second path matters.

Q2 (wave64 on 32-lane hosts): this is in progress in open PRs: #189, #233 and #223 (plus #54, #192 and #439 for small groups and LDS). The RTX refusals look like #71, #264 and #468.

Q3 (GBV in diagnostics): a diagnostics build already enables it with VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_GBV=1 (host.rs), and the first debug-layer error goes into the device-removed report. #205 fixes the Texture2D-vs-3D null UAV mismatch that GBV reports.

**@⁠wwwwwwww3333333** on GitHub · 2026-11-24 04:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/508#issuecomment-7122286770) **Source-level analysis; not runtime-tested with game files.** **Q1 (drop dispatches with `None` UAVs):** I think #135 already covers most of this. It writes a null view of the kind the shader expects into fresh tables (`make_null_kind(index, u.kind, u.dwords)`), and it drops the dispatch when a table can't be made. #336 also drops it. One path it doesn't change: in `State::table_entry`, which handles tables that are not rebuilt, `mirror()` returns `None` for a slot with no view. The slot then keeps the null **Texture2D SRV** from `fill_null`/`make_null`. A shader that writes that index as a UAV through `ResourceDescriptorHeap[]` hits an SRV, which is a descriptor-type mismatch. That fits the RDNA3 page fault. #413 keeps `make_null` there as well. On top of #135, this could be a one-line follow-up: when `u.kind == ResourceType::Uav` and `index < host.count()`, call `make_null_kind(index, u.kind, u.dwords)`. I can't tell from the report whether `s1+8`/`s1+16` came from a fresh table or a mirrored one. If you can test #135 on the iGPU with GBV enabled, that would show whether the second path matters. **Q2 (wave64 on 32-lane hosts):** this is in progress in open PRs: #189, #233 and #223 (plus #54, #192 and #439 for small groups and LDS). The RTX refusals look like #71, #264 and #468. **Q3 (GBV in diagnostics):** a diagnostics build already enables it with `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_GBV=1` (`host.rs`), and the first debug-layer error goes into the device-removed report. #205 fixes the Texture2D-vs-3D null UAV mismatch that GBV reports.
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 04:49 UTC · original

PR #552 addresses this crash:

  1. Unbound / \None\ UAV slots in descriptor tables now allocate valid null UAV descriptors (\make_null_uav) instead of falling back to default
    ull_view\ SRVs, ensuring hardware properly drops UAV writes per D3D12 spec instead of faulting on invalid descriptor types.

  2. ull_for\ now matches exact UAV dimensions (\Texture3D, \Texture1D, \Texture2DArray, \Buffer) from descriptor words rather than hardcoding \Texture2D, eliminating the GBV dimension mismatch error.
  3. \placed_texture\ now handles \View::Placed(true, ...)\ so placed UAV textures get mapped to host textures and transition to \UNORDERED_ACCESS.
  4. An opt-in \VICTORY_DROP_UNBOUND_UAV=1\ switch is added if you prefer to drop compute dispatches with unbound UAVs entirely.
**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 04:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/508#issuecomment-7122371606) PR #552 addresses this crash: 1. Unbound / \None\ UAV slots in descriptor tables now allocate valid null UAV descriptors (\make_null_uav\) instead of falling back to default \ ull_view\ SRVs, ensuring hardware properly drops UAV writes per D3D12 spec instead of faulting on invalid descriptor types. 2. \ ull_for\ now matches exact UAV dimensions (\Texture3D\, \Texture1D\, \Texture2DArray\, \Buffer\) from descriptor words rather than hardcoding \Texture2D\, eliminating the GBV dimension mismatch error. 3. \placed_texture\ now handles \View::Placed(true, ...)\ so placed UAV textures get mapped to host textures and transition to \UNORDERED_ACCESS\. 4. An opt-in \VICTORY_DROP_UNBOUND_UAV=1\ switch is added if you prefer to drop compute dispatches with unbound UAVs entirely.
Author
Owner

@⁠BastienRodz on GitHub · 2026-11-24 05:02 UTC · original

PR: #568. Empty table slots the shaders annotate now get a null descriptor of that kind (UAV or SRV; buffer, raw, structured, or the texture dimension) instead of the null 2D SRV. It is tested only with synthetic programs and descriptors, on vkd3d-proton over lavapipe. If you can, a diag run of #568 on the RDNA3 iGPU with VICTORY_D3D12_DRED=1 would show whether the fault in 2dc602192abf6288 goes away or moves.

AI-assisted (Claude Code).

**@⁠BastienRodz** on GitHub · 2026-11-24 05:02 UTC · [original](https://github.com/Marvisak/VIctory/issues/508#issuecomment-7122568309) PR: #568. Empty table slots the shaders annotate now get a null descriptor of that kind (UAV or SRV; buffer, raw, structured, or the texture dimension) instead of the null 2D SRV. It is tested only with synthetic programs and descriptors, on vkd3d-proton over lavapipe. If you can, a `diag` run of #568 on the RDNA3 iGPU with `VICTORY_D3D12_DRED=1` would show whether the fault in `2dc602192abf6288` goes away or moves. AI-assisted (Claude Code).
Author
Owner

@⁠SAitken91 on GitHub · 2026-11-24 06:38 UTC · original

Same failure on an RX 6950 XT (RDNA2): page faults at 0x4808000 / 0x481f000 with uav None entries in the DRED report, 3–4 s into the world. With #568 applied it lasted ~78 s before a fault in the same range; details and numbers in #568.

**@⁠SAitken91** on GitHub · 2026-11-24 06:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/508#issuecomment-7124148371) Same failure on an **RX 6950 XT (RDNA2)**: page faults at `0x4808000` / `0x481f000` with `uav None` entries in the DRED report, 3–4 s into the world. With #568 applied it lasted ~78 s before a fault in the same range; details and numbers in https://git.gtahub.st/github/Marvisak--VIctory/pulls/568.
Author
Owner

@⁠YorangSama on GitHub · 2026-11-24 17:51 UTC · original

Ran #568 (cd6d559) on the RDNA3 iGPU as you asked, and the fault moved — the unbound-UAV write is gone.

Setup

  • Same machine as the report: AMD Ryzen APU, RDNA3 integrated Radeon (64-lane), RTX 4070 disabled for this
    run via the per-app adapter preference.
  • diag profile of cd6d559, VICTORY_DXIL = DXC 1.9.2609.5, VICTORY_SHADER_LOOP_LIMIT=1000,
    VICTORY_D3D12_DRED=1, 240 s cap, Series X profile.

What changed

before #568 with #568
survived 95 s 182 s
draws/frame reached 787 5,591
uav None in the report 2 slots (s1+8, s1+16) 0
heap 720829: null yes 0
page fault address 0x4994000 0x59f8da000 (different)
2dc602192abf6288 as the faulting dispatch yes only appears as a bound program, not as the fault

So the typed null descriptors did what they should: the write that used to land on an SRV no longer faults.

The new failure — inside a freed texture

host GPU device removed after a submission of 4 lists; page fault at 0x59f8da000; inside freed
["texture 1024x1024 f83 flags 0x0 (type 34)"]; the nearest title memory copy below it:
0xb27800000+0x400000 at host 0x59ee80000, offset 0xa5a000; the nearest above:
0xb24400000+0x400000 at host 0x5a1100000 (934 copies in all);
view heap 0x104f30000+0x2e00000: 0x497baa000 past its end (slot 617927936);
sampler heap 0x107d30000+0x800: 0x497ba9800 past its end (slot 1232841216);
breadcrumbs ["2/2 None", ... , "463/463 None", "1223/1223 None", "2062/2062 None", "794/794 Some(1)", "106/106 Some(3)"];
list 1 of 4, of its 288: mesh 1 [mesh 81ded3fe93233db5, pixel c30831f17a5e4f49]
  81ded3fe93233db5: u8=0xa00000 [heap 327680: null] u9=0x132e520 [heap 628521: null]
                     u10=0x132e3a0 [heap 628509: null] u13=0x0 [heap 0: Shader(...) -> null]

Two things stand out:

  1. A 1024×1024 texture was freed while a command list still wrote it. This is a lifetime question, not a
    descriptor-kind question — it looks like the same shape #1348 describes ("DRED hides it", i.e. likely a
    fence/barrier or early-free rather than a bad shader).
  2. The view and sampler heaps are indexed past their end, with slot numbers that cannot be real
    (617927936 × 32 B ≈ 19.7 GB against a 48 MB heap; 1232841216 likewise). If that index comes from a
    descriptor that was never written, it would explain both the freed-texture fault and the earlier
    heap: null cases: a slot read as a descriptor index before the title wrote it.

Frame before the fault: 0.6 fps, 1600.1 ms/frame (709.4 preparing: copies 521.6 ms 269.6 MB, textures 31.4 ms 150.8 MB; 667.4 on the GPU; 200.3 copying back 13.0 MB), 3790 draws/frame — so it now runs a real world
workload, at these speeds.

Happy to run another revision, the same environment, on request.

**@⁠YorangSama** on GitHub · 2026-11-24 17:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/508#issuecomment-7139801413) Ran #568 (`cd6d559`) on the RDNA3 iGPU as you asked, and **the fault moved** — the unbound-UAV write is gone. ### Setup - Same machine as the report: AMD Ryzen APU, RDNA3 integrated Radeon (64-lane), RTX 4070 disabled for this run via the per-app adapter preference. - `diag` profile of `cd6d559`, `VICTORY_DXIL` = DXC 1.9.2609.5, `VICTORY_SHADER_LOOP_LIMIT=1000`, `VICTORY_D3D12_DRED=1`, 240 s cap, Series X profile. ### What changed | | before #568 | with #568 | |---|---|---| | survived | 95 s | **182 s** | | draws/frame reached | 787 | **5,591** | | `uav None` in the report | 2 slots (`s1+8`, `s1+16`) | **0** | | `heap 720829: null` | yes | **0** | | page fault address | `0x4994000` | `0x59f8da000` (different) | | `2dc602192abf6288` as the faulting dispatch | yes | only appears as a bound program, not as the fault | So the typed null descriptors did what they should: the write that used to land on an SRV no longer faults. ### The new failure — inside a freed texture ``` host GPU device removed after a submission of 4 lists; page fault at 0x59f8da000; inside freed ["texture 1024x1024 f83 flags 0x0 (type 34)"]; the nearest title memory copy below it: 0xb27800000+0x400000 at host 0x59ee80000, offset 0xa5a000; the nearest above: 0xb24400000+0x400000 at host 0x5a1100000 (934 copies in all); view heap 0x104f30000+0x2e00000: 0x497baa000 past its end (slot 617927936); sampler heap 0x107d30000+0x800: 0x497ba9800 past its end (slot 1232841216); breadcrumbs ["2/2 None", ... , "463/463 None", "1223/1223 None", "2062/2062 None", "794/794 Some(1)", "106/106 Some(3)"]; list 1 of 4, of its 288: mesh 1 [mesh 81ded3fe93233db5, pixel c30831f17a5e4f49] 81ded3fe93233db5: u8=0xa00000 [heap 327680: null] u9=0x132e520 [heap 628521: null] u10=0x132e3a0 [heap 628509: null] u13=0x0 [heap 0: Shader(...) -> null] ``` Two things stand out: 1. **A 1024×1024 texture was freed while a command list still wrote it.** This is a lifetime question, not a descriptor-kind question — it looks like the same shape #1348 describes ("DRED hides it", i.e. likely a fence/barrier or early-free rather than a bad shader). 2. **The view and sampler heaps are indexed past their end**, with slot numbers that cannot be real (`617927936` × 32 B ≈ 19.7 GB against a 48 MB heap; `1232841216` likewise). If that index comes from a descriptor that was never written, it would explain both the freed-texture fault and the earlier `heap: null` cases: a slot read as a descriptor index before the title wrote it. Frame before the fault: `0.6 fps, 1600.1 ms/frame (709.4 preparing: copies 521.6 ms 269.6 MB, textures 31.4 ms 150.8 MB; 667.4 on the GPU; 200.3 copying back 13.0 MB), 3790 draws/frame` — so it now runs a real world workload, at these speeds. Happy to run another revision, the same environment, on request.
Author
Owner

@⁠icdmkg2 on GitHub · 2026-11-24 18:37 UTC · original

Ran #568 (cd6d559) merged with #1409 (de109f1) on an RX 6750 XT (RDNA2). Hardware details are in #1348. I used VICTORY_D3D12_DRED=1 and a 360 s cap, on a release build with --features diagnostics.

before (main ffe310e + #1409) with #568
survived 90–130 s (3 runs) ~355 s
last frame 1132–1685 6350
peak draws/frame ~3700 6624

It ends the same way as in @⁠YorangSama's run above, inside a freed texture:

host GPU device removed (0x887a0006) after a submission of 30 lists; page fault at 0x515bd8000;
inside freed ["texture 1024x1024 f99 flags 0x0 (type 34)"]
list 6 of 30, of its 3: dispatch 128x128x1 [compute 7879df3c227ee5ad] ... Uav s0+0: uav 2048x2048 f49 flags 0x5
list 13 of 30, of its 25: indexed 60x1 [vertex d166c341988178de, pixel e370f602fa0db9b2]

Without #568, my second crash (#1348) was also inside a freed texture 1024x1024 ... (type 34). So the same freed-texture shape now shows up on RDNA2 and RDNA3, with and without #568. It looks like a texture-lifetime problem, separate from the typed nulls that #568 fixes.

One correction to the reading above: the view heap ...: 0x... past its end (slot N) lines are not an index the shader read. near_heaps() in descriptor/host.rs takes the fault address and places it against each heap's GPU range, and it prints that for every fault. A fault address gigabytes past a 48 MB heap just means the fault wasn't in a heap. It isn't evidence of a garbage descriptor index.

**@⁠icdmkg2** on GitHub · 2026-11-24 18:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/508#issuecomment-7140912999) Ran #568 (`cd6d559`) merged with #1409 (`de109f1`) on an **RX 6750 XT (RDNA2)**. Hardware details are in #1348. I used `VICTORY_D3D12_DRED=1` and a 360 s cap, on a release build with `--features diagnostics`. | | before (main `ffe310e` + #1409) | with #568 | |---|---|---| | survived | 90–130 s (3 runs) | **~355 s** | | last frame | 1132–1685 | **6350** | | peak draws/frame | ~3700 | **6624** | It ends the same way as in @⁠YorangSama's run above, inside a freed texture: ``` host GPU device removed (0x887a0006) after a submission of 30 lists; page fault at 0x515bd8000; inside freed ["texture 1024x1024 f99 flags 0x0 (type 34)"] list 6 of 30, of its 3: dispatch 128x128x1 [compute 7879df3c227ee5ad] ... Uav s0+0: uav 2048x2048 f49 flags 0x5 list 13 of 30, of its 25: indexed 60x1 [vertex d166c341988178de, pixel e370f602fa0db9b2] ``` Without #568, my second crash (#1348) was also inside a freed `texture 1024x1024 ... (type 34)`. So the same freed-texture shape now shows up on RDNA2 and RDNA3, with and without #568. It looks like a texture-lifetime problem, separate from the typed nulls that #568 fixes. One correction to the reading above: the `view heap ...: 0x... past its end (slot N)` lines are not an index the shader read. `near_heaps()` in `descriptor/host.rs` takes the *fault address* and places it against each heap's GPU range, and it prints that for every fault. A fault address gigabytes past a 48 MB heap just means the fault wasn't in a heap. It isn't evidence of a garbage descriptor index.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:47 UTC · original

Automated triage for the maintainers.

Confirmed on current main (940d32f). A host view-heap slot with no title view is still a null Texture2D SRV. HostHeap::fill_null fills new heaps with it, and HostHeap::make_null writes it when HostHeap::mirror finds no view; both use null_view, in crates/victory-gpu/src/descriptor/host.rs. Translated shaders index the heap directly, so a UAV write to such a slot uses an SRV descriptor. That is the Uav s1+8: uav None / [heap 720829: null] dispatch in the report. Since the report, d71c388 sends buffer reads at heap indices without a buffer view to the host's null buffer views. Texture UAVs in those slots are unchanged.

#568 (typed nulls) moved the fault in the reporter's A/B and in the RX 6750 XT run, but it was closed without merging. No open PR carries that change that I can point to.

The failure that remains with #568 (inside freed ["texture 1024x1024 ..."]) is a separate one, tracked in #557.

On the other questions: wave64 on 32-lane hosts has open PRs (#1929, #1890, and #1922 to refuse cleanly). GBV is already available in diagnostics builds via VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_GBV=1 (README, diagnostics table).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/508#issuecomment-7149959271) <!-- victory-issue-triage v1 verdict=confirmed seen=2026-11-24T18:37:46Z at=2026-11-25T01:47:19Z --> Automated triage for the maintainers. Confirmed on current `main` (`940d32f`). A host view-heap slot with no title view is still a null **Texture2D SRV**. `HostHeap::fill_null` fills new heaps with it, and `HostHeap::make_null` writes it when `HostHeap::mirror` finds no view; both use `null_view`, in `crates/victory-gpu/src/descriptor/host.rs`. Translated shaders index the heap directly, so a UAV write to such a slot uses an SRV descriptor. That is the `Uav s1+8: uav None` / `[heap 720829: null]` dispatch in the report. Since the report, d71c388 sends *buffer* reads at heap indices without a buffer view to the host's null buffer views. Texture UAVs in those slots are unchanged. #568 (typed nulls) moved the fault in the reporter's A/B and in the RX 6750 XT run, but it was closed without merging. No open PR carries that change that I can point to. The failure that remains with #568 (`inside freed ["texture 1024x1024 ..."]`) is a separate one, tracked in #557. On the other questions: wave64 on 32-lane hosts has open PRs (#1929, #1890, and #1922 to refuse cleanly). GBV is already available in diagnostics builds via `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_GBV=1` (README, diagnostics table). --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#508
No description provided.