GPU: the depth converter Wine's compiler builds too #2919
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!2919
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2919"
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?
@arogan178 on GitHub · 2026-11-25 23:58 UTC · original
arogan178:wine-depth-twin→main· +127 −13 · 1 files · 1 commits · openUnder Wine and Proton, 16-bit depth that the title writes through unordered views never reaches the host's depth texture (#1860). It is moved by a compute converter compiled at run time. Wine's built-in
d3dcompiler_47(vkd3d-shader) refuses it, because it has noLoad/Storeon byte address buffers, and it ignores theRootSignatureattribute. The converter is never made.#1872 serializes the root signature when the compiler drops it. That is half of it: with Proton-CachyOS 11.0's compiler the shader still fails on
buf.Load, and #1872's own test fails there too. This PR does both halves, the way #2913 does for the indirect clamp:uint, indexed in words. Every offset and pitch comes from a placed footprint: offsets are 512-byte aligned, row pitches 256.The conversion itself is unchanged. A new test runs it both ways on a 3-wide surface, with a distinct value per texel and a sentinel in each row's padding. It is adapted from #1872's test.
Fixes #1860. Supersedes #1872.
Proof
victory-gputests cross-built forx86_64-pc-windows-msvc, run under Proton-CachyOS 11.0 with vkd3d-proton 3.2.0 on an RX 9070 XT (RADV):main's shader swapped back in, it fails because the converter is never built. With the odd-width tail guard removed, it fails on the padding sentinel.d3dcompiler_4710.0.26100: the new test passes. The whole suite has the same 3 failures asmain. They are vkd3d-proton issues fixed by #1722 and #2101.cargo clippy -p victory-gpu --all-targets --target x86_64-pc-windows-msvc -- -D warnings, with and without--all-features, is clean. CI runs the Windows tests.Reviewed with sol-loop: 1 round with GPT-6.2 Sol. Sol verdict: approved (its one nit, a stronger test fixture, is in).
@Kajanos on GitHub · 2026-11-26 00:07 UTC · original
Windows 11 / NVIDIA test run, head
13f215d5a4merged ontomain63bcca43c6.Setup: Windows 11 Home build 26300, RTX 5080, NVIDIA 621.40, rustc 1.98.1 MSVC, VS 2022 Build Tools, Windows SDK 10.0.26100 (
dxil.dllfrom the SDK).cargo test --locked -p victory-gpu: 232 passed, 0 failed, 1 ignored (main: 231). On Windows this uses the natived3dcompiler_47, so the Wine-compiler path this PR targets is not exercised here.Not run: the retail title, clippy, and other crates.
AI-assisted (Claude Code)
@Marvisak on GitHub · 2026-11-26 04:29 UTC · original
Automated triage for the maintainers.
Merge candidate. The 16-bit depth converter in
twin.rsnow builds with Wine's compiler too: the buffer is a word-indexedRWStructuredBuffer<uint>and the root signature is serialized in code (root_signature). The parameter order (b0 constants at 0, root UAV at 1) matches the caller'sSetComputeRoot32BitConstants(0, ...)/SetComputeRootUnorderedAccessView(1, ...), and every offset and pitch is a multiple of 4 so the division is exact. The test runs both directions on an odd width with padding sentinels against independently computed values. If merged, #1872 looks superseded.CI: passing.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.