Shaders: lane reads and writes use the low bits of the guest selector #1543
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1543"
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?
Imported from fxceless/victory-fork. Originally posted by faycalbaklouti on 2026-11-30T21:56:39Z.
What it changes
Read-lane and write-lane use the low five selector bits for a guest wave of 32, or six for a guest wave of 64. Canonicalize before a hardware shuffle or equality comparison, and resolve constant scalar spills by that same guest width. In Wave32, a save at lane 32 must overwrite lane 0; in Wave64 they must remain separate. The new regression uses synthetic instructions, not a title capture.
Base:
368967f8,crates/victory-shader/src/emit/lower.rs:9384,9436; crates/victory-shader/src/ir.rs:308.How it was tested
Windows-target workspace comparison against
368967f8feat head8479aff2d4. BASELINE-IDENTICAL. Both Clippy variants fail on the base precedence lint. Workspace tests execute and stop in the GPU unit suite with the same five failing assertions on both SHAs. This is baseline-identical on the Windows target under Wine, not a green native Windows run. The separate touched-package suite and each named head witness satisfy the package gate; clean-base zero matches are not passes.No native Windows Actions, live title, or GPU validation is claimed.
Radicle project hub (open-source porting and preservation history): https://radicle.network/nodes/rosa.radicle.network/rad:z3rqQw7796wMbgj8RszExtWR4wMSE
Live development stream: https://vdo.ninja/?view=gta6rtx4090live1080p60
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.