Dispatch mesh groups on Y/Z and fix GFX7 legacy min/max, PSV thread counts, and shader-lock poison #127
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!127
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/127/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?
@Yeetbot159 on GitHub · 2026-11-22 13:47 UTC · original
Yeetbot159:shader-stages-and-depth→main· +559 −33 · 20 files · 7 commits · closed without mergingSummary
DispatchMeshtakes Y and Z from the args ring (max(..., 1u)). A zero count is rejected byDispatchMesh. The mesh/amplification group-size check already on main (mesh_thread_count, #81 /0caa263) is unchanged.lock()helper, so a panicked translation does not abort the next lookup.s_barrier, and a real DS op) getsGroupMemoryBarrierWithGroupSyncbetween consecutive same-direction LDS at the top level.NumThreadsX/Y/Zare read fromPSVRuntimeInfo2at runtime-info offsets 36, 40 and 44 (info size at least 48). The stage union at the start of the info is not the thread count.depth_parent_format. The layout's format id stays the view format.v_min_legacy_f32/v_max_legacy_f32are not lowered tov_min_f32/v_max_f32. They expand to a compare plusv_cndmask_b32that returns source 1 when source 1 is NaN. Max also returns source 0 on a signed-zero tie. VCC is saved and restored. HLSLmin/maxare not used. The VOP3 form uses the same sequence; abs, neg, clamp and omod are refused.Fixes #115 and #109.
Test plan
cargo test -p tombox-xshader --lib gcn::tests(22 passed), including the legacy min/max tests and the existing MIMG refusal testcargo test -p tombox-xshader --lib meta::tests(6 passed), including a blob whose stage union is[8,8,1]and whoseNumThreadsat +36 are[4,2,1]cargo test -p tombox-xshader --test synthetic(17 passed: Y/Z dispatch, geometry adjacency, one-wave LDS, image-op refusal, Durango vertex fetch)cargo test -p xg_x --lib compute_depth_msaa(2 passed)cargo test -p d3d12_xs --lib shader_xlat::tests::lock_returns_the_value_after_a_panic_poisons_the_mutex(before this rebase)xg_x.dlloracle (no console DLL in the local dumps)analysis/shaders/console_xsc@Yeetbot159 on GitHub · 2026-11-22 15:16 UTC · original
Split onto current main, with the comment lines removed and the parts already on main dropped.
Kept, one pull request each:
Also, not in the list above but still missing on main: #141 lowers
v_cvt_pkaccum_u8_f32.Dropped from this branch: shader-lock poison recovery, the MIMG R128/TFE/LWE note, and the stencil-only MSAA path.
@omonkeyz on GitHub · 2026-11-22 15:29 UTC · original
Thanks for splitting this up! #136, #137 and #139 are on main (
9865896). I left review notes on #138, #140 and #141.@MeNoSkills on GitHub · 2026-11-22 16:08 UTC · original
Ran this on real hardware: NVIDIA GeForce RTX 4070 Ti, Windows 10 19045, MSVC toolchain, branch head
53e61ad, TOMBOX_EXEC_HW=1.I only ran the tests; I did not run the Y/Z dispatch change inside a title (no dump), and I did not review the GFX7 min/max change.
@omonkeyz on GitHub · 2026-11-22 14:59 UTC · original · requested changes
Thanks for the resubmit! Main moved under this branch, so a few parts are now on main or conflict with it. Please rebase onto current main and keep only what's still missing:
d585b94(#109).d585b94(#114) refuses these bits. Clearing them would silently change results, so drop that part.853169c).Pull request closed