Shaders: mesh groups in whole console waves, mesh loop limits through the loop's exit, 16-bit writes over registers the host lacks #1866
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1866
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1866"
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?
@atk3001 on GitHub · 2026-11-29 01:07 UTC · original
atk3001:pr/mesh-waves-and-half-writes→main· +237 −22 · 3 files · 1 commits · merged 2026-11-29 08:16 UTCFound with the shader oracle in
diff_tests.rs. Each case is compiled with the GDK's Scarlett compiler (VICTORY_CONSOLE_DXC, thepixsc\dxc.exeof a GDK install) and translated. It is then drawn next to the PC compiler's build of the same HLSL, on the card and on WARP. Three findings in one PR, because the oracle tests all of them.What
lower.rs,mod.rsmesh_stride).s_mov_b64 exec, -1). Newer compilers then give lanes 32-63 of a 32-thread group vertices and primitives to export.ms.threads), so those lanes never ran, and their vertices and triangles were missing.mesh_strideuses the same count.lower.rs:find_exit_caps,exit_caps,limit_test).LaneExit::Jump) was capped asCondBr(count < limit, header, abort), and the abort block ends inret.retbroke the group's LDS round trip and its triangles on NVIDIA, even though it was never taken. Seen on an RTX 5080 with the 2026-11 driver; WARP drew the same shader correctly.retblock shared by all loops still fails; an opaque limit constant still fails.br. Loops without such an exit keep the abort block. Other stages are unchanged.count_iterationis split intocount_on(the increment and its phi entry) andloop_cap(the per-stage limit), with no change in behaviour.lower.rs:kept_half).v_fma_mixlo_f16into v2, which holds the primitive id on entry. A host vertex shader has no primitive id.mixlokeeps the register's other half, so the whole program was refused:Unsupported { what: "the primitive id" }.v_and_b32 …, 0xffff), so zeros stand in now.v_fma_mixlo/mixhi_f16and of the 16-bit loads that write one half. A real read of the primitive id is still refused.Tests
diff_tests.rs(test code only):HostWaveguard follows the device's wave size.make_views).rets, after it 1.victory-shaderon mainf9dfb76with this patch: 387 passed, 0 failed. The diff tests on WARP: 4 passed.lower.rsspare / per. rustfmt flags none of the changed lines.Limits
retabort.VICTORY_CONSOLE_DXC) and skips itself without one; no GDK files are in the repository.🤖 Generated with Claude Code