A buffer's size can be asked through a handle of its own (VICTORY_SIZE_OWN_HANDLE=1): AMD's compiler makes the pipelines it crashed on #339

Open
github-bot wants to merge 3 commits from github-bot/gh-339 into rx9070xt AGit
Owner

@⁠thejacte on GitHub · 2026-11-26 20:48 UTC · original
thejacte:claude/rx9070xt-size-own-handle → rx9070xt · +240 −1 · 5 files · 3 commits · open

On an RX 9070 XT, the driver's compiler crashes on any pipeline that both reads a raw buffer view from the heap and asks that view for its size, through the same handle. The order of use in the source does not matter, nor the index or the loaded type, and it happens with our DXIL and with plain HLSL compiled by dxc alike. Two things avoid the crash:

  • a load that comes before the size query, which a program cannot always do;
  • asking the size through a second handle, made from the same heap index read from the first lane.

This PR does the second, behind a switch. With VICTORY_SIZE_OWN_HANDLE=1, the size query of a buffer read from a heap table gets that second handle, except:

  • in a waterfall loop;
  • in a pixel shader, where a helper lane's first-lane read is undefined.

It is off by default in the code; play.ps1 turns it on (commit 3). The shader cache key includes the switch only when it is on, as VICTORY_PORT_CBV does, so existing caches keep their keys. With the switch off, the translation is unchanged.

Notes from the review:

  • Wider than the name says. It applies to every buffer view's size query (raw, typed and structured), not only raw ones. That is equally correct, since both handles come from the same index, so the same view.
  • A gap no code reaches. A heap index built from a proven first-lane waterfall read over descriptor dwords is not in waterfall.loads, so it would not be excluded. No code path was found that produces this: the console compiler's own form for it goes through offset_at, which does fill loads. Excluding sites whose base value is in waterfall.reads would close it, as a follow-up if you want it.

Measured (Windows 11, RX 9070 XT, driver 32.0.32029.2010, Ryzen 7 9800X3D, 64 GB). rx9070xt at cd8dfc0, diagnostics build, same save and place:

Switch off (play.ps1 as the README has it) Switch on, VICTORY_WARM_BAD=0
The compiler crashed during the run (caught by the guard) 3 0
Skipped as already on warm-bad.txt 44 0
Compute pipelines refused (different ones) 36 0
Game crash / device loss none none

With the switch on, every pipeline the compiler used to crash on gets made. In the warm pass, none of the 25 crashes, and the run above refused none. In game, some of the texture, model and shadow flicker went away: those pipelines' work is no longer dropped each frame. The rest of the flicker is still there.

One thing to know: the pipeline keys do not change with the switch, so a key already on warm-bad.txt is still skipped with the switch on. Clear those lines, or run once with VICTORY_WARM_BAD=0. If you like, a follow-up can put the switch into the key, or drop the list's entries when the switch is on.

This replaces #252, which was cut from rx9070xt before it was rebuilt.

Commits

  1. The switch and the translation.
  2. A test that a pixel shader asks the size without a first-lane read (asked for in #252's review).
  3. play.ps1 turns the switch on (-More @{VICTORY_SIZE_OWN_HANDLE='0'} turns it off), as in #252.

Tests (crates/victory-shader/src/emit/size_tests.rs):

  • the record-count test runs with the switch on, on the card and on WARP;
  • a test of the written DXIL checks that the two handles stay apart after the clean-up passes;
  • the same program, built as a compute shader and as a pixel shader with the switch on: the pixel one uses no wave operations. Without the pixel guard, this test fails.

The existing emit::size_tests::the_record_count_of_a_structured_buffer_read_by_index runs with the switch off. It still crashes the test process on this card, as it does on rx9070xt today: that is the crash this switch avoids.

Checked:

  • cargo clippy --workspace --all-targets --locked -- -D warnings and the same with --all-features: no new warnings. Today rx9070xt fails both on two lints in host/panel.rs and texture.rs; the clippy PR fixes those.
  • cargo test --workspace --locked: passes, except the AMD crash in the test named above.
  • cargo xtask policy: passes.

Written with Claude Code; reviewed by Codex (/review against upstream/rx9070xt).

**@⁠thejacte** on GitHub · 2026-11-26 20:48 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/339) `thejacte:claude/rx9070xt-size-own-handle` → `rx9070xt` · +240 −1 · 5 files · 3 commits · open On an RX 9070 XT, the driver's compiler crashes on any pipeline that both reads a raw buffer view from the heap and asks that view for its size, through the same handle. The order of use in the source does not matter, nor the index or the loaded type, and it happens with our DXIL and with plain HLSL compiled by dxc alike. Two things avoid the crash: - a load that comes before the size query, which a program cannot always do; - asking the size through a second handle, made from the same heap index read from the first lane. This PR does the second, behind a switch. With `VICTORY_SIZE_OWN_HANDLE=1`, the size query of a buffer read from a heap table gets that second handle, except: - in a waterfall loop; - in a pixel shader, where a helper lane's first-lane read is undefined. It is off by default in the code; `play.ps1` turns it on (commit 3). The shader cache key includes the switch only when it is on, as `VICTORY_PORT_CBV` does, so existing caches keep their keys. With the switch off, the translation is unchanged. Notes from the review: - **Wider than the name says.** It applies to every buffer view's size query (raw, typed and structured), not only raw ones. That is equally correct, since both handles come from the same index, so the same view. - **A gap no code reaches.** A heap index built from a proven first-lane waterfall read over descriptor dwords is not in `waterfall.loads`, so it would not be excluded. No code path was found that produces this: the console compiler's own form for it goes through `offset_at`, which does fill `loads`. Excluding sites whose base value is in `waterfall.reads` would close it, as a follow-up if you want it. **Measured** (Windows 11, RX 9070 XT, driver 32.0.32029.2010, Ryzen 7 9800X3D, 64 GB). `rx9070xt` at cd8dfc0, diagnostics build, same save and place: | | Switch off (`play.ps1` as the README has it) | Switch on, `VICTORY_WARM_BAD=0` | |---|---|---| | The compiler crashed during the run (caught by the guard) | 3 | 0 | | Skipped as already on `warm-bad.txt` | 44 | 0 | | Compute pipelines refused (different ones) | 36 | 0 | | Game crash / device loss | none | none | With the switch on, every pipeline the compiler used to crash on gets made. In the warm pass, none of the 25 crashes, and the run above refused none. In game, some of the texture, model and shadow flicker went away: those pipelines' work is no longer dropped each frame. The rest of the flicker is still there. **One thing to know:** the pipeline keys do not change with the switch, so a key already on `warm-bad.txt` is still skipped with the switch on. Clear those lines, or run once with `VICTORY_WARM_BAD=0`. If you like, a follow-up can put the switch into the key, or drop the list's entries when the switch is on. This replaces #252, which was cut from `rx9070xt` before it was rebuilt. **Commits** 1. The switch and the translation. 2. A test that a pixel shader asks the size without a first-lane read (asked for in #252's review). 3. `play.ps1` turns the switch on (`-More @{VICTORY_SIZE_OWN_HANDLE='0'}` turns it off), as in #252. **Tests** (`crates/victory-shader/src/emit/size_tests.rs`): - the record-count test runs with the switch on, on the card and on WARP; - a test of the written DXIL checks that the two handles stay apart after the clean-up passes; - the same program, built as a compute shader and as a pixel shader with the switch on: the pixel one uses no wave operations. Without the pixel guard, this test fails. The existing `emit::size_tests::the_record_count_of_a_structured_buffer_read_by_index` runs with the switch off. It still crashes the test process on this card, as it does on `rx9070xt` today: that is the crash this switch avoids. **Checked**: - `cargo clippy --workspace --all-targets --locked -- -D warnings` and the same with `--all-features`: no new warnings. Today `rx9070xt` fails both on two lints in `host/panel.rs` and `texture.rs`; the clippy PR fixes those. - `cargo test --workspace --locked`: passes, except the AMD crash in the test named above. - `cargo xtask policy`: passes. Written with Claude Code; reviewed by Codex (`/review` against `upstream/rx9070xt`).
On an RX 9070 XT (driver 32.0.32029.2010) the driver's compiler crashes making
a pipeline in which one raw buffer view from the heap is both read and asked
for its size: whatever the order of use in the source, the index, or the type
loaded, with our DXIL and with plain HLSL compiled by dxc alike. The size asked
through a second handle, made from the same heap index read from the first
lane, is made; so is a load that comes before the size query, which a program
cannot always do. With the switch on, the size query of a buffer read from a
heap table (not in a waterfall loop, not in a pixel shader, where a helper
lane's first-lane read is undefined) gets that handle. Off by default; the
shader cache keys on it.

Of the title's pipelines the compiler had crashed on (25 of them in warm
here), none crashes with the switch on; the others are made as before.
The record-count test that crashed the test process on this card passes with
the switch on, on the card and on WARP, and a test of the written DXIL checks
that the two handles stay apart after the clean-up passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:50:04 +00:00
A helper lane's first-lane read is undefined, so the size's own handle is
left out of pixel shaders. The test builds one program as a compute shader
and as a pixel shader with the switch on: the compute one uses wave
operations for the handle, the pixel one none. It fails with the pixel
guard taken out. (Asked for in the review of #252.)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
So that AMD's compiler makes the compute pipelines it crashed on (see the
commit before). In a run here (RX 9070 XT, the same place of the same save)
the compiler crashed on 35 pipelines with it off, on none with it on, and the
draws left out for want of a pipeline went from 3.5-4.3 % to 2.0 %.
`-More @{VICTORY_SIZE_OWN_HANDLE='0'}` turns it off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠thejacte on GitHub · 2026-11-26 20:55 UTC · original

This replaces #252. rx9070xt was rebuilt on avatarmanz's fork (cd8dfc0), so #252, cut from the old branch tip, no longer merges.

Compared with #252:

  • The fix, rebased onto cd8dfc0. One change from review: the shader cache key includes the switch only when it is on, as VICTORY_PORT_CBV does, so existing caches keep their keys.
  • A new test, as @⁠gut0to asked in #252's review: a_pixel_shader_asks_the_size_without_a_first_lane_read. It builds one program as a compute shader and as a pixel shader, with the switch on. The compute shader uses wave operations for the size's own handle; the pixel shader uses none. With the pixel guard taken out, the test fails.
  • play.ps1 turns the switch on, as #252 did. -More @{VICTORY_SIZE_OWN_HANDLE='0'} turns it off.

Results reported on #252, carried over here:

  • @⁠luisaugustz (RX 9070 XT, driver 32.0.32029.2010, Ryzen 7 5800X):
    • with the switch: 0 compiler crashes, none of 32 compute shaders refused, 18 minutes in the world with no crash;
    • without it: 38 pipelines left out.
  • @⁠LOCKhart07 (RX 9070 XT, Ryzen 7 7800X3D): the fix cherry-picked onto cd8dfc0.
    • with the switch: 0 compiler crashes in two runs;
    • before (another fork, no compiler guard): 3 of 3 runs crashed in the driver's compiler.

Thank you both.

**@⁠thejacte** on GitHub · 2026-11-26 20:55 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/339#issuecomment-7203214896) This replaces #252. `rx9070xt` was rebuilt on avatarmanz's fork (cd8dfc0), so #252, cut from the old branch tip, no longer merges. Compared with #252: - **The fix**, rebased onto cd8dfc0. One change from review: the shader cache key includes the switch only when it is on, as `VICTORY_PORT_CBV` does, so existing caches keep their keys. - **A new test, as @⁠gut0to asked in #252's review:** `a_pixel_shader_asks_the_size_without_a_first_lane_read`. It builds one program as a compute shader and as a pixel shader, with the switch on. The compute shader uses wave operations for the size's own handle; the pixel shader uses none. With the pixel guard taken out, the test fails. - **`play.ps1` turns the switch on**, as #252 did. `-More @{VICTORY_SIZE_OWN_HANDLE='0'}` turns it off. Results reported on #252, carried over here: - **@⁠luisaugustz** (RX 9070 XT, driver 32.0.32029.2010, Ryzen 7 5800X): - with the switch: 0 compiler crashes, none of 32 compute shaders refused, 18 minutes in the world with no crash; - without it: 38 pipelines left out. - **@⁠LOCKhart07** (RX 9070 XT, Ryzen 7 7800X3D): the fix cherry-picked onto cd8dfc0. - with the switch: 0 compiler crashes in two runs; - before (another fork, no compiler guard): 3 of 3 runs crashed in the driver's compiler. Thank you both.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-26 22:31 UTC · original

Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at 7518bc3: victory-shader 305 passed, 0 failed, 4 ignored; victory-gpu 386 passed, 1 failed, 34 ignored. The one failure, descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in, fails the same way on cd8dfc0 on this card (#288 fixes it).

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-26 22:31 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/339#issuecomment-7204761643) Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at `7518bc3`: `victory-shader` 305 passed, 0 failed, 4 ignored; `victory-gpu` 386 passed, 1 failed, 34 ignored. The one failure, `descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in`, fails the same way on `cd8dfc0` on this card (#288 fixes it). AI-assisted (Claude Code); no game data.
Author
Owner

@⁠VlREX on GitHub · 2026-11-27 00:47 UTC · original

RX 9070 GRE / Windows 10 hardware validation — VIREX Test Studio

  • GPU: AMD Radeon RX 9070 GRE
  • Driver: 32.0.32029.2010
  • OS: Windows 10 build 19045
  • Agility SDK: 1.620.2

Without the workaround: reproducible crash inside CreateComputePipelineState, amdxc64.dll, exception 0xC0000005, offset 0x861B9F.

With the #339 workaround:

  • Hardware regression test: 3/3 PASS
  • Compute pipeline creation: 6/6 successful
  • Output assertions: PASS
  • WARP: skipped (SM 6.2)

Validation commit:
github.com/VlREX/VIctory-Belobug-AMD@8d291ff08d

Tested the #339 source changes combined with #360 and #418. This confirms the targeted workaround on another RDNA4 GPU under Windows 10. Full workspace and in-game performance are not yet validated.

Thanks for the fix!

AI-assisted validation by VIREX.

**@⁠VlREX** on GitHub · 2026-11-27 00:47 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/339#issuecomment-7206761201) **RX 9070 GRE / Windows 10 hardware validation — VIREX Test Studio** - GPU: AMD Radeon RX 9070 GRE - Driver: 32.0.32029.2010 - OS: Windows 10 build 19045 - Agility SDK: 1.620.2 **Without the workaround:** reproducible crash inside CreateComputePipelineState, amdxc64.dll, exception 0xC0000005, offset 0x861B9F. **With the #339 workaround:** - Hardware regression test: 3/3 PASS - Compute pipeline creation: 6/6 successful - Output assertions: PASS - WARP: skipped (SM 6.2) Validation commit: https://github.com/VlREX/VIctory-Belobug-AMD/commit/8d291ff08d8aa45f7aa522352422e5a83d3c86cd Tested the #339 source changes combined with #360 and #418. This confirms the targeted workaround on another RDNA4 GPU under Windows 10. Full workspace and in-game performance are not yet validated. Thanks for the fix! AI-assisted validation by VIREX.
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-27 06:26 UTC · original

Tested on RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 26300, Rust 1.98.1, release builds. Heads: PR head 7518bc3 (base cd8dfc0), and #339 merged locally onto a-publier 4eb6cfd.

Merge onto 4eb6cfd: the Rust merges cleanly. Only scripts/play.ps1 conflicts, with #327. The conflict is textual: both change lines next to each other.

Whole-archive translation (translate --validate --list, all of shaders.rpf, default wave):

  • Switch off: 0 of 25889 programs change against cd8dfc0. The same holds on 4eb6cfd.
  • Switch on: 12654 of 25694 emitted programs change:
    • CS: 2337 of 2682, including all 1000 CS_RaytracingResolve and the 4 bvh_skinning TreeAnim.
    • MS: 8765 of 8765.
    • VS: 1552 of 2191.
    • PS: 0 of 12056.
  • With play.ps1 turning the switch on, about half of the archive is retranslated, not only the crash family.
  • Validation is unchanged: the same counts, the same 71 MS failing on output size > 32768, and no new refusals.
  • Overlap with #324 (on 4eb6cfd):
    • 105 programs are changed by both.
    • With the switch on, #324 changes nothing for 72 of them: 66 CS_RaytracingResolve (all ped_; these are every ped_ resolve #324 changes), 3 VS and 3 MS.
    • With the switch on, #324 still changes 207 PS and 33 CS: 19 standard_uber_* CS_RaytracingResolve, 13 InstanceCulling *_BatchCull*, and 1 water_micro_geom_renderer CS_SurfacePrimitives.

GPU, RDNA 3:

  • emit::size_tests::the_record_count_of_a_structured_buffer_read_by_index (one handle, switch off) passes on hardware and WARP, 6 of 6 runs on each binary. On this card it does not kill the process.
  • emit::size_tests:: passes 11/11 on the head and on the merge.
  • Full lib tests, switch unset:
    • victory-shader: 305 passed, 0 failed (head); 306 passed, 0 failed (merge).
    • victory-gpu: 387 passed, 0 failed (head); 396 passed, 0 failed (merge). descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in passes at 7518bc3 on this card, without #288.
  • translate --validate --pipelines over the containers the switch changes, with wave and RDNA taken from the adapter:
    • CS: all 2337 pipelines created on cd8dfc0 (switch off), the head (on), 4eb6cfd and the merge (on). None refused, no process died. Under wave64 the switch changes all 2337 emitted programs here too.
    • VS + MS (MS through the stub PS): all 10317 created on 4eb6cfd and on the merge with the switch on. The switch changes all 10317 emitted programs. None refused, no process died. The same 71 MS fail validation on both.
    • So on RDNA 3 the one-handle form does not crash the compiler for any of these containers, and the switch shows no regression.

With VICTORY_SIZE_OWN_HANDLE=1 set in the environment, 6 existing victory-shader lib tests fail, on both the head and the merge:

  • emit::lower::tests::waterfall_loops_over_descriptors_joined_per_lane_sample_with_each_lanes_own
  • emit::waterfall_tests::lanes_load_from_the_buffer_their_nested_arms_chose
  • emit::waterfall_tests::lanes_sample_the_entry_their_offset_names_in_the_console_waterfall
  • emit::waterfall_tests::lanes_sample_the_texture_their_arm_loaded_or_picked
  • emit::waterfall_tests::lanes_sample_the_texture_their_if_else_arm_chose
  • emit::waterfall_tests::lanes_sample_their_own_texture_in_a_waterfall_narrowed_by_v_cmpx

All 6 fail on assert!(!wave_ops):

  • In those programs the new path is taken for the size of buffers whose descriptors are loaded at fixed table entries. This is the raw UAV, plus both structured buffers in the nested-arms test. These are not in waterfall.loads.
  • With that assert turned into a print, all 6 pass with the switch on. The 5 waterfall_tests GPU tests give the expected values on hardware and WARP.
  • Only the assertion depends on the environment. Setting TEST_SIZE_OWN_HANDLE to Some(false) in those tests would make them independent of it.

#422 (a-publier) makes the same change without a switch: the size query's handle at WaveReadLaneFirst(index), with TRANSLATOR_VERSION 3. It skips any program with a waterfall loop rather than per load, which covers the 6 waterfall tests above, and it does not skip pixel shaders. The crashing "second handle at the same heap index" row in #422 has no WaveReadLaneFirst; the form here matches its "WaveReadLaneFirst(index): made, correct" row. The two PRs conflict in emit/lower.rs at the same call site.

Not tested:

  • the game on RDNA 3;
  • warm-bad retries;
  • PS pipelines (no PS changes).

The AMD driver shader cache was left on.

By reading only: on 4eb6cfd, warm-bad.txt is scoped by fingerprint (#294), and the switch is part of the fingerprint. So entries tagged fp= that were written without the switch should be retried with it on. Bare-key lines, such as those written by cd8dfc0-era binaries, still apply whatever the fingerprint, so those are still skipped.

**@⁠adrianmjim** on GitHub · 2026-11-27 06:26 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/339#issuecomment-7211530305) Tested on RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 26300, Rust 1.98.1, release builds. Heads: PR head 7518bc3 (base cd8dfc0), and #339 merged locally onto a-publier 4eb6cfd. Merge onto 4eb6cfd: the Rust merges cleanly. Only `scripts/play.ps1` conflicts, with #327. The conflict is textual: both change lines next to each other. Whole-archive translation (`translate --validate --list`, all of shaders.rpf, default wave): - Switch off: 0 of 25889 programs change against cd8dfc0. The same holds on 4eb6cfd. - Switch on: 12654 of 25694 emitted programs change: - CS: 2337 of 2682, including all 1000 `CS_RaytracingResolve` and the 4 bvh_skinning TreeAnim. - MS: 8765 of 8765. - VS: 1552 of 2191. - PS: 0 of 12056. - With `play.ps1` turning the switch on, about half of the archive is retranslated, not only the crash family. - Validation is unchanged: the same counts, the same 71 MS failing on output size > 32768, and no new refusals. - Overlap with #324 (on 4eb6cfd): - 105 programs are changed by both. - With the switch on, #324 changes nothing for 72 of them: 66 `CS_RaytracingResolve` (all ped_*; these are every ped_* resolve #324 changes), 3 VS and 3 MS. - With the switch on, #324 still changes 207 PS and 33 CS: 19 standard_uber_* `CS_RaytracingResolve`, 13 InstanceCulling `*_BatchCull*`, and 1 water_micro_geom_renderer `CS_SurfacePrimitives`. GPU, RDNA 3: - `emit::size_tests::the_record_count_of_a_structured_buffer_read_by_index` (one handle, switch off) passes on hardware and WARP, 6 of 6 runs on each binary. On this card it does not kill the process. - `emit::size_tests::` passes 11/11 on the head and on the merge. - Full lib tests, switch unset: - victory-shader: 305 passed, 0 failed (head); 306 passed, 0 failed (merge). - victory-gpu: 387 passed, 0 failed (head); 396 passed, 0 failed (merge). `descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in` passes at 7518bc3 on this card, without #288. - `translate --validate --pipelines` over the containers the switch changes, with wave and RDNA taken from the adapter: - CS: all 2337 pipelines created on cd8dfc0 (switch off), the head (on), 4eb6cfd and the merge (on). None refused, no process died. Under wave64 the switch changes all 2337 emitted programs here too. - VS + MS (MS through the stub PS): all 10317 created on 4eb6cfd and on the merge with the switch on. The switch changes all 10317 emitted programs. None refused, no process died. The same 71 MS fail validation on both. - So on RDNA 3 the one-handle form does not crash the compiler for any of these containers, and the switch shows no regression. With `VICTORY_SIZE_OWN_HANDLE=1` set in the environment, 6 existing victory-shader lib tests fail, on both the head and the merge: - `emit::lower::tests::waterfall_loops_over_descriptors_joined_per_lane_sample_with_each_lanes_own` - `emit::waterfall_tests::lanes_load_from_the_buffer_their_nested_arms_chose` - `emit::waterfall_tests::lanes_sample_the_entry_their_offset_names_in_the_console_waterfall` - `emit::waterfall_tests::lanes_sample_the_texture_their_arm_loaded_or_picked` - `emit::waterfall_tests::lanes_sample_the_texture_their_if_else_arm_chose` - `emit::waterfall_tests::lanes_sample_their_own_texture_in_a_waterfall_narrowed_by_v_cmpx` All 6 fail on `assert!(!wave_ops)`: - In those programs the new path is taken for the size of buffers whose descriptors are loaded at fixed table entries. This is the raw UAV, plus both structured buffers in the nested-arms test. These are not in `waterfall.loads`. - With that assert turned into a print, all 6 pass with the switch on. The 5 `waterfall_tests` GPU tests give the expected values on hardware and WARP. - Only the assertion depends on the environment. Setting `TEST_SIZE_OWN_HANDLE` to `Some(false)` in those tests would make them independent of it. #422 (a-publier) makes the same change without a switch: the size query's handle at `WaveReadLaneFirst(index)`, with `TRANSLATOR_VERSION` 3. It skips any program with a waterfall loop rather than per load, which covers the 6 waterfall tests above, and it does not skip pixel shaders. The crashing "second handle at the same heap index" row in #422 has no `WaveReadLaneFirst`; the form here matches its "`WaveReadLaneFirst(index)`: made, correct" row. The two PRs conflict in `emit/lower.rs` at the same call site. Not tested: - the game on RDNA 3; - warm-bad retries; - PS pipelines (no PS changes). The AMD driver shader cache was left on. By reading only: on 4eb6cfd, `warm-bad.txt` is scoped by fingerprint (#294), and the switch is part of the fingerprint. So entries tagged `fp=` that were written without the switch should be retried with it on. Bare-key lines, such as those written by cd8dfc0-era binaries, still apply whatever the fingerprint, so those are still skipped.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/339/head:github-bot/gh-339'
git switch 'github-bot/gh-339'

Merge

Merge the changes and update on Forgejo.
git switch 'rx9070xt'
git merge --no-ff 'github-bot/gh-339'
git switch 'github-bot/gh-339'
git rebase 'rx9070xt'
git switch 'rx9070xt'
git merge --ff-only 'github-bot/gh-339'
git switch 'github-bot/gh-339'
git rebase 'rx9070xt'
git switch 'rx9070xt'
git merge --no-ff 'github-bot/gh-339'
git switch 'rx9070xt'
git merge --squash 'github-bot/gh-339'
git switch 'rx9070xt'
git merge --ff-only 'github-bot/gh-339'
git switch 'rx9070xt'
git merge 'github-bot/gh-339'
git push origin 'rx9070xt'
This discussion has been locked. Commenting is limited to contributors.
No description provided.