Fix mesh dispatch, geometry adjacency, and stencil depth layout #117
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!117
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/117/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 11:31 UTC · original
Yeetbot159:amp-dispatch-and-shader-lock→main· +54 −6 · 4 files · 106 commits · closed without mergingSummary
DispatchMesh. An unwritten count stays 0 from the prologue, andmax(..., 1u)keeps that case legal.s_barrier. The thread-group size comes from the ISA preamble, or from PSV0 when that preamble is zero. A size of 0, above 1024, or whose product exceeds 1024 is ignored.v_min_legacy_f32andv_max_legacy_f32lower to RDNA2v_min_f32andv_max_f32. Those RDNA2 ops return the numeric input when the other is NaN, which is the legacy rule.v_cvt_pkaccum_u8_f32is still refused.u32and landed at or below 128 was accepted.k * 0x400, extended intov1's high half andv2when a fourth or sixth vertex exists. Point, line and triangle seeds are unchanged.Test plan
cargo test -p tombox-xshader --lib gcn::testscargo test -p tombox-xshader --lib cs_thread_counts_reject_a_bad_group_sizecargo test -p tombox-xshader --test syntheticcargo test -p tombox-xshader --test meshcargo test -p tombox-xshader --test opcodes --test mixed_table --test ps_linkage --test centroidcargo test -p d3d12_xs --lib shader_xlat::cargo test -p tombox-xshader --test synthetic geometry_adjacency_primitives_translate -- --exactcargo test -p xg_x --lib layout_oracle_tests::compute_depth_msaa_only_lays_out_single_mip_planar_depth -- --exactcargo test -p xg_x --lib layout_oracle_tests::depth_bind_planar_msaa_planes_match_consoleneeds a consolexg_x.dllin the game dumps; this machine has none@omonkeyz on GitHub · 2026-11-22 13:12 UTC · original
Main's history was rewritten, which auto-closed this PR (sorry for the noise). Please change: the PSV compute thread counts are NumThreadsX/Y/Z at PSVRuntimeInfo2 +36..+44, not the stage union at +4..+12; and v_min/max_legacy_f32 are not plain v_min/max_f32 (legacy returns S1 when S1 is NaN), so fix or drop that mapping. The Y/Z DispatchMesh, poisoned-lock handling and MIMG bit clearing are welcome. The mesh/amp wrap check is already on main via #81 (
0caa263), so drop that part. To resubmit:git fetchthis repo, branch from the currentmain, cherry-pick only your own commits (the old branch is based on the previous history and cannot be merged), and open a new PR.Pull request closed