tests: run the saveexec mask cases in a populated subgroup #876
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!876
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/876/head"
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?
@theantipopau on GitHub · 2026-09-27 22:06 UTC · original
theantipopau:wave-subgroup→main· +28 −15 · 1 files · 1 commits · merged 2026-09-28 21:42 UTCSummary
ScalarOrn2SaveexecUsesSourceOrNotExecandScalarSaveExecOpsboth read a full64-bit EXEC mask, but neither can pass as dispatched.
ShaderComputeInputInfo::threads_numdefaults to{0, 0, 0}, and the emitterturns that into
ExecutionModeLocalSize 1 1 1:Combined with the default
dispatch_x = dispatch_y = dispatch_z = 1, the hostruns one invocation. The recompiler emulates EXEC with
OpGroupNonUniformBallotatScopeSubgroup, and a ballot only reportsactive invocations, so with a single invocation every result collapses to
lane 0:
ScalarOrn2SaveexecUsesSourceOrNotExecneeds no change to its expectations —it writes EXEC explicitly (SGPR 126/127 are
EXEC_LO/EXEC_HI) and asserts theresulting full mask. It simply needs a populated subgroup.
ScalarSaveExecOpsis not self-consistent as written. Its first four dwords(
1, 0, 1, 0) are the entry EXEC of a single-invocation dispatch, while thenine dwords after them only hold for a 64-lane wave. It cannot have been
recorded in one run.
After
Both cases dispatch
64x1x1and pass:ScalarSaveExecOpsis dispatched at a full wave, so the two saved EXEC pairsbecome the
0xffffffff/0xffffffffa full wave actually enters with. Verifiedagainst a full-suite run: 418 cases pass, 6 fail — the 6 are unchanged from
before this patch, and the two saveexec cases drop out of the failure set.
Scope
This is deliberately limited to the two cases. A global default of 64 was tried
and is wrong: it takes the suite from 6 failures to 50, because most cases
assume a single invocation for their stores and LDS layout. The 1x1x1 default
is load-bearing; these two cases are the exceptions.
Note on verification
shader_recompiler_compute_testsaborts duringVulkanHarnessconstruction ona GPU without the full production rasterization feature set, so the suite could
not be run to reach these cases at all. That is fixed separately in #875. The
before/after numbers above were produced with that change applied locally.
@coderabbitai[bot] on GitHub · 2026-09-27 22:09 UTC · original · edited 2026-09-28 20:34 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
4cf66d22-b565-4cb4-89a8-0a2402681dc0📥 Commits
Reviewing files that changed from the base of the PR and between 9ec7ffb0de445704f83b271fe4acac3991ccd89e and 6e11612fadebacce585f7fcffc8a7c815124dc90.
📒 Files selected for processing (1)
tests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough
The two scalar execution-mask tests now assign their
TestCasefields individually and use 64-thread dispatches with compute info enabled.ScalarSaveExecOpsnow expects both saved EXEC pairs to be all ones. The opcodes and the expected values inScalarOrn2SaveexecUsesSourceOrNotExecremain unchanged.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Other
Merge Risk: ⚪ Minimal · up to
6e116The updated tests configure a full-wave dispatch, and no merge-blocking issue is established.
Architecture Summary
Architecture risk: 🔵 Low · up to
6e116The change affects 1 system.
Changed systems:
testsArchitecture concerns
No architecture-level concerns identified.
Review details
Systems and components
Before / after behavior
ScalarSaveExecOpsnow constructs and returns aTestCasethrough field assignments, replacing the aggregate return. Its expected saved EXEC pairs change from1, 0to0xffffffff, 0xffffffff; it also sets the compute thread count to 64 and enables compute info.ScalarOrn2SaveexecUsesSourceOrNotExecnow constructs and returns aTestCasethrough field assignments, replacing the aggregate return. Its expected values and opcodes are retained, and compute info is enabled with a thread count of 64.🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.