GPU: an argument clamp Wine's compiler builds too (carries #1279) #2913
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!2913
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2913"
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:51 UTC · original
arogan178:wine-clamp-carry→main· +115 −36 · 1 files · 2 commits · openUnder Wine and Proton, every indirect draw and dispatch is dropped, so most of the world is never drawn (#170). The indirect-argument clamp is HLSL compiled at run time, and Wine's built-in
d3dcompiler_47(vkd3d-shader) refuses it: it has noLoad/Storeon byte address buffers and ignores theRootSignatureattribute.This carries #1279, which needs a rebase, onto
main's current clamp (the one that charges records in order). The buffers become structured buffers ofuint, indexed in words;boundalready refuses addresses and strides that are not multiples of 4. The root signature is serialized in code, in the orderboundsets it. The bounds, the budget and its order are unchanged.The clamp tests read back only each record's first word. They now read whole records, and
records_arrive_wholechecks every word of two records of each kind.Fixes #170. Supersedes #1279.
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):indirect::testsmaind3dcompiler_47d3dcompiler_4710.0.26100victory-gpusuite has the same 3 failures asmain. They are vkd3d-proton issues fixed by #1722 and #2101.records_arrive_wholefails.cargo clippy -p victory-gpu --all-targets --target x86_64-pc-windows-msvc -- -D warnings, with and without--all-features: clean. CI runs the Windows tests.Reviewed with sol-loop: 1 round with GPT-6.2 Sol. Sol verdict: approved.
@Marvisak on GitHub · 2026-11-26 02:21 UTC · original
Automated triage for the maintainers.
Merge candidate (a recommendation to look, not an approval). In
indirect.rs, the argument-clamp shader moves from byte address buffers toStructuredBuffer<uint>indexed in words, and its root signature is serialised in code (root_signature, in the orderboundsets it). That lets Wine's compiler build it (#170). The clamp bounds and the budget logic are unchanged by my reading. Word indexing is safe becauseboundalready refuses addresses and strides that are not multiples of 4. The new test checks whole records. CIcheckpasses on Windows. This supersedes the older #1279, so only one of the two should land.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.