xshader: emit simple paired Wave64 ALU assignments directly #242
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/242"
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 brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T15:38:58Z.
Change
Lower a restricted subset of integer vector ALU instructions directly into paired VGPR assignments instead of duplicating shadow registers and copying them back. Require a single predicated destination assignment, no mask writes, and a closed operand/expression whitelist. All other forms keep the generic path. Both DPP source reads still precede either lane write, and row/bank gating is preserved. Native/any-host records are unchanged.
Measurements
Synthetic 512-exchange compute program; same base
3b8a220, production DXC flags and five alternating runs per version:Validation
Draft pending full GPU suite on exact branch and AMD validation; actual retail performance not measured.
Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-26T16:17:37Z.
Thanks for these. I measured #234, #242 and #243 on real recorded ProjectScarlett
.wave32requests, to see how the synthetic gains carry over. This comment covers all three.Setup: 83 requests translated with
--wave32-host;main(4d3dd26) and every PR build compile the same 74 and refuse the same 9. DXC 1.9.2609,-O1 -disable-lifetime-markers, 4 jobs on a Ryzen 7 9800X3D, build order rotated, median of 3 runs, with a second copy ofmainas a noise control. For the builds with #234 I keptmain's copy of the conflicting test files. #243 conflicts with #242 inpaired_wave64.rs, so I didn't combine those.DXC CPU time, excluding the largest shader (it took either about 19 s or about 26 s whichever build compiled it):
mainmainagainmain's.main, #234, #243 and #234 + #242, which I read as no difference.So on these shaders the gains are much smaller than on the synthetic programs, and I wouldn't expect a noticeable startup change. #242 still looks like a reasonable cleanup. For startup time, it would help to base the next optimisations on stage timings from real shaders (#238 looks useful for that), with driver time included.
Not checked: output correctness of the changed shaders, AMD, or any game run.
Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T23:21:11Z.
Deferred: maintainer measured ~3.2% savings on the recorded corpus, no material startup improvement established. Revisit only with new performance evidence. Closing this draft to make the review queue manageable, per the maintainer's request. The branch and history remain intact at
7fae66b; no branch deleted.Pull request closed