Compile the replay merge helper through the shared compiler and test its output #1085
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!1085
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1085"
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?
@ghptc on GitHub · 2026-11-28 13:00 UTC · original
ghptc:fix/replay-merge-compiler→main· +58 −37 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCThe diagnostics replay merger calls D3DCompile directly and discards its diagnostic output. Its cs_5_1 shader reads a RWByteAddressBuffer. On Proton Experimental's built-in compiler this produces E5005 for Load and returns E_FAIL before pipeline creation. The same HLSL compiles with Microsoft's D3DCompiler_47.
Build the merge pipeline through the existing host compiler, attach the operation name to compilation failures, and use the same pipeline constructor in a small hardware regression. The shader, binding order and merge rules stay intact. The test dispatches one group over four synthetic words, waits for the queue and checks all three output buffers. It requires the diagnostics feature and an explicitly selected test run on a D3D12-capable host.
On an RTX 5070 under VKD3D-Proton, the isolated main-based branch passed using Microsoft FXC. The destination was [2,6,7,9], the comparison base was [2,5,6,9] and the counters were [1,2,1,0]. The local build combining this change with #925 produced the same three arrays using Proton's built-in compiler and the app-local DXC fallback. Current main's shared compiler still uses D3DCompile alone. The Linux fallback result depends on #925 or an equivalent shared compiler implementation. This patch adds the missing replay consumer and a test and can be reviewed separately. The measurements used a Windows-target release build under Proton.
@ghptc on GitHub · 2026-11-28 13:23 UTC · original
Windows Clippy reported the same two diagnostics on this PR and its exact upstream base,
63b902f:let_and_returnin shader emission andmanual_is_multiple_ofin the shadow worker. With #957 applied locally to2deacb8, both locked workspace Clippy checks passed for Windows MSVC on Rust 1.98.1, including--all-features, with-D warnings. Upstream CI log