NVIDIA D3D12 fixes & shader translation improvements (dynamic descriptors, Wave32 compute, untracked masks) #1845
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1845
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1845"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@mrsqarvc-byte on GitHub · 2026-11-24 23:18 UTC · original
mrsqarvc-byte:fix/shader-untracked-mask-select→main· +1523 −218 · 9 files · 5 commits · openThis PR bundles 5 clean-room fixes targeting NVIDIA D3D12 compatibility and GFX10-to-DXIL shader translation:
victory-shader: SMEM buffer descriptors & multi-slice loadsdescriptor_data.victory-shader: descriptor format & stride reconstructionstride(d1) andBASE_ARRAY(d5) metadata for descriptor loads (+5 shaders translated).victory-gpu: NVIDIA dynamic descriptor budget &FreshTablesFreshTables, eliminating dropped draws (8,192+ dropped draws → 0).victory-shader,victory-gpu: Wave64 → Wave32 compute loweringvictory-shader: uniform and constant lane masks in selects and phiss_cselect, constants, scalar logic, split 32-bit Wave64 halves) inStructured::other_masks, resolve back-edgeAtom::Phimask arguments, and handleNULL/inline constants inv_cndmask_b32andv_*_co_ci_u32(75 previously failing shaders now translate).Validation
cargo test), including new Wave32/Wave64 unit tests validated withIDxcValidator.VICTORY_D3D12_DRED=1andVICTORY_GPU_TIMING=1(0 host pipeline refusals, 0 untracked mask errors).Fully done by AI ( Gemini Neon)
@upipibi on GitHub · 2026-11-24 23:21 UTC · original
For the reviewers, where this stack (5 commits on
ffe310e, no description yet) meets other open PRs, from the commit titles and thelower.rshunks; nothing built:c624d98(uniform and constant lane masks in selects and phis) is the same area as #1788, which lowers selects and carry-ins on a lane mask held as data. The constant-mask case was raised there too.e716e31(full dynamic descriptor budget on capped heaps) is the same as #1751, #1777 and #1779 (NVIDIA's 1,000,000 cap, #1744).351e728(wave64 compute on 32-lane host GPUs) touches what #233 does for wave64 programs on 32-lane hosts.3014591and4db3b01(descriptor_datastride, array base and SMEM descriptors): I did not find an open PR on these.Splitting it along those lines would let each part be compared with the PR it overlaps.
AI-assisted (Claude Code).
@Mericas77 on GitHub · 2026-11-25 00:04 UTC · original
Tested
c624d98on an NVIDIA host with the 1,000,000 view heap cap: RTX 4070 12 GB, driver 621.01, Windows 11 (build 26300), i5-13500, debug build.This branch is based on
ffe310e, 28 commits behindmain(70564ae). It doesn't merge cleanly intomain:git merge-treereports conflicts indescriptor/host.rs,draw.rs,host.rs,shader_cache.rs,emit/lower.rsandemit/mod.rs. So I compared it with its own base:ffe310ec624d98cargo test --workspace --locked --no-fail-fast-p victory-gpu-p victory-shaderAll 14 tests this PR adds pass on this card. Among them are
capped_split_preserves_dynamic_budget_on_nvidia_cap,fresh_tables_reuses_matching_prefixes_and_detects_changes, thewave64_*lowering tests on a wave32 host, and thev_cndmask_*/mask phi tests.-p victory-gpu -- --test-threads=1: 53 passed, 0 failed. 10 parallel runs of-p victory-gpu --lib: no failures. No hangs, device removals or driver resets.What this can't show: 4 of #1744's 5 NVIDIA failures on
mainare in tests added afterffe310e:memory::tests::lists_share_a_table_and_copies_keep_their_views,emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,a_heap_buffer_read_where_no_buffer_view_is_reads_zerosandemit::synthetic_tests::gathers_at_a_level_match_the_hardware. They don't exist on this branch. The fifth,dynamic_slots_are_held_until_released, passes here, but itsNumDescriptors >= HEAP_VIEWSassertion isn't in this version either. Rebased ontomain, this PR would also overlap with #1779's capped-heap changes indescriptor/host.rs.@Marvisak on GitHub · 2026-11-25 01:37 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/descriptor/host.rs,crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/host.rs,crates/victory-gpu/src/shader_cache.rs,crates/victory-shader/src/emit/lower.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.