Resubmit #47 #49 #55 #58 on current main, plus RDNA2 hardware-measured vectors (14 translator fixes) #152

Closed
QuentinDanblon wants to merge 6 commits from upstream-pr/152 into main
QuentinDanblon commented 2026-11-22 16:18:37 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by QuentinDanblon on 2026-11-22T16:18:37Z.


Library / area: tombox-xshader, d3d12_xs, compat-common (GameInput)

Exports changed (exports.txt rows): none

Source of the behaviour: RDNA2 ISA, LLVM AMDGPU (gfx1013), AMD machine-readable ISA specification, Mesa and LLPC (reference only), measurements on an RTX 5090, and results measured on AMD RDNA hardware published by the Leonida project (facts only, no code). THIRD_PARTY/CREDITS is updated in the last commit.

Thanks for merging #36 and #61. This carries four of the pull requests you asked me to resubmit (#47, #49, #55, #58), rebased on f10db75 with your requests applied, plus one new change. It is a single pull request with one commit per change, so that you have one place to look. If you prefer separate pull requests, say so and I will split it. #48 is left out, the reason is at the end.

No comment lines are added (PR gate run locally: 25 files checked, 0 problems). No commit message or code names a title, a game corpus or a GPL-2.0 project.

Commits

commit was change your request
c0ebb9d #49 Opcode tables checked against gfx1013 and gfx7 references (tests/isa_table.rs): 17 decoder names and 5 GFX7 lowerings corrected Rebased, no tools/progress change, comment lines removed. In gcn.rs the image_atomic_rsub refusal sits next to the R128 / TFE / LWE refusals of d585b94
7f9c1d6 new 60 cases measured on an AMD Radeon RX 6800, as exec tests. 14 disagreed with main and are fixed (details below)
0b726e7 #58 Mesh: full merged_wave_info in s3, GS_ALLOC_REQ field widths per the ISA The comment lines are removed, game references included. Rebased over 3526327 (local allocation counts), both changes kept
f14fbee #55 d3d12_xs: R9G9B9E5 UAV textures stored as RGBA16F on hosts without a typed UAV for that format Restated without a title or a GPL-2.0 project, comment lines removed, rebased on the current device_wrap.rs (keeps title_layout_size and res3d::note_create)
560c8e7 #47 Virtual pad: keyboard mapping, XInput pads that GameInput does not report, rumble (TOMBOX_PAD_XINPUT / pad_xinput, TOMBOX_PAD_KEYS / pad_keys) Rebased on the current gamepad.rs: host changes go through the new reading history, so GetNextReading / GetPreviousReading see them like scripted ones (one test added). Comment lines removed, tools/dev/pad.ps1 not touched
2f1cfd0 THIRD_PARTY/CREDITS: LLVM and AMD ISA specification lines for the opcode tables, Leonida line extended to the new vectors. Kept apart so that the code commits do not conflict on that file

Files: 0b726e7 touches only hlsl/mesh.rs and tests/mesh.rs, f14fbee only d3d12_xs, 560c8e7 only compat-common. c0ebb9d and 7f9c1d6 both touch rdna2.rs and tests/exec.rs.

Notes per commit

7f9c1d6 (new). The vectors are results an RX 6800 (gfx1030) returned, published in the comments of Leonida's GPU test programs (GPL-3.0). Its NaN vectors were taken with the hw-oracle tool of the AnyPS5 project. Only facts are used (instruction, input bits, measured bits); encodings come from llvm-mc -mcpu=gfx1013. 46 of the 60 cases already passed on main. The 14 others:

  • An inline float constant in an f16 operand is the f16 of that value in the low half and zero in the high half (LLVM getLit16Encoding). v_pack_b32_f16 and v_cvt_f32_f16 read the f32 bit pattern, OPSEL on a constant read the constant again instead of +0.0, and 1/2pi is the f16 0x3118.
  • v_med3_f32 with a NaN operand is MIN3 with the NaN ignored (RDNA2 ISA): med3(NaN, 7, 5) is 5, was 7.
  • SMEM: the 21-bit immediate is signed (LLVM isInt<21> on GFX9+), and soffset and the immediate are each truncated to a multiple of 4 before they are added. A negative immediate without SOFFSET is refused.

f14fbee (#55). The failure was first documented by the americas-recomp project (GPL-2.0). Only the behavioural fact is used, the code is independent; #55 has the context. The hardware test for your side: cargo test -p d3d12_xs --release --lib hw_rgb9e5 -- --ignored. It skips on WARP, which supports the format natively.

560c8e7 (#47). The one change #47 made to tools/dev/pad.ps1, for when you regenerate it, was a line in the help output: host input (a real XInput pad, keyboard WASD/arrows/Space... while the title window is focused) feeds the same pad; a running script, or a scripted 'down' not yet released, masks it (compat-common pad_host.rs).

Results

Run on 2f1cfd0 (this branch on f10db75), Windows 11, RTX 5090, --release.

suite WARP RTX 5090 (TOMBOX_EXEC_HW=1)
cargo test -p tombox-xshader, all targets 0 failed. exec 94 passed (2 ignored), lib 70, mesh 22 (1 ignored), opcodes 23, synthetic 18, isa_table 3, linkage 3, mixed_table 3, gcn_dims 3
--test exec 94 passed, 0 failed, 2 ignored 94 passed, 0 failed, 2 ignored
--test isa_sweep 541 mnemonics: 530 pass, 0 fail, 11 known WARP deviations 541 pass, 0 fail
--test mesh / centroid 22 passed (1 ignored) / 1 passed 22 passed (1 ignored) / 1 passed
  • Host input: compat-common lib 33 passed (filtered on the pad, GameInput and host input tests), gameinput_ext 3 passed.
  • d3d12_xs hardware tests (hw_, ignored by default): 39 passed, hw_rgb9e5_typed_uav_texture_is_substituted included.
  • d3d12_xs --lib: 482 passed, 2 failed, 40 ignored. The same two tests fail on f10db75 without this branch (471 passed, 2 failed, 39 ignored): xs_exports::console_fixed_tests::fixed_result_dxgix_exports_match_every_console_d3d12_xs and device_console_fix::tests::console_heap_properties_create_on_pc_through_every_wrapped_path. On 9ab6f59, in a debug build, the first failed and the second passed, with and without this branch.
  • Not run against a title.

Not included

  • #48 (XTaskQueue / XAsync conformance tests). I reran it as you asked, on 9ab6f59. The 24 DIFFERS entries still hold, each run in its own process (22 fail, one does not return, one fails only under load). But the default run is not stable: with that commit alone on 9ab6f59, 1 of 12 serial runs and 1 of 12 parallel runs failed, in verify_async_block_reuse or verify_simple_async_call, because XAsyncGetStatus(wait) returned before the completion callback had run. verify_no_write_after_get_status_race also failed in 2 of 5 runs of the whole suite, with the async block written after the wait returned. gdk/rt.rs is unchanged since 6741468. I will resubmit it when the default run is deterministic.

  • #72, to resubmit after #41 as you said.

  • cargo test -p tombox-xshader passes on WARP

  • No game or console files and no binaries included

  • No fake success; anything not possible is left missing with a note

🤖 Generated with Claude Code

<!-- greyfinch-sync:omonkeyz/xbox-emulator:issue:6544714872 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/152). Originally posted by [QuentinDanblon](https://github.com/QuentinDanblon) on 2026-11-22T16:18:37Z. --- **Library / area:** tombox-xshader, d3d12_xs, compat-common (GameInput) **Exports changed (exports.txt rows):** none **Source of the behaviour:** RDNA2 ISA, LLVM AMDGPU (gfx1013), AMD machine-readable ISA specification, Mesa and LLPC (reference only), measurements on an RTX 5090, and results measured on AMD RDNA hardware published by the Leonida project (facts only, no code). `THIRD_PARTY/CREDITS` is updated in the last commit. Thanks for merging #36 and #61. This carries four of the pull requests you asked me to resubmit (#47, #49, #55, #58), rebased on `f10db75` with your requests applied, plus one new change. It is a single pull request with **one commit per change**, so that you have one place to look. If you prefer separate pull requests, say so and I will split it. #48 is left out, the reason is at the end. No comment lines are added (PR gate run locally: 25 files checked, 0 problems). No commit message or code names a title, a game corpus or a GPL-2.0 project. ### Commits | commit | was | change | your request | |---|---|---|---| | `c0ebb9d` | #49 | Opcode tables checked against gfx1013 and gfx7 references (`tests/isa_table.rs`): 17 decoder names and 5 GFX7 lowerings corrected | Rebased, no `tools/progress` change, comment lines removed. In `gcn.rs` the `image_atomic_rsub` refusal sits next to the R128 / TFE / LWE refusals of `d585b94` | | `7f9c1d6` | new | 60 cases measured on an AMD Radeon RX 6800, as exec tests. 14 disagreed with main and are fixed (details below) | | | `0b726e7` | #58 | Mesh: full `merged_wave_info` in s3, `GS_ALLOC_REQ` field widths per the ISA | The comment lines are removed, game references included. Rebased over `3526327` (local allocation counts), both changes kept | | `f14fbee` | #55 | d3d12_xs: R9G9B9E5 UAV textures stored as RGBA16F on hosts without a typed UAV for that format | Restated without a title or a GPL-2.0 project, comment lines removed, rebased on the current `device_wrap.rs` (keeps `title_layout_size` and `res3d::note_create`) | | `560c8e7` | #47 | Virtual pad: keyboard mapping, XInput pads that GameInput does not report, rumble (`TOMBOX_PAD_XINPUT` / `pad_xinput`, `TOMBOX_PAD_KEYS` / `pad_keys`) | Rebased on the current `gamepad.rs`: host changes go through the new reading history, so `GetNextReading` / `GetPreviousReading` see them like scripted ones (one test added). Comment lines removed, `tools/dev/pad.ps1` not touched | | `2f1cfd0` | | `THIRD_PARTY/CREDITS`: LLVM and AMD ISA specification lines for the opcode tables, Leonida line extended to the new vectors. Kept apart so that the code commits do not conflict on that file | | Files: `0b726e7` touches only `hlsl/mesh.rs` and `tests/mesh.rs`, `f14fbee` only `d3d12_xs`, `560c8e7` only `compat-common`. `c0ebb9d` and `7f9c1d6` both touch `rdna2.rs` and `tests/exec.rs`. ### Notes per commit **`7f9c1d6` (new).** The vectors are results an RX 6800 (gfx1030) returned, published in the comments of Leonida's GPU test programs (GPL-3.0). Its NaN vectors were taken with the hw-oracle tool of the AnyPS5 project. Only facts are used (instruction, input bits, measured bits); encodings come from `llvm-mc -mcpu=gfx1013`. 46 of the 60 cases already passed on main. The 14 others: - An inline float constant in an f16 operand is the f16 of that value in the low half and zero in the high half (LLVM `getLit16Encoding`). `v_pack_b32_f16` and `v_cvt_f32_f16` read the f32 bit pattern, OPSEL on a constant read the constant again instead of +0.0, and 1/2pi is the f16 `0x3118`. - `v_med3_f32` with a NaN operand is MIN3 with the NaN ignored (RDNA2 ISA): `med3(NaN, 7, 5)` is 5, was 7. - SMEM: the 21-bit immediate is signed (LLVM `isInt<21>` on GFX9+), and soffset and the immediate are each truncated to a multiple of 4 before they are added. A negative immediate without SOFFSET is refused. **`f14fbee` (#55).** The failure was first documented by the americas-recomp project (GPL-2.0). Only the behavioural fact is used, the code is independent; #55 has the context. The hardware test for your side: `cargo test -p d3d12_xs --release --lib hw_rgb9e5 -- --ignored`. It skips on WARP, which supports the format natively. **`560c8e7` (#47).** The one change #47 made to `tools/dev/pad.ps1`, for when you regenerate it, was a line in the help output: `host input (a real XInput pad, keyboard WASD/arrows/Space... while the title window is focused) feeds the same pad; a running script, or a scripted 'down' not yet released, masks it (compat-common pad_host.rs)`. ### Results Run on `2f1cfd0` (this branch on `f10db75`), Windows 11, RTX 5090, `--release`. | suite | WARP | RTX 5090 (`TOMBOX_EXEC_HW=1`) | |---|---|---| | `cargo test -p tombox-xshader`, all targets | 0 failed. exec 94 passed (2 ignored), lib 70, mesh 22 (1 ignored), opcodes 23, synthetic 18, isa_table 3, linkage 3, mixed_table 3, gcn_dims 3 | | | `--test exec` | 94 passed, 0 failed, 2 ignored | 94 passed, 0 failed, 2 ignored | | `--test isa_sweep` | 541 mnemonics: 530 pass, 0 fail, 11 known WARP deviations | 541 pass, 0 fail | | `--test mesh` / `centroid` | 22 passed (1 ignored) / 1 passed | 22 passed (1 ignored) / 1 passed | - Host input: `compat-common` lib 33 passed (filtered on the pad, GameInput and host input tests), `gameinput_ext` 3 passed. - `d3d12_xs` hardware tests (`hw_`, ignored by default): 39 passed, `hw_rgb9e5_typed_uav_texture_is_substituted` included. - `d3d12_xs --lib`: 482 passed, **2 failed**, 40 ignored. The same two tests fail on `f10db75` without this branch (471 passed, 2 failed, 39 ignored): `xs_exports::console_fixed_tests::fixed_result_dxgix_exports_match_every_console_d3d12_xs` and `device_console_fix::tests::console_heap_properties_create_on_pc_through_every_wrapped_path`. On `9ab6f59`, in a debug build, the first failed and the second passed, with and without this branch. - Not run against a title. ### Not included - **#48 (XTaskQueue / XAsync conformance tests).** I reran it as you asked, on `9ab6f59`. The 24 `DIFFERS` entries still hold, each run in its own process (22 fail, one does not return, one fails only under load). But the default run is not stable: with that commit alone on `9ab6f59`, 1 of 12 serial runs and 1 of 12 parallel runs failed, in `verify_async_block_reuse` or `verify_simple_async_call`, because `XAsyncGetStatus(wait)` returned before the completion callback had run. `verify_no_write_after_get_status_race` also failed in 2 of 5 runs of the whole suite, with the async block written after the wait returned. `gdk/rt.rs` is unchanged since `6741468`. I will resubmit it when the default run is deterministic. - **#72**, to resubmit after #41 as you said. - [x] `cargo test -p tombox-xshader` passes on WARP - [x] No game or console files and no binaries included - [x] No fake success; anything not possible is left `missing` with a note 🤖 Generated with [Claude Code](https://claude.com/claude-code)
omonkeyz commented 2026-11-22 16:26:19 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by omonkeyz on 2026-11-22T16:26:19Z.


Thanks for resubmitting all of this on current main, and for the hardware-measured vectors! At about 4,800 lines across compat-common (pad host), d3d12_xs (UAV substitution, upload.rs, device_wrap) and the shader translator, it's too large to review and land as one change. Please split it into small PRs of a few hundred lines each, one topic per PR, each with its own tests:

  1. One PR for each former PR you're resubmitting (#47, #49, #55, #58), rebased onto current main.
  2. The translator fixes, in small groups, with the isa_table vectors that check them. The large gfx1013.txt / gfx7.txt tables can go in with the first translator PR that uses them.
  3. The pad host / gamepad change on its own.
  4. The uav_subst change on its own. It touches the d3d12_xs hot path, so please include its cost on a draw-heavy workload or a micro-bench.
  5. upload.rs changes on their own. Note that #146 just landed there and #153 is under review.

Please keep each new THIRD_PARTY/CREDITS line with the PR that uses it.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:comment:7082073345 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/152#issuecomment-7082073345). Originally posted by [omonkeyz](https://github.com/omonkeyz) on 2026-11-22T16:26:19Z. --- Thanks for resubmitting all of this on current main, and for the hardware-measured vectors! At about 4,800 lines across compat-common (pad host), d3d12_xs (UAV substitution, upload.rs, device_wrap) and the shader translator, it's too large to review and land as one change. Please split it into small PRs of a few hundred lines each, one topic per PR, each with its own tests: 1. One PR for each former PR you're resubmitting (#47, #49, #55, #58), rebased onto current main. 2. The translator fixes, in small groups, with the `isa_table` vectors that check them. The large `gfx1013.txt` / `gfx7.txt` tables can go in with the first translator PR that uses them. 3. The pad host / gamepad change on its own. 4. The `uav_subst` change on its own. It touches the d3d12_xs hot path, so please include its cost on a draw-heavy workload or a micro-bench. 5. `upload.rs` changes on their own. Note that #146 just landed there and #153 is under review. Please keep each new THIRD_PARTY/CREDITS line with the PR that uses it.
MiguelMatMar commented 2026-11-22 17:57:07 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by MiguelMatMar on 2026-11-22T17:57:07Z.


Ran this on Windows 11, MSVC, NVIDIA Ada / RTX 40-series (a second NVIDIA generation besides your RTX 5090), each tree with its own target dir.

On the branch itself (2f1cfd0) everything passes:

suite WARP Hardware (TOMBOX_EXEC_HW=1)
--test exec 94 passed, 0 failed, 2 ignored 94 passed, 0 failed, 2 ignored
--test isa_sweep 541: 530 pass, 0 fail, 11 known WARP deviations 541 pass, 0 fail
cargo test -p tombox-xshader, all targets 0 failed
d3d12_xs hw_rgb9e5_typed_uav_texture_is_substituted passed; this adapter has no typed R9G9B9E5 UAV (Support1=0x8013f0), so the substitution path really ran

Merged onto main 0a9ebcd (only conflict: the Leonida / TomBox lines in THIRD_PARTY/CREDITS, keeping both sides' additions), exec (99 passed) and isa_sweep (541) still pass on WARP and hardware, but isa_table::gcn_lowering_keeps_instruction fails:

6 gfx7 lowering mismatches:
gfx7 vop2 0x00d v_min_legacy_f32 lowers to v_cmp_lt_f32 + v_cndmask_b32
gfx7 vop2 0x00e v_max_legacy_f32 lowers to v_cmp_ge_f32 + v_cndmask_b32
gfx7 vop2 0x02c v_cvt_pkaccum_u8_f32 lowers to v_cvt_pk_u8_f32
gfx7 vop3 0x10d v_min_legacy_f32 lowers to v_cmp_lt_f32 + v_cndmask_b32
gfx7 vop3 0x10e v_max_legacy_f32 lowers to v_cmp_ge_f32 + v_cndmask_b32
gfx7 vop3 0x12c v_cvt_pkaccum_u8_f32 lowers to v_cvt_pk_u8_f32

Those are the intended lowerings from #140 and #141, which landed after this branch was cut. Adding them to gfx7_equivalent in tests/isa_table.rs fixes it:

        "v_min_legacy_f32" => return vec!["v_cmp_lt_f32".into(), "v_cndmask_b32".into()],
        "v_max_legacy_f32" => return vec!["v_cmp_ge_f32".into(), "v_cndmask_b32".into()],
        "v_cvt_pkaccum_u8_f32" => "v_cvt_pk_u8_f32",

With that, isa_table passes 3/3 and the rest of the tombox-xshader suites pass too (16 suites, 213 tests, 0 failed).

Heads-up: against the newest main (1e77fcc) the branch now also conflicts in crates/compat/d3d12_xs/src/device_wrap.rs and upload.rs, so it will need a rebase anyway.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:comment:7083228515 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/152#issuecomment-7083228515). Originally posted by [MiguelMatMar](https://github.com/MiguelMatMar) on 2026-11-22T17:57:07Z. --- Ran this on Windows 11, MSVC, NVIDIA Ada / RTX 40-series (a second NVIDIA generation besides your RTX 5090), each tree with its own target dir. **On the branch itself (`2f1cfd0`)** everything passes: | suite | WARP | Hardware (`TOMBOX_EXEC_HW=1`) | |---|---|---| | `--test exec` | 94 passed, 0 failed, 2 ignored | 94 passed, 0 failed, 2 ignored | | `--test isa_sweep` | 541: 530 pass, 0 fail, 11 known WARP deviations | 541 pass, 0 fail | | `cargo test -p tombox-xshader`, all targets | 0 failed | | | `d3d12_xs hw_rgb9e5_typed_uav_texture_is_substituted` | | passed; this adapter has no typed R9G9B9E5 UAV (`Support1=0x8013f0`), so the substitution path really ran | **Merged onto main `0a9ebcd`** (only conflict: the Leonida / TomBox lines in `THIRD_PARTY/CREDITS`, keeping both sides' additions), `exec` (99 passed) and `isa_sweep` (541) still pass on WARP and hardware, but **`isa_table::gcn_lowering_keeps_instruction` fails**: ```text 6 gfx7 lowering mismatches: gfx7 vop2 0x00d v_min_legacy_f32 lowers to v_cmp_lt_f32 + v_cndmask_b32 gfx7 vop2 0x00e v_max_legacy_f32 lowers to v_cmp_ge_f32 + v_cndmask_b32 gfx7 vop2 0x02c v_cvt_pkaccum_u8_f32 lowers to v_cvt_pk_u8_f32 gfx7 vop3 0x10d v_min_legacy_f32 lowers to v_cmp_lt_f32 + v_cndmask_b32 gfx7 vop3 0x10e v_max_legacy_f32 lowers to v_cmp_ge_f32 + v_cndmask_b32 gfx7 vop3 0x12c v_cvt_pkaccum_u8_f32 lowers to v_cvt_pk_u8_f32 ``` Those are the intended lowerings from #140 and #141, which landed after this branch was cut. Adding them to `gfx7_equivalent` in `tests/isa_table.rs` fixes it: ```rust "v_min_legacy_f32" => return vec!["v_cmp_lt_f32".into(), "v_cndmask_b32".into()], "v_max_legacy_f32" => return vec!["v_cmp_ge_f32".into(), "v_cndmask_b32".into()], "v_cvt_pkaccum_u8_f32" => "v_cvt_pk_u8_f32", ``` With that, `isa_table` passes 3/3 and the rest of the `tombox-xshader` suites pass too (16 suites, 213 tests, 0 failed). Heads-up: against the newest main (`1e77fcc`) the branch now also conflicts in `crates/compat/d3d12_xs/src/device_wrap.rs` and `upload.rs`, so it will need a rebase anyway.
QuentinDanblon commented 2026-11-23 01:16:56 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by QuentinDanblon on 2026-11-23T01:16:56Z.


Split as you asked, one topic per PR, each with its tests:

PR topic size
#200 mesh: merged_wave_info in s3, GS_ALLOC_REQ widths (was #58), written for the two-pass path of 256-thread shaders +54 / -14
#201 opcode tables checked against gfx1013 and gfx7 (was #49) 238 lines of code and tests, plus the two reference tables
#202 inline float constants in f16 operands, with the RX 6800 vectors +116 / -5
#203 v_med3_f32 with a NaN operand +17 / -1
#206 the SMEM immediate is signed +24 / -4
#207 pad host / gamepad (was #47) +654 / -8
  • #201 fixes the isa_table failure this PR had after #140 and #141. Thanks to MiguelMatMar for the run on a second NVIDIA generation and for the three equivalence lines, they are in #201 and the commit message names the source.
  • #206 is rebased over your smem_bounds.rs. Main now truncates soffset and the immediate, so that part is dropped and only the signed immediate is left: three of the RX 6800 vectors still return 0 on 2eda8b0.
  • Each THIRD_PARTY/CREDITS line is in the PR that uses it (#201 and #206). #202 and #203 put their tests in tests/exec_vop/leonida.rs, which the existing Leonida line already covers.
  • All six were validated on WARP only, because the GPU of my machine is busy for now. Each PR says so. I will post the hardware runs when the card is free.

Still to come, as separate PRs: uav_subst (was #55) with its cost on a draw-heavy workload or a micro-bench, then the upload.rs change on its own. Both need the GPU.

Closing this one in favour of the PRs above.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:comment:7089020276 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/152#issuecomment-7089020276). Originally posted by [QuentinDanblon](https://github.com/QuentinDanblon) on 2026-11-23T01:16:56Z. --- Split as you asked, one topic per PR, each with its tests: | PR | topic | size | |---|---|---| | #200 | mesh: `merged_wave_info` in s3, `GS_ALLOC_REQ` widths (was #58), written for the two-pass path of 256-thread shaders | +54 / -14 | | #201 | opcode tables checked against gfx1013 and gfx7 (was #49) | 238 lines of code and tests, plus the two reference tables | | #202 | inline float constants in f16 operands, with the RX 6800 vectors | +116 / -5 | | #203 | `v_med3_f32` with a NaN operand | +17 / -1 | | #206 | the SMEM immediate is signed | +24 / -4 | | #207 | pad host / gamepad (was #47) | +654 / -8 | - #201 fixes the `isa_table` failure this PR had after #140 and #141. Thanks to MiguelMatMar for the run on a second NVIDIA generation and for the three equivalence lines, they are in #201 and the commit message names the source. - #206 is rebased over your `smem_bounds.rs`. Main now truncates soffset and the immediate, so that part is dropped and only the signed immediate is left: three of the RX 6800 vectors still return 0 on `2eda8b0`. - Each `THIRD_PARTY/CREDITS` line is in the PR that uses it (#201 and #206). #202 and #203 put their tests in `tests/exec_vop/leonida.rs`, which the existing Leonida line already covers. - All six were validated on WARP only, because the GPU of my machine is busy for now. Each PR says so. I will post the hardware runs when the card is free. Still to come, as separate PRs: `uav_subst` (was #55) with its cost on a draw-heavy workload or a micro-bench, then the `upload.rs` change on its own. Both need the GPU. Closing this one in favour of the PRs above.

Pull request closed

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
omonkeyz/xbox-emulator!152
No description provided.