Independent hardware run of the tombox-xshader exec suite: 21 RDNA2 mnemonics covered but not in rdna2_verified #188

Open
opened 2026-11-26 06:13:14 +00:00 by github-bot · 5 comments
Owner

@⁠MeNoSkills on GitHub · 2026-11-22 22:40 UTC · original

The progress map counts 768/797 RDNA2 instructions. Of the 29 not counted, 21 are implemented and covered by tests in the repo, but they are not in rdna2_verified in tools/progress/progress.json (and s_bfe_u32/s_bfe_i32 are rdna2_pending). I ran the whole exec suite on hardware that is not the maintainer's, in case it helps move them.

Run: upstream main 27122f7, NVIDIA GeForce RTX 4070 Ti (driver 32.0.16.2124), Windows 10 build 19045, MSVC stable toolchain.

TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec -- --test-threads=1

Result: 101 passed, 0 failed, 2 ignored (1321 s). The two ignored are probe_resource_hlsl and vop::leonida::wave_scc_readfirstlane_isa (its own ignore reason: lane model).

The harness prints counts of verified mnemonics per group, not their names, so the mapping below is taken from the test sources, and each test is one that passed in the run (the group line is quoted).

Mnemonics Test (file) Group result in the run
v_fmac_f16, v_fmamk_f16, v_fmaak_f16 vop::basic::vop3_basic (exec_vop/basic.rs, cases at lines 387-390; the same three are also in isa_sweep) 44 mnemonics verified, 0 failing, 1987 cases (and again with runtime inputs)
v_pk_lshlrev_b16, v_pk_lshrrev_b16 vop::leonida::leonida_ps_vectors (exec_vop/leonida.rs) 9 mnemonics verified, 0 failing, 13 cases
s_bfe_u32, s_bfe_i32 scalar_bfe32_result_and_scc (exec.rs) 2 mnemonics verified, 0 failing, 10 cases
image_atomic_swap, _cmpswap, _sub, _smin, _umin, _smax, _and, _or, _xor, _inc, _dec exec_mem::mimg::image_mimg_atomics (exec_mem/mimg.rs) 13 mnemonics verified (these 11 plus _add and _umax), 0 failing, 208 cases, all rerun with runtime inputs, 0 skipped
buffer_store_format_xy, buffer_store_format_xyz buffer_mubuf (exec.rs, cases at lines 1619 and 1626) 18 mnemonics verified, 0 failing, 143 cases
ds_write_b16_d16_hi exec_mem::ds::ds_lds_compute (exec_mem/ds.rs, line 134) 25 mnemonics verified, 0 failing, 50 cases

Also passing in the same run, in case they help: ds_gws_counter_updates_once_per_guest_wave, ds_gws_concurrent_posts_preserve_all_increments and the other exec_mem::gds tests, which cover the counter lowering of ds_gws_init, ds_gws_sema_v and ds_gws_sema_br.

The remaining 8 of the 29 are refused by the translator on purpose and are not in this list: s_sendmsghalt (halts the wave until a debugger resumes it), ds_gws_sema_p, ds_gws_barrier, ds_gws_sema_release_all (block on other thread groups) and ds_ordered_count (launch-ordered append). I think refusing them is right.

This is a GPU run only: I have no title dump and no AMD hardware, so it checks the translation against the test references on an NVIDIA GPU, not against RDNA2. The group counts come from verified(...) in the harness; if a mnemonic is missing from a group's list in your run, the source mapping above is where I would look first.

**@⁠MeNoSkills** on GitHub · 2026-11-22 22:40 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/188) The progress map counts 768/797 RDNA2 instructions. Of the 29 not counted, 21 are implemented and covered by tests in the repo, but they are not in `rdna2_verified` in `tools/progress/progress.json` (and `s_bfe_u32`/`s_bfe_i32` are `rdna2_pending`). I ran the whole `exec` suite on hardware that is not the maintainer's, in case it helps move them. Run: upstream main 27122f7, NVIDIA GeForce RTX 4070 Ti (driver 32.0.16.2124), Windows 10 build 19045, MSVC stable toolchain. TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec -- --test-threads=1 Result: 101 passed, 0 failed, 2 ignored (1321 s). The two ignored are `probe_resource_hlsl` and `vop::leonida::wave_scc_readfirstlane_isa` (its own ignore reason: lane model). The harness prints counts of verified mnemonics per group, not their names, so the mapping below is taken from the test sources, and each test is one that passed in the run (the group line is quoted). | Mnemonics | Test (file) | Group result in the run | |---|---|---| | `v_fmac_f16`, `v_fmamk_f16`, `v_fmaak_f16` | `vop::basic::vop3_basic` (`exec_vop/basic.rs`, cases at lines 387-390; the same three are also in `isa_sweep`) | 44 mnemonics verified, 0 failing, 1987 cases (and again with runtime inputs) | | `v_pk_lshlrev_b16`, `v_pk_lshrrev_b16` | `vop::leonida::leonida_ps_vectors` (`exec_vop/leonida.rs`) | 9 mnemonics verified, 0 failing, 13 cases | | `s_bfe_u32`, `s_bfe_i32` | `scalar_bfe32_result_and_scc` (`exec.rs`) | 2 mnemonics verified, 0 failing, 10 cases | | `image_atomic_swap`, `_cmpswap`, `_sub`, `_smin`, `_umin`, `_smax`, `_and`, `_or`, `_xor`, `_inc`, `_dec` | `exec_mem::mimg::image_mimg_atomics` (`exec_mem/mimg.rs`) | 13 mnemonics verified (these 11 plus `_add` and `_umax`), 0 failing, 208 cases, all rerun with runtime inputs, 0 skipped | | `buffer_store_format_xy`, `buffer_store_format_xyz` | `buffer_mubuf` (`exec.rs`, cases at lines 1619 and 1626) | 18 mnemonics verified, 0 failing, 143 cases | | `ds_write_b16_d16_hi` | `exec_mem::ds::ds_lds_compute` (`exec_mem/ds.rs`, line 134) | 25 mnemonics verified, 0 failing, 50 cases | Also passing in the same run, in case they help: `ds_gws_counter_updates_once_per_guest_wave`, `ds_gws_concurrent_posts_preserve_all_increments` and the other `exec_mem::gds` tests, which cover the counter lowering of `ds_gws_init`, `ds_gws_sema_v` and `ds_gws_sema_br`. The remaining 8 of the 29 are refused by the translator on purpose and are not in this list: `s_sendmsghalt` (halts the wave until a debugger resumes it), `ds_gws_sema_p`, `ds_gws_barrier`, `ds_gws_sema_release_all` (block on other thread groups) and `ds_ordered_count` (launch-ordered append). I think refusing them is right. This is a GPU run only: I have no title dump and no AMD hardware, so it checks the translation against the test references on an NVIDIA GPU, not against RDNA2. The group counts come from `verified(...)` in the harness; if a mnemonic is missing from a group's list in your run, the source mapping above is where I would look first.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:13:14 +00:00
Author
Owner

@⁠NemesisDawn on GitHub · 2026-11-23 02:34 UTC · original

Independent shader execution test — RTX 5080

Hi! I've completed an independent run of the tombox-xshader execution test suite on my Windows PC.

System specifications

  • GPU: NVIDIA GeForce RTX 5080
  • NVIDIA driver: 621.14
  • CPU: AMD Ryzen 7 9800X3D
  • RAM: 64 GB DDR5
  • OS: Windows 11 (build 26200.9974)
  • Rust: 1.100.0, stable MSVC toolchain
  • Repository commit: ad24144

Test command

TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec -- --test-threads=1

Results

  • Total tests: 121
  • Passed: 119
  • Failed: 0
  • Ignored: 2
  • Execution time: 1157.27 seconds (~19 minutes, 17 seconds)

Both ignored tests were:

  • probe_resource_hlsl
  • vop::leonida::wave_scc_readfirstlane_isa

The test suite completed successfully without failures.

Compared with the previous RTX 4070 Ti report (101 passed, 2 ignored), this run executed 18 additional passing tests on a newer repository revision. The difference in counts should not be interpreted as a GPU performance or compatibility improvement.

This is a translation test result on an NVIDIA GPU, not direct verification against native Xbox RDNA2 hardware.

I'm not a programmer, but I'm interested in helping the project through additional hardware testing, bug reproduction, and diagnostics.

If the maintainers have other tests that would benefit from independent verification on an RTX 5080, I'd be happy to run them and report the results.

gpu-test-rtx5080.log

**@⁠NemesisDawn** on GitHub · 2026-11-23 02:34 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/188#issuecomment-7090041999) ## Independent shader execution test — RTX 5080 Hi! I've completed an independent run of the `tombox-xshader` execution test suite on my Windows PC. ### System specifications - **GPU:** NVIDIA GeForce RTX 5080 - **NVIDIA driver:** 621.14 - **CPU:** AMD Ryzen 7 9800X3D - **RAM:** 64 GB DDR5 - **OS:** Windows 11 (build 26200.9974) - **Rust:** 1.100.0, stable MSVC toolchain - **Repository commit:** `ad24144` ### Test command `TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec -- --test-threads=1` ### Results - Total tests: 121 - Passed: 119 - Failed: 0 - Ignored: 2 - Execution time: 1157.27 seconds (~19 minutes, 17 seconds) Both ignored tests were: - `probe_resource_hlsl` - `vop::leonida::wave_scc_readfirstlane_isa` The test suite completed successfully without failures. Compared with the previous RTX 4070 Ti report (101 passed, 2 ignored), this run executed 18 additional passing tests on a newer repository revision. The difference in counts should not be interpreted as a GPU performance or compatibility improvement. This is a translation test result on an NVIDIA GPU, not direct verification against native Xbox RDNA2 hardware. I'm not a programmer, but I'm interested in helping the project through additional hardware testing, bug reproduction, and diagnostics. If the maintainers have other tests that would benefit from independent verification on an RTX 5080, I'd be happy to run them and report the results. [gpu-test-rtx5080.log](https://github.com/user-attachments/files/35251712/gpu-test-rtx5080.log)
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-23 02:45 UTC · original

Thanks for the run and the clear write-up. A clean 119/0 on an RTX 5080 at ad24144 is useful: it's a third NVIDIA generation passing the hardware path. As before, the verified counts in progress.json are written only by the maintainers' generator, so this report helps as evidence but doesn't edit the map directly.

If you'd like to help more, these are the most useful next runs, all on current main (c16f0fa or later):

  • TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec rdna2_silicon -- --nocapture: the recorded gfx1036 silicon vectors, with the f16 FMA NaN-class handling from #197. Please post the TOMBOX_EXEC_HW: line it prints.
  • TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec gather_explicit_lod and --test exec leonida: new since ad24144.
  • cargo test --locked -p compat-common --test gdk_xtaskqueue_conformance_real: runs the XTaskQueue scenarios against the PC runtime installed on your machine. Please report your xgameruntime.dll version, from the file's properties in System32.

Plain-text output pasted into the comment is best; there's no need to attach files.

**@⁠omonkeyz** on GitHub · 2026-11-23 02:45 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/188#issuecomment-7090186022) Thanks for the run and the clear write-up. A clean 119/0 on an RTX 5080 at ad24144 is useful: it's a third NVIDIA generation passing the hardware path. As before, the verified counts in progress.json are written only by the maintainers' generator, so this report helps as evidence but doesn't edit the map directly. If you'd like to help more, these are the most useful next runs, all on current main (c16f0fa or later): - `TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec rdna2_silicon -- --nocapture`: the recorded gfx1036 silicon vectors, with the f16 FMA NaN-class handling from #197. Please post the `TOMBOX_EXEC_HW:` line it prints. - `TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec gather_explicit_lod` and `--test exec leonida`: new since ad24144. - `cargo test --locked -p compat-common --test gdk_xtaskqueue_conformance_real`: runs the XTaskQueue scenarios against the PC runtime installed on your machine. Please report your xgameruntime.dll version, from the file's properties in System32. Plain-text output pasted into the comment is best; there's no need to attach files.
Author
Owner

@⁠NemesisDawn on GitHub · 2026-11-23 02:58 UTC · original

Thanks for the guidance! I've completed all three requested test groups on commit c16f0fa.

Test environment:

  • GPU: NVIDIA GeForce RTX 5080
  • Driver: 621.14
  • CPU: AMD Ryzen 7 9800X3D
  • RAM: 64 GB DDR5
  • OS: Windows 11 (build 26200.9974)
  • Rust: 1.100.0 (MSVC)
  • xgameruntime.dll: 10.0.26100.9656 (C:\Windows\System32)

1. RDNA2 silicon verification

Command:
TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec rdna2_silicon -- --nocapture

Relevant output:

TOMBOX_EXEC_HW: 33 f16 FMA cases whose recorded result is a NaN compare as a NaN class (the host GPU's NaN payload need not be RDNA2's); WARP compares them bit-exact

mimg_atomics_rdna2_silicon: 13 mnemonics verified, 0 failing or skipped, 208 cases, 208 rerun with runtime inputs, 0 cases skipped for the runtime's shader model

rdna2_silicon: 15 mnemonics verified, 0 failing, 480 cases
rdna2_silicon (runtime inputs): 15 mnemonics verified, 0 failing, 480 cases

test result: ok. 2 passed; 0 failed; 0 ignored; finished in 27.62s

2. Additional shader tests

gather_explicit_lod:

test exec_mem::mimg::image_mimg_gather_explicit_lod ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; finished in 1.68s

leonida:

test result: ok. 9 passed; 0 failed; 1 ignored; finished in 2.57s

The ignored test was vop::leonida::wave_scc_readfirstlane_isa, with the lane-model limitation reported by the test suite.

3. Xbox TaskQueue conformance

Command:
cargo test --locked -p compat-common --test gdk_xtaskqueue_conformance_real

Output:

running 60 tests
test result: ok. 60 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.12s

All 60 TaskQueue tests completed successfully against the installed PC runtime.

Overall: 72 passed, 0 failed, 1 ignored across the requested runs.

I'm happy to continue with further verification, particularly any untested GPU features, regression cases or known failures where independent RTX 5080 results would help.

Please let me know which tests would be most valuable next!

**@⁠NemesisDawn** on GitHub · 2026-11-23 02:58 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/188#issuecomment-7090365994) Thanks for the guidance! I've completed all three requested test groups on commit `c16f0fa`. **Test environment:** - GPU: NVIDIA GeForce RTX 5080 - Driver: 621.14 - CPU: AMD Ryzen 7 9800X3D - RAM: 64 GB DDR5 - OS: Windows 11 (build 26200.9974) - Rust: 1.100.0 (MSVC) - xgameruntime.dll: 10.0.26100.9656 (C:\Windows\System32) ### 1. RDNA2 silicon verification Command: `TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --test exec rdna2_silicon -- --nocapture` Relevant output: ```text TOMBOX_EXEC_HW: 33 f16 FMA cases whose recorded result is a NaN compare as a NaN class (the host GPU's NaN payload need not be RDNA2's); WARP compares them bit-exact mimg_atomics_rdna2_silicon: 13 mnemonics verified, 0 failing or skipped, 208 cases, 208 rerun with runtime inputs, 0 cases skipped for the runtime's shader model rdna2_silicon: 15 mnemonics verified, 0 failing, 480 cases rdna2_silicon (runtime inputs): 15 mnemonics verified, 0 failing, 480 cases test result: ok. 2 passed; 0 failed; 0 ignored; finished in 27.62s ``` ### 2. Additional shader tests **gather_explicit_lod:** ```text test exec_mem::mimg::image_mimg_gather_explicit_lod ... ok test result: ok. 1 passed; 0 failed; 0 ignored; finished in 1.68s ``` **leonida:** ```text test result: ok. 9 passed; 0 failed; 1 ignored; finished in 2.57s ``` The ignored test was `vop::leonida::wave_scc_readfirstlane_isa`, with the lane-model limitation reported by the test suite. ### 3. Xbox TaskQueue conformance Command: `cargo test --locked -p compat-common --test gdk_xtaskqueue_conformance_real` Output: ```text running 60 tests test result: ok. 60 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.12s ``` All 60 TaskQueue tests completed successfully against the installed PC runtime. **Overall: 72 passed, 0 failed, 1 ignored across the requested runs.** I'm happy to continue with further verification, particularly any untested GPU features, regression cases or known failures where independent RTX 5080 results would help. Please let me know which tests would be most valuable next!
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-23 03:22 UTC · original

Thanks, all clean: rdna2_silicon 480/480 with 33 NaN-class cases, the gather and Leonida tests, and 60/60 TaskQueue conformance against xgameruntime 10.0.26100.9656. That's the same runtime version the conformance tests were written against, so it's a good second data point. If you want something larger, issue #105 is open, and I've just posted what a PR for it needs.

**@⁠omonkeyz** on GitHub · 2026-11-23 03:22 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/188#issuecomment-7090696991) Thanks, all clean: rdna2_silicon 480/480 with 33 NaN-class cases, the gather and Leonida tests, and 60/60 TaskQueue conformance against xgameruntime 10.0.26100.9656. That's the same runtime version the conformance tests were written against, so it's a good second data point. If you want something larger, issue #105 is open, and I've just posted what a PR for it needs.
Author
Owner

@⁠QuentinDanblon on GitHub · 2026-11-23 17:04 UTC · original

Hardware run of the exec suite on an RTX 5090, current main.

  • Commit: f89e410 (r32l)
  • GPU: NVIDIA GeForce RTX 5090, driver 617.42
  • OS: Windows 11 Pro build 26300
  • Rust 1.100.0, MSVC
  • Command: TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --release --test exec -- --test-threads=1

Result: 127 passed, 1 failed, 2 ignored (1130 s).

  • Ignored: probe_resource_hlsl, vop::leonida::wave_scc_readfirstlane_isa (lane model), as in the earlier reports.
  • rdna2_silicon: 15 mnemonics, 480 cases, 0 failing (33 f16 FMA NaN cases compared as a class); runtime inputs the same. mimg_atomics_rdna2_silicon: 13 mnemonics, 208 cases, 0 failing.
  • The one failure: pk_int16_constants_and_clamp, runtime-inputs pass: 5 mnemonics verified, 1 failing, 16 cases (panic at tests/exec_vop/mod.rs:94). The constant-input pass is clean (6/6). This is the case #267 addresses: v_pk_add/sub/mad_i16 with CLAMP gives a wrong high lane on this GPU.

This is a translation test on an NVIDIA GPU, not a check against RDNA2 hardware.

**@⁠QuentinDanblon** on GitHub · 2026-11-23 17:04 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/188#issuecomment-7108100911) Hardware run of the exec suite on an RTX 5090, current main. - Commit: `f89e410` (r32l) - GPU: NVIDIA GeForce RTX 5090, driver 617.42 - OS: Windows 11 Pro build 26300 - Rust 1.100.0, MSVC - Command: `TOMBOX_EXEC_HW=1 cargo test --locked -p tombox-xshader --release --test exec -- --test-threads=1` Result: **127 passed, 1 failed, 2 ignored** (1130 s). - Ignored: `probe_resource_hlsl`, `vop::leonida::wave_scc_readfirstlane_isa` (lane model), as in the earlier reports. - `rdna2_silicon`: 15 mnemonics, 480 cases, 0 failing (33 f16 FMA NaN cases compared as a class); runtime inputs the same. `mimg_atomics_rdna2_silicon`: 13 mnemonics, 208 cases, 0 failing. - The one failure: `pk_int16_constants_and_clamp`, runtime-inputs pass: `5 mnemonics verified, 1 failing, 16 cases` (panic at `tests/exec_vop/mod.rs:94`). The constant-input pass is clean (6/6). This is the case #267 addresses: `v_pk_add/sub/mad_i16` with CLAMP gives a wrong high lane on this GPU. This is a translation test on an NVIDIA GPU, not a check against RDNA2 hardware.
This discussion has been locked. Commenting is limited to contributors.
No description provided.