shader: place compute entry registers from COMPUTE_PGM_RSRC2 #1601

Merged
Jess-Doit merged 4 commits from upstream-pr/1608 into main 2026-11-24 16:09:24 +00:00
Jess-Doit commented 2026-11-24 14:56:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-24T14:56:23Z.


Change

Refs #1544. This covers the user SGPR span, the enabled group-ID SGPRs and the local-ID VGPRs. TG_SIZE is refused.

tools/compute_store_aot.py took the group-ID registers from the caller (--group-reg, --group-reg-y, --group-reg-z). lower() now also takes rsrc2= (the program's COMPUTE_PGM_RSRC2), also available as --rsrc2.

entry_registers(rsrc2) places what a gfx10 compute wave receives:

  • User SGPRs: USER_SGPR, bits 5:1, come first. The table pointer must lie within them.
  • Group IDs: one SGPR for each group ID enabled by TGID_X/Y/Z_EN (bits 7–9), in X, Y, Z order with no gap for an omitted axis.
  • Local IDs: TIDIG_COMP_CNT (bits 12:11) gives v0, v0–v1 or v0–v2, one local ID per VGPR. A local Y or Z it does not enable is not bound. The reserved value 3 is refused.
  • TG_SIZE_EN (bit 10) is refused, as agreed in #1544. Its word layout differs between Mesa's GFX6–10 and GFX10.3+ readings, and the guest wave width is not established. A desktop readback cannot tell them apart, so that is left for a follow-up with independent evidence.

Unchanged behaviour:

  • Without rsrc2, nothing changes.
  • With rsrc2, --group-reg* is refused.

Fixture

tests/compute_entry_layout_check.py uses source-built gfx1013 programs. They name the group IDs only through the registers the layout assigns; no group register is passed by hand. Each thread computes its dispatch coordinate on every axis it uses (group × size + local) and stores them as a record at an address built from those coordinates, so every thread has its own destination. All 320 words are compared, including sentinels between and after the records.

Case COMPUTE_PGM_RSRC2 enables Group IDs Threads Dispatches
x_z 2 user, X, Z (Y omitted), TIDIG 2 X s2, Z s3 2×1×4 1×1×1, 3×1×2
y_z 2 user, Y, Z (X omitted), TIDIG 2 Y s2, Z s3 1×2×4 1×1×1, 1×3×2
z_only 2 user, Z, TIDIG 2 Z s2 1×1×4 1×1×1, 1×1×5
xyz 2 user, X, Y, Z, TIDIG 2 s2, s3, s4 2×2×2 1×1×1, 2×1×1, 1×2×2, 2×2×2
x_user4 4 user, X X s4 32 1×1×1, 3×1×1

The expected words are computed from the record layout, not from the translator. Each case also translates to the same source as when its group registers are named by hand.

Negative controls:

  • Draw: swapping two stored coordinates (x_z, y_z, xyz, on the largest dispatch) must mismatch.
  • Translation: the program is refused when its register names:
    • an omitted group ID: Z dropped from x_z, Z dropped from xyz;
    • a moved group ID: Y enabled under x_z, so s3 becomes Y; X enabled under y_z; Y omitted under xyz, so s3 becomes Z;
    • a user SGPR: x_user4 with five user SGPRs;
    • a group ID on the wrong axis: x_user4 with two user SGPRs;
    • a local ID beyond TIDIG_COMP_CNT, in four cases.
  • Also refused: TG_SIZE_EN (alone, with group IDs, and in a translation), TIDIG_COMP_CNT 3, a table outside the user SGPRs, and rsrc2 with group registers.
  • Field widths: group X is placed behind 16 and 31 user SGPRs (the five-bit USER_SGPR). Unrelated bits (bit 0, TRAP_PRESENT, bits 13–14, an LDS size, bit 31) leave the placement unchanged. Values outside 32 bits and non-integers are refused.
  • Unchanged: a 4×4 pitched program (compute_store_check.py's PITCH) translates the same with rsrc2 as with its hand-named registers.
  • binary <llvm-mc> assembles the fixture programs for gfx1013. It is added to the gfx1013 CI job, and the controls are added to the Linux Python job and AGENTS.md.

Verification

Tested 2bdd20db (on a3ac47a9; it merges cleanly with current main, 7c5dac78) on Windows 10 22H2 19045.6456. Adapters: a GTX 1060 6 GB (10de:1c03, driver 32.0.15.6094) and in-box WARP (10.0.19041.5794). DXC is the one the CMake configure found, and the D3D12 debug layer was enabled.

. .\tools\dev.ps1
$env:XBOX2WINDOWS_ADAPTER = '1060'
$env:X2W_D3D12_DEBUG = '1'
foreach ($preset in 'dev', 'release') {
    cmake --preset $preset
    cmake --build --preset $preset --target offscreen_check -j 2
    ctest --preset $preset --no-tests=error -R '^compute_(entry_layout|store_aot)_(warp|hardware)$' -V
}
python -B tests/compute_entry_layout_check.py
python -B tests/compute_entry_layout_check.py binary <llvm-mc>
  • Debug and Release: 4/4 passed in each: compute_entry_layout_{warp,hardware} and the existing compute_store_aot_{warp,hardware}. All 68 debug-layer summaries in each configuration read debug_errors=0 debug_warnings=0.
  • Pure-Python controls: passed.
  • tests/docs_links_check.py: passed.
  • binary: passed with a local LLVM 23.1.6 llvm-mc. CI uses LLVM 15.

The output was the same on both adapters and in both configurations:

x_z_1x1x1: groups of 2x1x4 exact debug_errors=0 debug_warnings=0
x_z_3x1x2: groups of 2x1x4 exact debug_errors=0 debug_warnings=0
x_z: swapped coordinates mismatch, as required
y_z_1x1x1: groups of 1x2x4 exact debug_errors=0 debug_warnings=0
y_z_1x3x2: groups of 1x2x4 exact debug_errors=0 debug_warnings=0
y_z: swapped coordinates mismatch, as required
z_only_1x1x1: groups of 1x1x4 exact debug_errors=0 debug_warnings=0
z_only_1x1x5: groups of 1x1x4 exact debug_errors=0 debug_warnings=0
xyz_1x1x1: groups of 2x2x2 exact debug_errors=0 debug_warnings=0
xyz_2x1x1: groups of 2x2x2 exact debug_errors=0 debug_warnings=0
xyz_1x2x2: groups of 2x2x2 exact debug_errors=0 debug_warnings=0
xyz_2x2x2: groups of 2x2x2 exact debug_errors=0 debug_warnings=0
xyz: swapped coordinates mismatch, as required
x_user4_1x1x1: groups of 32x1x1 exact debug_errors=0 debug_warnings=0
x_user4_3x1x1: groups of 32x1x1 exact debug_errors=0 debug_warnings=0

This PR and #1611 (image stores) both add a keyword to lower(). Whichever merges second needs a one-line merge.

Not covered

  • TG_SIZE (TG_SIZE_EN), refused as above.
  • The root-parameter order inside the user SGPRs described in #1544 (tables, constants, root descriptors, then the heap pointers). The caller still names the table register.
  • The scratch wave offset SGPR.
  • Group sizes that are not powers of two. The existing dispatch-index forms require one.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6584646512 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1608). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-24T14:56:23Z. --- ## Change Refs #1544. This covers the user SGPR span, the enabled group-ID SGPRs and the local-ID VGPRs. TG_SIZE is refused. `tools/compute_store_aot.py` took the group-ID registers from the caller (`--group-reg`, `--group-reg-y`, `--group-reg-z`). `lower()` now also takes `rsrc2=` (the program's `COMPUTE_PGM_RSRC2`), also available as `--rsrc2`. `entry_registers(rsrc2)` places what a gfx10 compute wave receives: - **User SGPRs:** `USER_SGPR`, bits 5:1, come first. The table pointer must lie within them. - **Group IDs:** one SGPR for each group ID enabled by `TGID_X/Y/Z_EN` (bits 7–9), in X, Y, Z order with no gap for an omitted axis. - **Local IDs:** `TIDIG_COMP_CNT` (bits 12:11) gives v0, v0–v1 or v0–v2, one local ID per VGPR. A local Y or Z it does not enable is not bound. The reserved value 3 is refused. - **`TG_SIZE_EN` (bit 10) is refused,** as agreed in #1544. Its word layout differs between Mesa's GFX6–10 and GFX10.3+ readings, and the guest wave width is not established. A desktop readback cannot tell them apart, so that is left for a follow-up with independent evidence. **Unchanged behaviour:** - Without `rsrc2`, nothing changes. - With `rsrc2`, `--group-reg*` is refused. ## Fixture `tests/compute_entry_layout_check.py` uses source-built gfx1013 programs. They name the group IDs only through the registers the layout assigns; no group register is passed by hand. Each thread computes its dispatch coordinate on every axis it uses (group × size + local) and stores them as a record at an address built from those coordinates, so every thread has its own destination. All 320 words are compared, including sentinels between and after the records. | Case | `COMPUTE_PGM_RSRC2` enables | Group IDs | Threads | Dispatches | |---|---|---|---|---| | `x_z` | 2 user, X, Z (Y omitted), TIDIG 2 | X `s2`, Z `s3` | 2×1×4 | 1×1×1, 3×1×2 | | `y_z` | 2 user, Y, Z (X omitted), TIDIG 2 | Y `s2`, Z `s3` | 1×2×4 | 1×1×1, 1×3×2 | | `z_only` | 2 user, Z, TIDIG 2 | Z `s2` | 1×1×4 | 1×1×1, 1×1×5 | | `xyz` | 2 user, X, Y, Z, TIDIG 2 | `s2`, `s3`, `s4` | 2×2×2 | 1×1×1, 2×1×1, 1×2×2, 2×2×2 | | `x_user4` | 4 user, X | X `s4` | 32 | 1×1×1, 3×1×1 | The expected words are computed from the record layout, not from the translator. Each case also translates to the same source as when its group registers are named by hand. **Negative controls:** - **Draw:** swapping two stored coordinates (`x_z`, `y_z`, `xyz`, on the largest dispatch) must mismatch. - **Translation:** the program is refused when its register names: - an omitted group ID: Z dropped from `x_z`, Z dropped from `xyz`; - a moved group ID: Y enabled under `x_z`, so `s3` becomes Y; X enabled under `y_z`; Y omitted under `xyz`, so `s3` becomes Z; - a user SGPR: `x_user4` with five user SGPRs; - a group ID on the wrong axis: `x_user4` with two user SGPRs; - a local ID beyond `TIDIG_COMP_CNT`, in four cases. - **Also refused:** `TG_SIZE_EN` (alone, with group IDs, and in a translation), `TIDIG_COMP_CNT` 3, a table outside the user SGPRs, and `rsrc2` with group registers. - **Field widths:** group X is placed behind 16 and 31 user SGPRs (the five-bit `USER_SGPR`). Unrelated bits (bit 0, `TRAP_PRESENT`, bits 13–14, an LDS size, bit 31) leave the placement unchanged. Values outside 32 bits and non-integers are refused. - **Unchanged:** a 4×4 pitched program (`compute_store_check.py`'s `PITCH`) translates the same with `rsrc2` as with its hand-named registers. - **`binary <llvm-mc>`** assembles the fixture programs for gfx1013. It is added to the gfx1013 CI job, and the controls are added to the Linux Python job and `AGENTS.md`. ## Verification Tested `2bdd20db` (on `a3ac47a9`; it merges cleanly with current `main`, `7c5dac78`) on Windows 10 22H2 `19045.6456`. Adapters: a GTX 1060 6 GB (`10de:1c03`, driver `32.0.15.6094`) and in-box WARP (`10.0.19041.5794`). DXC is the one the CMake configure found, and the D3D12 debug layer was enabled. ```powershell . .\tools\dev.ps1 $env:XBOX2WINDOWS_ADAPTER = '1060' $env:X2W_D3D12_DEBUG = '1' foreach ($preset in 'dev', 'release') { cmake --preset $preset cmake --build --preset $preset --target offscreen_check -j 2 ctest --preset $preset --no-tests=error -R '^compute_(entry_layout|store_aot)_(warp|hardware)$' -V } python -B tests/compute_entry_layout_check.py python -B tests/compute_entry_layout_check.py binary <llvm-mc> ``` - **Debug and Release:** 4/4 passed in each: `compute_entry_layout_{warp,hardware}` and the existing `compute_store_aot_{warp,hardware}`. All 68 debug-layer summaries in each configuration read `debug_errors=0 debug_warnings=0`. - **Pure-Python controls:** passed. - **`tests/docs_links_check.py`:** passed. - **`binary`:** passed with a local LLVM 23.1.6 `llvm-mc`. CI uses LLVM 15. The output was the same on both adapters and in both configurations: ```text x_z_1x1x1: groups of 2x1x4 exact debug_errors=0 debug_warnings=0 x_z_3x1x2: groups of 2x1x4 exact debug_errors=0 debug_warnings=0 x_z: swapped coordinates mismatch, as required y_z_1x1x1: groups of 1x2x4 exact debug_errors=0 debug_warnings=0 y_z_1x3x2: groups of 1x2x4 exact debug_errors=0 debug_warnings=0 y_z: swapped coordinates mismatch, as required z_only_1x1x1: groups of 1x1x4 exact debug_errors=0 debug_warnings=0 z_only_1x1x5: groups of 1x1x4 exact debug_errors=0 debug_warnings=0 xyz_1x1x1: groups of 2x2x2 exact debug_errors=0 debug_warnings=0 xyz_2x1x1: groups of 2x2x2 exact debug_errors=0 debug_warnings=0 xyz_1x2x2: groups of 2x2x2 exact debug_errors=0 debug_warnings=0 xyz_2x2x2: groups of 2x2x2 exact debug_errors=0 debug_warnings=0 xyz: swapped coordinates mismatch, as required x_user4_1x1x1: groups of 32x1x1 exact debug_errors=0 debug_warnings=0 x_user4_3x1x1: groups of 32x1x1 exact debug_errors=0 debug_warnings=0 ``` This PR and #1611 (image stores) both add a keyword to `lower()`. Whichever merges second needs a one-line merge. ## Not covered - **TG_SIZE** (`TG_SIZE_EN`), refused as above. - **The root-parameter order inside the user SGPRs** described in #1544 (tables, constants, root descriptors, then the heap pointers). The caller still names the table register. - **The scratch wave offset SGPR.** - **Group sizes that are not powers of two.** The existing dispatch-index forms require one. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 16:03:15 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T15:12:39Z.

Review: CHANGES_REQUESTED


This head still emits a TG_SIZE word using bits 11:6 and leaves the other reported layout open. As agreed in #1544, keep TG_SIZE_EN rejected in this slice. Keep the enabled SGPR and VGPR mapping, and exercise noncontiguous Y/Z or X/Z bits, omitted IDs and distinct coordinates in more than one axis. The desktop readback currently reproduces the assumed packing rather than identifying the guest encoding.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6041910247 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1608#pullrequestreview-6041910247). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T15:12:39Z. **Review:** CHANGES_REQUESTED --- This head still emits a TG_SIZE word using bits 11:6 and leaves the other reported layout open. As agreed in #1544, keep TG_SIZE_EN rejected in this slice. Keep the enabled SGPR and VGPR mapping, and exercise noncontiguous Y/Z or X/Z bits, omitted IDs and distinct coordinates in more than one axis. The desktop readback currently reproduces the assumed packing rather than identifying the guest encoding.
tedin7 commented 2026-11-24 16:03:15 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T15:48:05Z.

Review: COMMENTED


Technical review (Linux only; no Windows, WARP or GPU run). The draw test compute_entry_layout_{warp,hardware} (320-word readback per case) is therefore not reproduced here.

Checked out the PR head (2bdd20db, which refuses TG_SIZE_EN and adds the noncontiguous-axis cases) in a clean tree.

What I ran:

  • tests/compute_entry_layout_check.py (decoding and translation controls): passes.
  • tests/compute_entry_layout_check.py binary llvm-mc-19: all five fixture programs assemble for gfx1013. (The workflow pins llvm-mc-15; this is an additional LLVM 19 check.)
  • Direct calls of entry_registers() with unrelated bits set (TRAP_PRESENT bit 6, bit 13, bits 15..24, bit 31): the result is unchanged, so only USER_SGPR, TGID_X/Y/Z_EN, TG_SIZE_EN and TIDIG_COMP_CNT are read. User SGPR counts 15, 16 and 31 decode as given. Negative and 2**32 values raise ValueError.
  • Reading against the layout the docs describe: user SGPRs first, then one SGPR per enabled group ID in X, Y, Z order with no gap for an omitted axis, then TIDIG_COMP_CNT + 1 local-ID VGPRs. The code agrees: (rsrc2 >> 1) & 0x1f, bits 7..9, components + 1, with the reserved count 3 refused. The table pointer pair must satisfy table_reg + 1 < user_sgprs, which is the right bound for a 64-bit pointer. rsrc2 together with --group-reg* is refused, and local Y/Z are bound only when both enabled and larger than one.
  • On the earlier change request: TG_SIZE_EN is refused in this head, and the cases now enable X+Z, Y+Z, Z alone, all three axes and X behind four user SGPRs, with different group counts per axis, so the coordinates differ between axes. The same-source comparison against hand-named group registers passes for each case.

Local mutation check on tools/compute_store_aot.py, against the Linux controls (each reverted afterwards; tree clean):

  • TGID bit positions shifted, axis order reversed, a register reserved for an omitted axis, TIDIG count off by one or count 3 accepted, TG_SIZE_EN accepted, table check made single-register or removed, rsrc2 allowed with group registers, local_axes ignored: all caught.
  • USER_SGPR mask narrowed from five to four bits: not caught. No case uses 16 or more user SGPRs, so the field width is unpinned.
  • The 0 <= rsrc2 < 1 << 32 range check removed: not caught. (Negative values would still hit the TG_SIZE_EN test, so only values of 2**32 and above slip through.)

Suggestions (non-blocking): add one control with USER_SGPR of 16 or more (for example user(16) | TGID_X) and one rsrc2 with unrelated bits set (TRAP_PRESENT or an LDS size) that must decode like the plain value, so the field extraction is pinned from both sides. entry_registers(1.0) raises TypeError rather than ValueError; only reachable from Python, since the CLI parses an integer.

Still open as the earlier review says: the draw readback checks consistency with the layout this code assumes, not the guest's own encoding. TG_SIZE staying refused is the right call until independent evidence exists.

No defects found in the lowering.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6042576773 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1608#pullrequestreview-6042576773). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T15:48:05Z. **Review:** COMMENTED --- Technical review (Linux only; no Windows, WARP or GPU run). The draw test `compute_entry_layout_{warp,hardware}` (320-word readback per case) is therefore not reproduced here. Checked out the PR head (`2bdd20db`, which refuses TG_SIZE_EN and adds the noncontiguous-axis cases) in a clean tree. What I ran: - `tests/compute_entry_layout_check.py` (decoding and translation controls): passes. - `tests/compute_entry_layout_check.py binary llvm-mc-19`: all five fixture programs assemble for gfx1013. (The workflow pins `llvm-mc-15`; this is an additional LLVM 19 check.) - Direct calls of `entry_registers()` with unrelated bits set (TRAP_PRESENT bit 6, bit 13, bits 15..24, bit 31): the result is unchanged, so only USER_SGPR, TGID_X/Y/Z_EN, TG_SIZE_EN and TIDIG_COMP_CNT are read. User SGPR counts 15, 16 and 31 decode as given. Negative and 2**32 values raise `ValueError`. - Reading against the layout the docs describe: user SGPRs first, then one SGPR per enabled group ID in X, Y, Z order with no gap for an omitted axis, then TIDIG_COMP_CNT + 1 local-ID VGPRs. The code agrees: `(rsrc2 >> 1) & 0x1f`, bits 7..9, `components + 1`, with the reserved count 3 refused. The table pointer pair must satisfy `table_reg + 1 < user_sgprs`, which is the right bound for a 64-bit pointer. `rsrc2` together with `--group-reg*` is refused, and local Y/Z are bound only when both enabled and larger than one. - On the earlier change request: TG_SIZE_EN is refused in this head, and the cases now enable X+Z, Y+Z, Z alone, all three axes and X behind four user SGPRs, with different group counts per axis, so the coordinates differ between axes. The same-source comparison against hand-named group registers passes for each case. Local mutation check on `tools/compute_store_aot.py`, against the Linux controls (each reverted afterwards; tree clean): - TGID bit positions shifted, axis order reversed, a register reserved for an omitted axis, TIDIG count off by one or count 3 accepted, TG_SIZE_EN accepted, table check made single-register or removed, `rsrc2` allowed with group registers, `local_axes` ignored: all caught. - USER_SGPR mask narrowed from five to four bits: **not caught**. No case uses 16 or more user SGPRs, so the field width is unpinned. - The `0 <= rsrc2 < 1 << 32` range check removed: not caught. (Negative values would still hit the TG_SIZE_EN test, so only values of 2**32 and above slip through.) Suggestions (non-blocking): add one control with `USER_SGPR` of 16 or more (for example `user(16) | TGID_X`) and one `rsrc2` with unrelated bits set (TRAP_PRESENT or an LDS size) that must decode like the plain value, so the field extraction is pinned from both sides. `entry_registers(1.0)` raises `TypeError` rather than `ValueError`; only reachable from Python, since the CLI parses an integer. Still open as the earlier review says: the draw readback checks consistency with the layout this code assumes, not the guest's own encoding. TG_SIZE staying refused is the right call until independent evidence exists. No defects found in the lowering. AI-assisted; commands listed were executed locally.
Jess-Doit commented 2026-11-24 16:03:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-24T15:26:07Z.


Updated in 2bdd20db:

  • TG_SIZE_EN is now refused, and the TG_SIZE word and --wave-size are removed.
  • The SGPR and VGPR mapping is kept.
  • The fixture now covers:
    • noncontiguous X/Z, and Y/Z with X omitted;
    • Z alone, all three axes, and X behind four user SGPRs;
    • different group counts per axis, so coordinates on more than one axis are distinct.
  • A swapped-coordinate draw control must mismatch.
  • The translation refuses omitted, moved and unenabled group and local registers.
  • Debug and Release pass 4/4 each on a GTX 1060 and WARP with the debug layer clean. Details are in the description.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136020724 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1608#issuecomment-7136020724). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-24T15:26:07Z. --- Updated in `2bdd20db`: - `TG_SIZE_EN` is now refused, and the TG_SIZE word and `--wave-size` are removed. - The SGPR and VGPR mapping is kept. - The fixture now covers: - noncontiguous X/Z, and Y/Z with X omitted; - Z alone, all three axes, and X behind four user SGPRs; - different group counts per axis, so coordinates on more than one axis are distinct. - A swapped-coordinate draw control must mismatch. - The translation refuses omitted, moved and unenabled group and local registers. - Debug and Release pass 4/4 each on a GTX 1060 and WARP with the debug layer clean. Details are in the description.
Jess-Doit commented 2026-11-24 16:03:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-24T15:50:17Z.


Thanks @tedin7. Both suggestions are in, in the commit after the main merge:

  • USER_SGPR of 16 and 31 now place group X in s16 and s31. Narrowing the mask to four bits fails the controls.
  • Unrelated bits must decode like the plain value: bit 0, TRAP_PRESENT, bits 13–14, an LDS size and bit 31.
  • Values outside 32 bits now raise ValueError, and so do non-integers such as 1.0, a string or True. Removing the range check fails the controls.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136696641 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1608#issuecomment-7136696641). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-24T15:50:17Z. --- Thanks @tedin7. Both suggestions are in, in the commit after the main merge: - `USER_SGPR` of 16 and 31 now place group X in `s16` and `s31`. Narrowing the mask to four bits fails the controls. - Unrelated bits must decode like the plain value: bit 0, `TRAP_PRESENT`, bits 13–14, an LDS size and bit 31. - Values outside 32 bits now raise `ValueError`, and so do non-integers such as `1.0`, a string or `True`. Removing the range check fails the controls.
upstream-sync closed this pull request 2026-11-24 17:01:40 +00:00
R0Y00 commented 2026-11-24 17:01:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T16:09:10Z.

Review: APPROVED


The requested scope is in place: TG_SIZE_EN is refused, and the fixture distinguishes absent axes and the enabled X/Z and Y/Z bindings. The binary check is registered in the parallel Linux job. Windows Release passed the two compute_entry_layout hardware and WARP tests with no skips on this head.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6042939470 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1608#pullrequestreview-6042939470). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T16:09:10Z. **Review:** APPROVED --- The requested scope is in place: TG_SIZE_EN is refused, and the fixture distinguishes absent axes and the enabled X/Z and Y/Z bindings. The binary check is registered in the parallel Linux job. Windows Release passed the two compute_entry_layout hardware and WARP tests with no skips on this head.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1601
No description provided.