ir::build: no unspill work without parked lanes; no Vec per VALU name #268
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/268"
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 avatarmanz/VIctory-7900XTX. Originally posted by amine23012004 on 2026-11-26T13:56:39Z.
ir::build: no unspill work without parked lanes; no Vec per VALU name
What.
unspilldecoded every instruction's fields and effects before finding out that nothing was parked. Without av_writelane_b32orv_readlane_b32, every park isNone, and it returns an empty list without having touchedlist. It now checks that up front. Programs that do park lanes take the same path as before.valu_dwords, which runs for every VALU instruction, collected the opcode name's_parts into aVeconly to read up to four of them. It now reads them without allocating, with the same results (including the empty-name case).Same output. IR and DXIL are identical before/after on the synthetic programs below (DXIL compared byte for byte).
Measured (Linux, release, best of 25,
ir::buildonly; synthetic pixel programs with no parked lanes):These are synthetic programs, not the title's shaders: programs that spill to lanes don't get the
unspillpart of the gain, and I have not measuredvictory shaderson a real dump.Checks.
cargo test -p victory-shader(209 passed),cargo clippy -p victory-shader --all-targets --target x86_64-pc-windows-msvc -- -D warningsclean.🤖 Generated with Claude Code
Imported from avatarmanz/VIctory-7900XTX. Originally posted by lerapeurdu62280-debug on 2026-11-26T14:16:06Z.
Checked against main: without writelane/readlane every park is None, so unspill already returned an empty Vec without touching list. The early return gives the same result. rsplit('_').next() equals the old parts.last(), the empty name included. Same output, less work.
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.