Test report: RTX 5070 (Blackwell), Windows 11, 70564ae: 471 passed, 5 failed, 7 ignored (4 from the 1,000,000 view heap cap) #1744

Open
opened 2026-11-26 04:43:28 +00:00 by github-bot · 14 comments
Owner

@⁠kappalegoat on GitHub · 2026-11-24 21:49 UTC · original

Environment: Windows 11 Pro 26200, NVIDIA GeForce RTX 5070 (driver 621.24, single adapter), Intel Core Ultra 7 265KF, 32 GB, Rust 1.98.1 MSVC. main at 70564ae. No game files; the title was not run.

cargo test --workspace --locked --no-fail-fast → 471 passed, 5 failed, 7 ignored.

4 failures: the test hosts ask NVIDIA for more views than it allows

HEAP_VIEWS is 1 << 21 (2,097,152). NVIDIA refuses shader-visible CBV/SRV/UAV heaps over 1,000,000 descriptors, as the in-title reports in #1627 and #1620 show. The unit tests hit the same limit:

test result
victory-gpu descriptor::host::tests::dynamic_slots_are_held_until_released assertion failed: heap.heap.GetDesc().NumDescriptors >= victory_shader::emit::HEAP_VIEWS (host.rs:1418)
victory-gpu memory::tests::lists_share_a_table_and_copies_keep_their_views past the dynamic slots (memory.rs:673)
victory-shader emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros dispatch failed: The parameter is incorrect (the test host makes a HEAP_VIEWS heap for View::NullBuffers, emit/host.rs:1356)
victory-shader emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride wrong values: got [101, 104, 107, …, 131, 0, 0, …], want [200, 201, …, 231]

The last one I only attribute to the cap by elimination; I did not confirm it.

So on any NVIDIA machine these tests fail on main, whatever the shader work: either the tests should size their heap from what the device accepts, or they should be marked as needing a device that takes HEAP_VIEWS views.

1 failure that looks like a real hardware difference

victory-shader emit::synthetic_tests::gathers_at_a_level_match_the_hardware, lane 0: got [0.0, 1.0, 0.0, 0.0], want [0.0, 0.0, 0.0, 0.0] (synthetic_tests.rs:261). The expectation picks the gather footprint with first(u, w); on this GPU one texel of the 2x2 footprint differs at lane 0. I did not look further into which coordinate rounds differently.

Passing, for the record (relevant to FIND-5 in #1633)

All of emit::valu_tests pass on this card (in the 206 that passed of victory-shader), including v_med3_f32_matches_rdna2_with_nan: the VALU expectations agree with Blackwell hardware here.

AI-assisted (Claude Code).

**@⁠kappalegoat** on GitHub · 2026-11-24 21:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744) **Environment:** Windows 11 Pro 26200, NVIDIA GeForce RTX 5070 (driver 621.24, single adapter), Intel Core Ultra 7 265KF, 32 GB, Rust 1.98.1 MSVC. `main` at `70564ae`. No game files; the title was not run. `cargo test --workspace --locked --no-fail-fast` → **471 passed, 5 failed, 7 ignored**. ### 4 failures: the test hosts ask NVIDIA for more views than it allows `HEAP_VIEWS` is `1 << 21` (2,097,152). NVIDIA refuses shader-visible CBV/SRV/UAV heaps over 1,000,000 descriptors, as the in-title reports in #1627 and #1620 show. The unit tests hit the same limit: | test | result | |---|---| | `victory-gpu` `descriptor::host::tests::dynamic_slots_are_held_until_released` | `assertion failed: heap.heap.GetDesc().NumDescriptors >= victory_shader::emit::HEAP_VIEWS` (host.rs:1418) | | `victory-gpu` `memory::tests::lists_share_a_table_and_copies_keep_their_views` | `past the dynamic slots` (memory.rs:673) | | `victory-shader` `emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` | `dispatch failed: The parameter is incorrect` (the test host makes a `HEAP_VIEWS` heap for `View::NullBuffers`, emit/host.rs:1356) | | `victory-shader` `emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride` | wrong values: got `[101, 104, 107, …, 131, 0, 0, …]`, want `[200, 201, …, 231]` | The last one I only attribute to the cap by elimination; I did not confirm it. So on any NVIDIA machine these tests fail on `main`, whatever the shader work: either the tests should size their heap from what the device accepts, or they should be marked as needing a device that takes `HEAP_VIEWS` views. ### 1 failure that looks like a real hardware difference `victory-shader` `emit::synthetic_tests::gathers_at_a_level_match_the_hardware`, lane 0: got `[0.0, 1.0, 0.0, 0.0]`, want `[0.0, 0.0, 0.0, 0.0]` (synthetic_tests.rs:261). The expectation picks the gather footprint with `first(u, w)`; on this GPU one texel of the 2x2 footprint differs at lane 0. I did not look further into which coordinate rounds differently. ### Passing, for the record (relevant to FIND-5 in #1633) All of `emit::valu_tests` pass on this card (in the 206 that passed of `victory-shader`), including `v_med3_f32_matches_rdna2_with_nan`: the VALU expectations agree with Blackwell hardware here. AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:43:29 +00:00
Author
Owner

@⁠alexdeliu on GitHub · 2026-11-24 21:54 UTC · original

AMD counterpart, same commit. AMD RX 9070 (RDNA4, driver 32.0.32029.2010), Windows 11, main at 70564ae, Windows SDK 10.0.26100 dxil.dll (1.7.2308). No game files.

cargo test --workspace --locked --no-fail-fast: 474 passed, 2 failed, 7 ignored.

test RTX 5070 (above) RX 9070
descriptor::host::tests::dynamic_slots_are_held_until_released fail pass
memory::tests::lists_share_a_table_and_copies_keep_their_views fail pass
stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros fail pass
stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride fail pass
synthetic_tests::gathers_at_a_level_match_the_hardware fail pass
synthetic_tests::permutes_read_the_lane_named_and_zero_from_lanes_left_out (pass) pass
emit::rect::tests::rectangles_get_their_fourth_corner (pass) fail
emit::tests::elements_sharing_a_row_keep_their_order (pass) fail
  • The heap-cap four pass on AMD. This supports @⁠kappalegoat's reading: AMD accepts a HEAP_VIEWS (2²¹) heap and NVIDIA refuses more than 1,000,000.
  • The gather test's expectation matches AMD. On the RTX 5070 one footprint texel differs at lane 0. On CI, the runner's software adapter (labelled "hardware") differs too: run 45492970391 shows lane 4 against its gather, got [66, 67, 35, 34], want [65, 66, 34, 33], and no device ran the permute. Those two are why main's CI is red. Both pass here on the RX 9070, and on the WARP of this Windows 11 build. So they look like device-dependent footprints and wave-op support rather than translation bugs. Gating them to hardware that matches, as valu_tests does with known hosts, would turn CI green.
  • The two failures here are not AMD-specific. They are the PSV0 bug with repeated semantic names (Container part 'Pipeline State Validation' does not match), which only validators older than 1.8 catch, and the Windows SDK still ships 1.7. #306 (e3067ae) writes one PSV0 string per element and fixes them. RTX hosts with a 1.8+ dxil.dll don't see them.
**@⁠alexdeliu** on GitHub · 2026-11-24 21:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7145547457) AMD counterpart, same commit. **AMD RX 9070 (RDNA4, driver 32.0.32029.2010)**, Windows 11, `main` at `70564ae`, Windows SDK 10.0.26100 `dxil.dll` (1.7.2308). No game files. `cargo test --workspace --locked --no-fail-fast`: **474 passed, 2 failed, 7 ignored.** | test | RTX 5070 (above) | RX 9070 | |---|---|---| | `descriptor::host::tests::dynamic_slots_are_held_until_released` | fail | pass | | `memory::tests::lists_share_a_table_and_copies_keep_their_views` | fail | pass | | `stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` | fail | pass | | `stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride` | fail | pass | | `synthetic_tests::gathers_at_a_level_match_the_hardware` | fail | pass | | `synthetic_tests::permutes_read_the_lane_named_and_zero_from_lanes_left_out` | (pass) | pass | | `emit::rect::tests::rectangles_get_their_fourth_corner` | (pass) | **fail** | | `emit::tests::elements_sharing_a_row_keep_their_order` | (pass) | **fail** | - **The heap-cap four pass on AMD.** This supports @⁠kappalegoat's reading: AMD accepts a `HEAP_VIEWS` (2²¹) heap and NVIDIA refuses more than 1,000,000. - **The gather test's expectation matches AMD.** On the RTX 5070 one footprint texel differs at lane 0. On CI, the runner's software adapter (labelled "hardware") differs too: run 45492970391 shows `lane 4 against its gather`, got `[66, 67, 35, 34]`, want `[65, 66, 34, 33]`, and `no device ran the permute`. Those two are why `main`'s CI is red. Both pass here on the RX 9070, and on the WARP of this Windows 11 build. So they look like device-dependent footprints and wave-op support rather than translation bugs. Gating them to hardware that matches, as `valu_tests` does with known hosts, would turn CI green. - **The two failures here are not AMD-specific.** They are the PSV0 bug with repeated semantic names (`Container part 'Pipeline State Validation' does not match`), which only validators older than 1.8 catch, and the Windows SDK still ships 1.7. #306 (`e3067ae`) writes one PSV0 string per element and fixes them. RTX hosts with a 1.8+ `dxil.dll` don't see them.
Author
Owner

@⁠Capi360 on GitHub · 2026-11-24 22:00 UTC · original

I reproduced this on Windows 11 Pro build 26200, Ryzen 7 5700X3D, 32 GiB RAM, RTX 3060 Ti 8 GiB (NVIDIA 616.56), starting from 70564ae.

I tested a diagnostic build compiled for 1,000,000 view slots. It reserves the fallback descriptors inside the capped heap and skips out-of-range slots during background mirroring. The heap allocator regression, shared-table test, and missing-buffer-view zero-read test pass on this build. The element-stride test still fails on hardware with the same 101, 104, 107 sequence followed by zeros. This isolates that failure from the oversized test heap.

I also ran the title locally. The diagnostic build reached more startup frames and reduced the startup log from about 86 MB to 71 KB. The GPU still reset before world entry. Windows had ample commit headroom, so this run did not hit the memory cutoff. Exact experimental revision. AI-assisted.

**@⁠Capi360** on GitHub · 2026-11-24 22:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7145679232) I reproduced this on Windows 11 Pro build 26200, Ryzen 7 5700X3D, 32 GiB RAM, RTX 3060 Ti 8 GiB (NVIDIA 616.56), starting from 70564ae. I tested a diagnostic build compiled for 1,000,000 view slots. It reserves the fallback descriptors inside the capped heap and skips out-of-range slots during background mirroring. The heap allocator regression, shared-table test, and missing-buffer-view zero-read test pass on this build. The element-stride test still fails on hardware with the same 101, 104, 107 sequence followed by zeros. This isolates that failure from the oversized test heap. I also ran the title locally. The diagnostic build reached more startup frames and reduced the startup log from about 86 MB to 71 KB. The GPU still reset before world entry. Windows had ample commit headroom, so this run did not hit the memory cutoff. [Exact experimental revision](https://github.com/Capi360/VIctory/commit/cf862d08b5ec09868d9a5dfb5f1bedaba83dbf33). AI-assisted.
Author
Owner

@⁠kappalegoat on GitHub · 2026-11-24 22:20 UTC · original

Correction and root cause for a_heap_buffer_read_by_element_takes_the_views_stride. @⁠Capi360 is right: it is not the heap cap. It is a view-type mismatch that NVIDIA does not tolerate.

What the test does. The buffer at heap index 1 is a structured SRV (Stride::Structured(12)). The program reads it with buffer_load_dword … idxen offset:4 through a heap-indexed descriptor, so lower.rs takes the "heap-indexed buffer read by element" path: it reads the stride from the view-stride table and emits rawBufferLoad on a raw (ByteAddressBuffer, kind 11) handle at byte index * stride + offset (view_stride, and the block after it in buffer()). A raw handle on a structured descriptor is undefined in D3D12; AMD and WARP read the bytes anyway, NVIDIA does not.

The numbers fit exactly. Lane l asks for byte 12l + 4 (want 200 + l). The RTX 5070 returns 101 + 3l, which is the first dword of structured element (12l + 4) / 4 = 3l + 1: NVIDIA takes the raw byte offset in dwords as the element number and multiplies by the descriptor's own stride. Lanes 0-10 land on elements 1..31; lane 11 on would be element 34 and up, past the 32 elements, so 0. That is the [101, 104, …, 131, 0, …] in the report.

Experiment. Same test, only the heap view changed to Stride::Raw (the stride table still says 12): passes on the RTX 5070 and on WARP. Restored afterwards; no change proposed to the test.

Why it matters for the title. The runtime mirrors the title's buffer SRVs into the host heap with their own description (descriptor/host.rs, buffer_srv), so a title StructuredBuffer stays structured there, and every translated heap-indexed read of it by element is this raw-on-structured access. On NVIDIA those reads return wrong data or zeros. #984 fixes the same mismatch for table-bound structured buffers (known stride); the heap-indexed path from #155's stride table is not covered by it.

Not a one-line fix, as far as I can see: the same host slot is also read through tables as structured, so the slot cannot simply become raw. Two directions: the stride table also says whether a slot is structured, and the shader reads structured slots through a structured handle (index, offset) instead of a byte address; or the runtime keeps a raw twin of each structured heap view for heap-indexed reads. That is a maintainer's call, so I am reporting it as a finding rather than writing either.

No game files used. AI-assisted (Claude Code).

**@⁠kappalegoat** on GitHub · 2026-11-24 22:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7146111877) **Correction and root cause for `a_heap_buffer_read_by_element_takes_the_views_stride`.** @⁠Capi360 is right: it is not the heap cap. It is a view-type mismatch that NVIDIA does not tolerate. **What the test does.** The buffer at heap index 1 is a *structured* SRV (`Stride::Structured(12)`). The program reads it with `buffer_load_dword … idxen offset:4` through a heap-indexed descriptor, so `lower.rs` takes the "heap-indexed buffer read by element" path: it reads the stride from the view-stride table and emits `rawBufferLoad` on a **raw** (`ByteAddressBuffer`, kind 11) handle at byte `index * stride + offset` (`view_stride`, and the block after it in `buffer()`). A raw handle on a structured descriptor is undefined in D3D12; AMD and WARP read the bytes anyway, NVIDIA does not. **The numbers fit exactly.** Lane `l` asks for byte `12l + 4` (want `200 + l`). The RTX 5070 returns `101 + 3l`, which is the first dword of structured element `(12l + 4) / 4 = 3l + 1`: NVIDIA takes the raw byte offset in dwords as the element number and multiplies by the descriptor's own stride. Lanes 0-10 land on elements 1..31; lane 11 on would be element 34 and up, past the 32 elements, so 0. That is the `[101, 104, …, 131, 0, …]` in the report. **Experiment.** Same test, only the heap view changed to `Stride::Raw` (the stride table still says 12): passes on the RTX 5070 and on WARP. Restored afterwards; no change proposed to the test. **Why it matters for the title.** The runtime mirrors the title's buffer SRVs into the host heap with their own description (`descriptor/host.rs`, `buffer_srv`), so a title `StructuredBuffer` stays structured there, and every translated heap-indexed read of it by element is this raw-on-structured access. On NVIDIA those reads return wrong data or zeros. #984 fixes the same mismatch for **table-bound** structured buffers (known stride); the heap-indexed path from #155's stride table is not covered by it. **Not a one-line fix**, as far as I can see: the same host slot is also read through tables as structured, so the slot cannot simply become raw. Two directions: the stride table also says whether a slot is structured, and the shader reads structured slots through a structured handle (`index`, `offset`) instead of a byte address; or the runtime keeps a raw twin of each structured heap view for heap-indexed reads. That is a maintainer's call, so I am reporting it as a finding rather than writing either. No game files used. AI-assisted (Claude Code).
Author
Owner

@⁠tumbubu on GitHub · 2026-11-24 22:30 UTC · original

RDNA3 counterpart on the same commit: 476 passed, 0 failed, 7 ignored. Both PSV0 tests pass here too, with a newer dxil.dll.

  • AMD Radeon RX 7900 XT (RDNA3, driver 32.0.31036.15), Windows 11 Pro 26300, main at 70564ae
  • cargo test --workspace --locked -- --test-threads=1
  • Validator: Windows SDK 10.0.26100 installed today with winget. Its bin\10.0.26100.0\x64\dxil.dll (and dxc.exe) report 1.9.2602.17, not 1.7.2308.
test RTX 5070 RX 9070 (dxil 1.7.2308) RX 7900 XT (dxil 1.9.2602.17)
descriptor::host::tests::dynamic_slots_are_held_until_released fail pass pass
memory::tests::lists_share_a_table_and_copies_keep_their_views fail pass pass
stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros fail pass pass
stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride fail pass pass
synthetic_tests::gathers_at_a_level_match_the_hardware fail pass pass
emit::rect::tests::rectangles_get_their_fourth_corner pass fail pass
emit::tests::elements_sharing_a_row_keep_their_order pass fail pass

This fits @⁠alexdeliu's reading of the two PSV0 failures: only validators older than 1.8 catch them, and they are not AMD-specific. One correction to "the Windows SDK still ships 1.7": a current install of SDK 10.0.26100 ships 1.9.2602.17, so the result depends on when the SDK was installed. The heap-cap four and the gather test pass on a second AMD generation.

AI-assisted (Claude Code); synthetic tests only, no game files.

**@⁠tumbubu** on GitHub · 2026-11-24 22:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7146310029) **RDNA3 counterpart on the same commit: 476 passed, 0 failed, 7 ignored. Both PSV0 tests pass here too, with a newer `dxil.dll`.** - AMD Radeon RX 7900 XT (RDNA3, driver 32.0.31036.15), Windows 11 Pro 26300, `main` at `70564ae` - `cargo test --workspace --locked -- --test-threads=1` - Validator: Windows SDK 10.0.26100 installed today with winget. Its `bin\10.0.26100.0\x64\dxil.dll` (and `dxc.exe`) report **1.9.2602.17**, not 1.7.2308. | test | RTX 5070 | RX 9070 (dxil 1.7.2308) | RX 7900 XT (dxil 1.9.2602.17) | |---|---|---|---| | `descriptor::host::tests::dynamic_slots_are_held_until_released` | fail | pass | pass | | `memory::tests::lists_share_a_table_and_copies_keep_their_views` | fail | pass | pass | | `stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` | fail | pass | pass | | `stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride` | fail | pass | pass | | `synthetic_tests::gathers_at_a_level_match_the_hardware` | fail | pass | pass | | `emit::rect::tests::rectangles_get_their_fourth_corner` | pass | fail | **pass** | | `emit::tests::elements_sharing_a_row_keep_their_order` | pass | fail | **pass** | This fits @⁠alexdeliu's reading of the two PSV0 failures: only validators older than 1.8 catch them, and they are not AMD-specific. One correction to "the Windows SDK still ships 1.7": a current install of SDK 10.0.26100 ships 1.9.2602.17, so the result depends on when the SDK was installed. The heap-cap four and the gather test pass on a second AMD generation. AI-assisted (Claude Code); synthetic tests only, no game files.
Author
Owner

@⁠kappalegoat on GitHub · 2026-11-24 22:32 UTC · original

What NVIDIA does with the stride, measured: a structured read is right only when the handle's annotated stride equals the view's. This decides how the heap-indexed path can be fixed, so here are the numbers before anyone writes code (I claimed the fix in #1633).

Same test (a_heap_buffer_read_by_element_takes_the_views_stride, a structured SRV of stride 12 at heap index 1), RTX 5070, driver 621.24, with an experimental lowering that reads the slot through a structured handle (annotateHandle kind 12) at (index, offset) instead of a raw handle at a byte address. Only the annotated stride changes between runs; the view's StructureByteStride is 12 throughout:

annotated stride lanes 0-3 read result
raw handle (main) 101, 104, 107, 110 fail
4 101, 102, 103, 104 fail
12 (the view's) 200, 201, 202, 203 pass
16 200, 301, 103, 204 fail

With 16, lane l reads the dword at byte 16l + 4 of the buffer: the address follows the annotated stride, not the view's 12. (With 4 the pattern is different again, element l + 1 at offset 0; I have not worked out why, but it is wrong either way.)

So a structured handle is only correct when the stride is known when the shader is compiled. That holds on the table path (UsedResource.stride, which is what #984 relies on), but not on the heap-indexed path, where the stride is only in the runtime's view-stride table. Reading the table's value at run time cannot feed annotateHandle, whose properties are constants.

What would work, as far as I can tell:

  1. Raw host views for buffers in the heap. The test passes with the same slot as a raw view (shown earlier). If the runtime mirrors title buffer views as raw (R32_TYPELESS + RAW), the heap path is correct as it is, and the table path reads them raw too, at index * stride + offset with its known stride. One typing everywhere. The costs: raw views need a 16-byte aligned start (D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT), and a structured view starting at an arbitrary element is not (#986 is about the same alignment), and it runs the opposite way to #984.
  2. A second, raw view per structured heap slot, used only by heap-indexed reads (a second heap range, or a table of raw twins). It keeps typed and structured reads as they are, but costs descriptors on hosts that are already capped (#1777, #1779).
  3. A switch on the table's stride over the strides the title uses, each case with its own annotated handle. Correct, but closed: a stride outside the list stays wrong.

Before writing one of them: @⁠Marvisak, which direction would you take? I would go for 1 unless the alignment of title views makes it impractical, in which case 2.

Test files were restored afterwards; nothing in a branch yet. No game files used. AI-assisted (Claude Code).

**@⁠kappalegoat** on GitHub · 2026-11-24 22:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7146360154) **What NVIDIA does with the stride, measured: a structured read is right only when the handle's annotated stride equals the view's.** This decides how the heap-indexed path can be fixed, so here are the numbers before anyone writes code (I claimed the fix in #1633). Same test (`a_heap_buffer_read_by_element_takes_the_views_stride`, a structured SRV of stride 12 at heap index 1), RTX 5070, driver 621.24, with an experimental lowering that reads the slot through a **structured** handle (`annotateHandle` kind 12) at (`index`, `offset`) instead of a raw handle at a byte address. Only the annotated stride changes between runs; the view's `StructureByteStride` is 12 throughout: | annotated stride | lanes 0-3 read | result | |---|---|---| | raw handle (`main`) | 101, 104, 107, 110 | fail | | 4 | 101, 102, 103, 104 | fail | | **12** (the view's) | 200, 201, 202, 203 | **pass** | | 16 | 200, 301, 103, 204 | fail | With 16, lane `l` reads the dword at byte `16l + 4` of the buffer: the address follows the annotated stride, not the view's 12. (With 4 the pattern is different again, element `l + 1` at offset 0; I have not worked out why, but it is wrong either way.) **So a structured handle is only correct when the stride is known when the shader is compiled.** That holds on the table path (`UsedResource.stride`, which is what #984 relies on), but not on the heap-indexed path, where the stride is only in the runtime's view-stride table. Reading the table's value at run time cannot feed `annotateHandle`, whose properties are constants. What would work, as far as I can tell: 1. **Raw host views for buffers in the heap.** The test passes with the same slot as a raw view (shown earlier). If the runtime mirrors title buffer views as raw (`R32_TYPELESS` + `RAW`), the heap path is correct as it is, and the table path reads them raw too, at `index * stride + offset` with its known stride. One typing everywhere. The costs: raw views need a 16-byte aligned start (`D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT`), and a structured view starting at an arbitrary element is not (#986 is about the same alignment), and it runs the opposite way to #984. 2. **A second, raw view per structured heap slot**, used only by heap-indexed reads (a second heap range, or a table of raw twins). It keeps typed and structured reads as they are, but costs descriptors on hosts that are already capped (#1777, #1779). 3. **A switch on the table's stride** over the strides the title uses, each case with its own annotated handle. Correct, but closed: a stride outside the list stays wrong. Before writing one of them: @⁠Marvisak, which direction would you take? I would go for 1 unless the alignment of title views makes it impractical, in which case 2. Test files were restored afterwards; nothing in a branch yet. No game files used. AI-assisted (Claude Code).
Author
Owner

@⁠Vedoxdev123 on GitHub · 2026-11-24 22:38 UTC · original

Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060 (Ada Lovelace) on latest main:

cargo test -p victory-shader -> 206 passed; 3 failed; 2 ignored

Reproduced the exact same 3 victory-shader failures reported on RTX 3070 and RTX 5070:

  • emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride (left: [101, 104, 107, ...], right: [200, 201, 202, ...])
  • emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros (hardware: dispatch failed: The parameter is incorrect.)
  • emit::synthetic_tests::gathers_at_a_level_match_the_hardware (left: [0.0, 1.0, 0.0, 0.0], right: [0.0, 0.0, 0.0, 0.0])
**@⁠Vedoxdev123** on GitHub · 2026-11-24 22:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7146462622) Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060 (Ada Lovelace) on latest `main`: `cargo test -p victory-shader` -> **206 passed; 3 failed; 2 ignored** Reproduced the exact same 3 `victory-shader` failures reported on RTX 3070 and RTX 5070: - `emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride` (`left: [101, 104, 107, ...]`, `right: [200, 201, 202, ...]`) - `emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` (`hardware: dispatch failed: The parameter is incorrect.`) - `emit::synthetic_tests::gathers_at_a_level_match_the_hardware` (`left: [0.0, 1.0, 0.0, 0.0]`, `right: [0.0, 0.0, 0.0, 0.0]`)
Author
Owner

@⁠JurajSimicevic on GitHub · 2026-11-24 22:46 UTC · original

@⁠kappalegoat, a second symptom of the structured-view read you claimed, in case your fix only covers the heap-indexed path: synthetic_tests::gathers_at_a_level_match_the_hardware fails on NVIDIA for the same reason, not for anything in the gather lowering.

  • RTX 5080 (driver 32.0.16.1742), main at 70564ae. Printing every lane instead of stopping at the first: all 32 lanes on hardware get footprints at (0, 0) of level 0 ([0, 1, 0, 0], a few [0, 3001, 0, 0]), whatever coordinates they were given; WARP gets all 32 right. So the program reads its input records as zeros.
  • The records are a structured view (Stride::Structured(16)) bound through a table and read with buffer_load_dwordx4 … offen (a byte offset), not heap-indexed by element as in the stride test.
  • With only the test's input changed to Stride::Raw, both gather tests pass on the RTX 5080, with gather_first and the rest of the lowering untouched.

So a fix that reads structured slots through a structured handle (or binds them raw) on the table path too would make this test pass on NVIDIA as well. I've released my claim on it in #1633.

AI-assisted.

**@⁠JurajSimicevic** on GitHub · 2026-11-24 22:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7146633340) @⁠kappalegoat, a second symptom of the structured-view read you claimed, in case your fix only covers the heap-indexed path: `synthetic_tests::gathers_at_a_level_match_the_hardware` fails on NVIDIA for the same reason, not for anything in the gather lowering. - RTX 5080 (driver 32.0.16.1742), `main` at 70564ae. Printing every lane instead of stopping at the first: **all 32 lanes** on hardware get footprints at (0, 0) of level 0 (`[0, 1, 0, 0]`, a few `[0, 3001, 0, 0]`), whatever coordinates they were given; WARP gets all 32 right. So the program reads its input records as zeros. - The records are a **structured** view (`Stride::Structured(16)`) bound **through a table** and read with `buffer_load_dwordx4 … offen` (a byte offset), not heap-indexed by element as in the stride test. - With only the test's input changed to `Stride::Raw`, both gather tests pass on the RTX 5080, with `gather_first` and the rest of the lowering untouched. So a fix that reads structured slots through a structured handle (or binds them raw) on the table path too would make this test pass on NVIDIA as well. I've released my claim on it in #1633. AI-assisted.
Author
Owner

@⁠marquezinii on GitHub · 2026-11-24 22:53 UTC · original

RTX 5070 (driver 621.40), 70564ae: same element-stride failure. With structured views made raw both in the runtime and in victory-shader's test host, it passes, and the table-structured tests still pass through raw views. Details and a patch that covers views not on 16 bytes are in #1762 (comment there). On this driver gathers_at_a_level_match_the_hardware passed in every run here, while 621.24 failed it above.

**@⁠marquezinii** on GitHub · 2026-11-24 22:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7146761705) RTX 5070 (driver 621.40), `70564ae`: same element-stride failure. With structured views made raw both in the runtime and in `victory-shader`'s test host, it passes, and the table-structured tests still pass through raw views. Details and a patch that covers views not on 16 bytes are in #1762 (comment there). On this driver `gathers_at_a_level_match_the_hardware` passed in every run here, while 621.24 failed it above.
Author
Owner

@⁠welisonzika14-jpg on GitHub · 2026-11-24 23:30 UTC · original

RTX 5070 (driver 621.24, Windows 11, Rust 1.98.1 MSVC), all on top of 70564ae, one PR at a time. Five open PRs try to fix the 1,000,000 view heap cap, so here is how each does on this card (cargo test -p victory-gpu -p victory-shader --lib, no game files):

victory-gpu victory-shader diff size
main 76 ok, 2 fail 206 ok, 3 fail
#1751 78 ok 206 ok, 3 fail +27/-4, 1 file
#1770 78 ok 206 ok, 3 fail +26/-4, 2 files
#1848 78 ok 207 ok, 2 fail +23/-3, 2 files
#1777 79 ok 207 ok, 2 fail +136/-50, 7 files
#1779 80 ok 207 ok, 2 fail +369/-69, 10 files

What I see:

  • All five fix the 2 victory-gpu tests.
  • #1848, #1777 and #1779 also fix a_heap_buffer_read_where_no_buffer_view_is_reads_zeros, because they change the heap size on the shader side too. #1751 and #1770 only touch victory-gpu, so that test still fails with them.
  • With any of them, the 2 failures left are a_heap_buffer_read_by_element_takes_the_views_stride and gathers_at_a_level_match_the_hardware. They are the structured/raw view problem, not the heap cap (see #1762).

Limits: I only ran the unit tests. I did not read the code of each PR for quality, and I did not run the title. The PRs were at these heads: #1751 4521591, #1770 1beaca6, #1848 a3caa6b, #1777 3635e70, #1779 a63eb93. I tested them separately, not in pairs.

Written with AI help (Claude/Kiro). The numbers are from runs on my machine.

**@⁠welisonzika14-jpg** on GitHub · 2026-11-24 23:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7147487246) RTX 5070 (driver 621.24, Windows 11, Rust 1.98.1 MSVC), all on top of `70564ae`, one PR at a time. Five open PRs try to fix the 1,000,000 view heap cap, so here is how each does on this card (`cargo test -p victory-gpu -p victory-shader --lib`, no game files): | | `victory-gpu` | `victory-shader` | diff size | |---|---|---|---| | `main` | 76 ok, 2 fail | 206 ok, 3 fail | | | #1751 | 78 ok | 206 ok, 3 fail | +27/-4, 1 file | | #1770 | 78 ok | 206 ok, 3 fail | +26/-4, 2 files | | #1848 | 78 ok | 207 ok, 2 fail | +23/-3, 2 files | | #1777 | 79 ok | 207 ok, 2 fail | +136/-50, 7 files | | #1779 | 80 ok | 207 ok, 2 fail | +369/-69, 10 files | What I see: - All five fix the 2 `victory-gpu` tests. - #1848, #1777 and #1779 also fix `a_heap_buffer_read_where_no_buffer_view_is_reads_zeros`, because they change the heap size on the shader side too. #1751 and #1770 only touch `victory-gpu`, so that test still fails with them. - With any of them, the 2 failures left are `a_heap_buffer_read_by_element_takes_the_views_stride` and `gathers_at_a_level_match_the_hardware`. They are the structured/raw view problem, not the heap cap (see #1762). Limits: I only ran the unit tests. I did not read the code of each PR for quality, and I did not run the title. The PRs were at these heads: #1751 `4521591`, #1770 `1beaca6`, #1848 `a3caa6b`, #1777 `3635e70`, #1779 `a63eb93`. I tested them separately, not in pairs. Written with AI help (Claude/Kiro). The numbers are from runs on my machine.
Author
Owner

@⁠LocranKing on GitHub · 2026-11-25 07:30 UTC · original

Reproduced the exact same 5 failures on main (940d32f) on an NVIDIA GeForce RTX 3060 Ti 8 GB (Ampere, driver 32.0.16.1088, Windows 11 10.0.26300, Rust 1.98.1): 638 passed, 5 failed, 10 ignored.

One root-cause note on the 5th failure (emit::synthetic_tests::gathers_at_a_level_match_the_hardware, lane 0: got [0.0, 1.0, 0.0, 0.0], want [0.0, 0.0, 0.0, 0.0]): it is not a gather rounding difference on NVIDIA — it is the same Stride::Structured + rawBufferLoad bug (FIND-11) as stride_tests.

In crates/victory-shader/src/emit/synthetic_tests.rs:210-213, the input buffer is bound as Stride::Structured(16). When lane 0 reads its record's four dwords at byte offsets 0, 4, 8, 12 via rawBufferLoad on a 16-byte structured SRV, NVIDIA divides the byte offset by 4 and indexes structured elements 0, 1, 2, 3 at dword 0 instead:

  • records[1][0] == 0 → u = 0.0 (first(0.0, 24) = -1)
  • records[2][0] == 0 → v = 0.0 (first(0.0, 16) = -1)
  • records[3][0] == 0 → level = 0

At (x = -1, y = -1, level = 0), component 1 ((x + 1, y + 1) = (0, 0)) reads texel(0, 0, 0) = 1.0, producing [0.0, 1.0, 0.0, 0.0]. So once Stride::Structured views in the test host (emit/host.rs) are created as raw views alongside #1779, all 5 NVIDIA test failures are accounted for without any gather lowering discrepancy.

AI use: Antigravity (Gemini 4 Carbon) ran the tests on my machine, traced the coordinates, and drafted this note; checked before posting.

**@⁠LocranKing** on GitHub · 2026-11-25 07:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7155927260) Reproduced the exact same 5 failures on `main` (`940d32f`) on an **NVIDIA GeForce RTX 3060 Ti 8 GB** (Ampere, driver `32.0.16.1088`, Windows 11 `10.0.26300`, Rust `1.98.1`): `638 passed, 5 failed, 10 ignored`. One root-cause note on the 5th failure (`emit::synthetic_tests::gathers_at_a_level_match_the_hardware`, lane 0: got `[0.0, 1.0, 0.0, 0.0]`, want `[0.0, 0.0, 0.0, 0.0]`): **it is not a gather rounding difference on NVIDIA — it is the same `Stride::Structured` + `rawBufferLoad` bug (`FIND-11`) as `stride_tests`**. In `crates/victory-shader/src/emit/synthetic_tests.rs:210-213`, the input buffer is bound as `Stride::Structured(16)`. When lane 0 reads its record's four dwords at byte offsets `0, 4, 8, 12` via `rawBufferLoad` on a 16-byte structured SRV, NVIDIA divides the byte offset by 4 and indexes structured elements `0, 1, 2, 3` at dword 0 instead: - `records[1][0] == 0` → `u = 0.0` (`first(0.0, 24) = -1`) - `records[2][0] == 0` → `v = 0.0` (`first(0.0, 16) = -1`) - `records[3][0] == 0` → `level = 0` At `(x = -1, y = -1, level = 0)`, component 1 (`(x + 1, y + 1) = (0, 0)`) reads `texel(0, 0, 0) = 1.0`, producing `[0.0, 1.0, 0.0, 0.0]`. So once `Stride::Structured` views in the test host (`emit/host.rs`) are created as raw views alongside `#1779`, all 5 NVIDIA test failures are accounted for without any gather lowering discrepancy. AI use: Antigravity (Gemini 4 Carbon) ran the tests on my machine, traced the coordinates, and drafted this note; checked before posting.
Author
Owner

@⁠romeawayfromhome-rgb on GitHub · 2026-11-25 10:51 UTC · original

Additional RTX 2080 evidence for this heap-view failure:

  • VIctory HEAD: 940d32f
  • GPU/driver: NVIDIA GeForce RTX 2080, driver 621.14
  • Command: cargo test -p victory-shader --lib --locked -- --test-threads=1
  • Suite result: 244 passed, 3 failed, 3 ignored
  • v_med3_f32_matches_rdna2_with_nan passes.
  • a_heap_buffer_read_where_no_buffer_view_is_reads_zeros fails deterministically at dispatch with “The parameter is incorrect” before reaching the zero assertion. Individual rerun also failed.

This run does not establish whether the shader returns zero for the no-buffer-view read, because dispatch fails first. It is consistent with the HEAP_VIEWS/NullBuffers heap-cap diagnosis here, but does not independently prove the root cause.

**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-25 10:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7160256122) Additional RTX 2080 evidence for this heap-view failure: - VIctory HEAD: 940d32f - GPU/driver: NVIDIA GeForce RTX 2080, driver 621.14 - Command: `cargo test -p victory-shader --lib --locked -- --test-threads=1` - Suite result: 244 passed, 3 failed, 3 ignored - `v_med3_f32_matches_rdna2_with_nan` passes. - `a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` fails deterministically at dispatch with “The parameter is incorrect” before reaching the zero assertion. Individual rerun also failed. This run does not establish whether the shader returns zero for the no-buffer-view read, because dispatch fails first. It is consistent with the HEAP_VIEWS/NullBuffers heap-cap diagnosis here, but does not independently prove the root cause.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:50 UTC · original · edited 2026-11-25 21:47 UTC

Automated triage for the maintainers. Still confirmed on current main (61bfc77). The thread narrows the five NVIDIA failures down to two causes:

  1. Test heaps over NVIDIA's 1,000,000-view cap (3 tests). HEAP_VIEWS is 1 << 21 (crates/victory-shader/src/emit/shader.rs). The runtime already falls back to PORTABLE_VIEWS (1,000,000) when the heap is refused (crates/victory-gpu/src/descriptor/host.rs, "host view heap capped at"), but dynamic_slots_are_held_until_released asserts at least HEAP_VIEWS descriptors, and the shader test host (emit/host.rs) builds a HEAP_VIEWS heap for View::NullBuffers. AMD (RX 9070, RX 7900 XT) passes all three. New: a probe on an RTX 5070 (621.24) finds the shader-visible view heap limit is exactly 1,000,000, although the card reports binding tier 3. A side-by-side run on an RTX 5080 under Wine (posted in #747) finds #2683, #2682, #2650 and #2461 each fix all three tests with no new failures, and #2628 fixes two of them. Other open PRs for this: #1751, #1770, #1777, #1779, #1943, #2185.
  2. Raw reads of structured views (2 tests: element stride and gather). buffer_srv in descriptor/host.rs keeps the title's structured description, while heap-indexed and offset reads are lowered to a raw buffer load. NVIDIA indexes those by the view's stride, so the reads land on the wrong data, which matches the 101, 104, 107… pattern exactly. This matters for the title, not only the tests. New: on 13f91ca with open PRs #2357 (raw views in the shader test host) and #2596 (the #2571 test crash) applied, only the heap-cap test is left failing in victory-shader. #2357 fixes the tests only; #2464 (structured buffer views made raw on NVIDIA) is the runtime side.

The two PSV0 failures on the RX 9070 come from an older dxil.dll (1.7) and are addressed by #306. None of the merges since the last triage (#1273, #573, #244, #139, #114) touches these causes.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7162929650) · edited 2026-11-25 21:47 UTC <!-- victory-issue-triage v1 verdict=confirmed seen=2026-11-25T19:08:07Z at=2026-11-25T22:00:00Z --> Automated triage for the maintainers. Still confirmed on current `main` (61bfc77). The thread narrows the five NVIDIA failures down to two causes: 1. **Test heaps over NVIDIA's 1,000,000-view cap (3 tests).** `HEAP_VIEWS` is `1 << 21` (`crates/victory-shader/src/emit/shader.rs`). The runtime already falls back to `PORTABLE_VIEWS` (1,000,000) when the heap is refused (`crates/victory-gpu/src/descriptor/host.rs`, "host view heap capped at"), but `dynamic_slots_are_held_until_released` asserts at least `HEAP_VIEWS` descriptors, and the shader test host (`emit/host.rs`) builds a `HEAP_VIEWS` heap for `View::NullBuffers`. AMD (RX 9070, RX 7900 XT) passes all three. New: a probe on an RTX 5070 (621.24) finds the shader-visible view heap limit is exactly 1,000,000, although the card reports binding tier 3. A side-by-side run on an RTX 5080 under Wine (posted in #747) finds #2683, #2682, #2650 and #2461 each fix all three tests with no new failures, and #2628 fixes two of them. Other open PRs for this: #1751, #1770, #1777, #1779, #1943, #2185. 2. **Raw reads of structured views (2 tests: element stride and gather).** `buffer_srv` in `descriptor/host.rs` keeps the title's structured description, while heap-indexed and offset reads are lowered to a raw buffer load. NVIDIA indexes those by the view's stride, so the reads land on the wrong data, which matches the `101, 104, 107…` pattern exactly. This matters for the title, not only the tests. New: on `13f91ca` with open PRs #2357 (raw views in the shader test host) and #2596 (the #2571 test crash) applied, only the heap-cap test is left failing in `victory-shader`. #2357 fixes the tests only; #2464 (structured buffer views made raw on NVIDIA) is the runtime side. The two PSV0 failures on the RX 9070 come from an older `dxil.dll` (1.7) and are addressed by #306. None of the merges since the last triage (#1273, #573, #244, #139, #114) touches these causes. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠welisonzika14-jpg on GitHub · 2026-11-25 18:52 UTC · original

Where the 5 NVIDIA test failures stand on current main 13f91ca, RTX 5070 (driver 621.24), Windows 11, unit tests only:

tree victory-gpu victory-shader
main 13f91ca (skipping the #2571 test) 193 ok, 2 fail 266 ok, 3 fail
main + #2596 + #2357 (nothing skipped) - 269 ok, 1 fail

With #2596 (the #2571 crash) and #2357 (raw views in the test fixtures) merged together, the only victory-shader failure left is a_heap_buffer_read_where_no_buffer_view_is_reads_zeros, the view heap cap, and victory-gpu still has the 2 heap cap tests. So the heap cap PRs (#1779, #1777, #1943 and others) are the last piece for a green run on NVIDIA. The two PRs merge cleanly together.

Written with AI help (Claude/Kiro); the numbers are from runs on my machine.

**@⁠welisonzika14-jpg** on GitHub · 2026-11-25 18:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7171526253) Where the 5 NVIDIA test failures stand on current `main` `13f91ca`, RTX 5070 (driver 621.24), Windows 11, unit tests only: | tree | `victory-gpu` | `victory-shader` | |---|---|---| | `main` `13f91ca` (skipping the #2571 test) | 193 ok, 2 fail | 266 ok, 3 fail | | `main` + #2596 + #2357 (nothing skipped) | - | **269 ok, 1 fail** | With #2596 (the #2571 crash) and #2357 (raw views in the test fixtures) merged together, the only `victory-shader` failure left is `a_heap_buffer_read_where_no_buffer_view_is_reads_zeros`, the view heap cap, and `victory-gpu` still has the 2 heap cap tests. So the heap cap PRs (#1779, #1777, #1943 and others) are the last piece for a green run on NVIDIA. The two PRs merge cleanly together. Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
Author
Owner

@⁠welisonzika14-jpg on GitHub · 2026-11-25 19:08 UTC · original

Measured the shader-visible descriptor heap limits on an RTX 5070 (desktop, driver 32.0.16.2124 / 621.24, Windows) with a small standalone probe (windows crate 0.62.2, D3D12CreateDevice at feature level 12_0). Each size is a CreateDescriptorHeap call; binary search between 1 and 2^24, heap released after each try.

RTX 5070 WARP
ResourceBindingTier 3 3
Shader model 6.8 6.8
CBV/SRV/UAV shader-visible, largest accepted 1,000,000 2,097,152
1,000,001 / 1<<20 / 1<<21 shader-visible refused, E_INVALIDARG (0x80070057) all accepted
CBV/SRV/UAV not shader-visible accepts every size tried, up to 16,777,216 same
SAMPLER shader-visible, largest accepted 4,080 2,097,152

So on this card the cap is exactly 1,000,000, and 1,000,001 is already refused. The card reports Tier 3, where the D3D12 spec allows more than 1,000,000 but leaves the exact number to the driver; this driver stops at 1,000,000. The PRs that fix the value at 1,000,000 (#1777, #1779, #2185, #1751) match this measurement. They test whether 2^21 works and fall back to 1,000,000; none asks the device for its real maximum. I only measured one NVIDIA card and WARP, so I can't say what other drivers do.

Probe (main.rs, trimmed):

fn try_heap(dev: &ID3D12Device, ty: D3D12_DESCRIPTOR_HEAP_TYPE, visible: bool, n: u32) -> windows::core::Result<()> {
    let desc = D3D12_DESCRIPTOR_HEAP_DESC {
        Type: ty,
        NumDescriptors: n,
        Flags: if visible { D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE } else { D3D12_DESCRIPTOR_HEAP_FLAG_NONE },
        NodeMask: 0,
    };
    let _h: ID3D12DescriptorHeap = unsafe { dev.CreateDescriptorHeap(&desc)? };
    Ok(())
}
// binary search: lo=1, hi=1<<24; largest n where try_heap(...) is Ok

Written with AI help (Claude/Kiro); the numbers are from runs on my machine.

**@⁠welisonzika14-jpg** on GitHub · 2026-11-25 19:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/1744#issuecomment-7171865453) Measured the shader-visible descriptor heap limits on an RTX 5070 (desktop, driver 32.0.16.2124 / 621.24, Windows) with a small standalone probe (windows crate 0.62.2, `D3D12CreateDevice` at feature level 12_0). Each size is a `CreateDescriptorHeap` call; binary search between 1 and 2^24, heap released after each try. | | RTX 5070 | WARP | |---|---|---| | ResourceBindingTier | 3 | 3 | | Shader model | 6.8 | 6.8 | | CBV/SRV/UAV shader-visible, largest accepted | 1,000,000 | 2,097,152 | | 1,000,001 / 1<<20 / 1<<21 shader-visible | refused, E_INVALIDARG (0x80070057) | all accepted | | CBV/SRV/UAV not shader-visible | accepts every size tried, up to 16,777,216 | same | | SAMPLER shader-visible, largest accepted | 4,080 | 2,097,152 | So on this card the cap is exactly 1,000,000, and 1,000,001 is already refused. The card reports Tier 3, where the D3D12 spec allows more than 1,000,000 but leaves the exact number to the driver; this driver stops at 1,000,000. The PRs that fix the value at 1,000,000 (#1777, #1779, #2185, #1751) match this measurement. They test whether 2^21 works and fall back to 1,000,000; none asks the device for its real maximum. I only measured one NVIDIA card and WARP, so I can't say what other drivers do. Probe (`main.rs`, trimmed): ```rust fn try_heap(dev: &ID3D12Device, ty: D3D12_DESCRIPTOR_HEAP_TYPE, visible: bool, n: u32) -> windows::core::Result<()> { let desc = D3D12_DESCRIPTOR_HEAP_DESC { Type: ty, NumDescriptors: n, Flags: if visible { D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE } else { D3D12_DESCRIPTOR_HEAP_FLAG_NONE }, NodeMask: 0, }; let _h: ID3D12DescriptorHeap = unsafe { dev.CreateDescriptorHeap(&desc)? }; Ok(()) } // binary search: lo=1, hi=1<<24; largest n where try_heap(...) is Ok ``` Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
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#1744
No description provided.