Shader/GPU: recover wave64 split scalar masks and report GetDeviceRemovedReason #146

Closed
github-bot wants to merge 1 commit from gh-pr/146/head into gh-pr/146/base
Owner

@⁠dutch2005 on GitHub · 2026-11-25 16:59 UTC · original
fix/shader-voxel-mask-and-device-removed → main · +108 −0 · 2 files · 1 commits · closed without merging

Ports two clean fixes from DexNom/VIctory:

  1. crates/victory-shader/src/structure.rs (DexNom 76749ce): recover wave64 lane predicates when scalar masks are spilled and restored one 32-bit word at a time via s_mov_b32 chains (move_source), without crossing non-move ops or mismatched words.
  2. crates/victory-gpu/src/device.rs (DexNom 13185f5): wire ID3D12Device vtable slot 37 (0x128, GetDeviceRemovedReason) to removed_reason so healthy devices report S_OK (and removed host devices propagate their removal HRESULT) instead of returning E_NOTIMPL.

Verification

  • cargo test -p victory-shader --lib --locked -- --skip scalar_counted_in_: 265 passed, 0 failed, 6 ignored
  • cargo test -p victory-gpu --lib --locked -- --test-threads=1 --skip written_pages_are_reported_to_every_asker: 111 passed, 0 failed, 4 ignored (written_pages_are_reported_to_every_asker skipped as pre-existing #102; a_healthy_device_reports_no_removal verifies healthy 0x128 + isolated WARP RemoveDevice() removal error)
  • cargo clippy -p victory-shader -p victory-gpu --lib --tests --locked --no-deps: 0 warnings in structure.rs and device.rs
  • cargo xtask policy --staged: 2 files ok
  • cargo mutants --in-diff pra.diff: structure.rs 6/6 (2 caught, 4 unviable, 0 missed); device.rs 1/1 caught (0 missed)
**@⁠dutch2005** on GitHub · 2026-11-25 16:59 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/146) `fix/shader-voxel-mask-and-device-removed` → `main` · +108 −0 · 2 files · 1 commits · closed without merging Ports two clean fixes from `DexNom/VIctory`: 1. **`crates/victory-shader/src/structure.rs` (`DexNom 76749ce`)**: recover wave64 lane predicates when scalar masks are spilled and restored one 32-bit word at a time via `s_mov_b32` chains (`move_source`), without crossing non-move ops or mismatched words. 2. **`crates/victory-gpu/src/device.rs` (`DexNom 13185f5`)**: wire `ID3D12Device` vtable slot 37 (`0x128`, `GetDeviceRemovedReason`) to `removed_reason` so healthy devices report `S_OK` (and removed host devices propagate their removal `HRESULT`) instead of returning `E_NOTIMPL`. ### Verification - `cargo test -p victory-shader --lib --locked -- --skip scalar_counted_in_`: **265 passed, 0 failed, 6 ignored** - `cargo test -p victory-gpu --lib --locked -- --test-threads=1 --skip written_pages_are_reported_to_every_asker`: **111 passed, 0 failed, 4 ignored** (`written_pages_are_reported_to_every_asker` skipped as pre-existing #102; `a_healthy_device_reports_no_removal` verifies healthy `0x128` + isolated WARP `RemoveDevice()` removal error) - `cargo clippy -p victory-shader -p victory-gpu --lib --tests --locked --no-deps`: 0 warnings in `structure.rs` and `device.rs` - `cargo xtask policy --staged`: **2 files ok** - `cargo mutants --in-diff pra.diff`: `structure.rs` **6/6** (2 caught, 4 unviable, 0 missed); `device.rs` **1/1** caught (**0 missed**)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:38 +00:00
github-bot closed this pull request 2026-11-26 03:36:38 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.