chore: integrate ready contributor PRs (#271 #250 #245 #247 #246 #251 #241 #260 #235 #230 #232) #277

Merged
LooperSalty merged 23 commits from upstream-pr/277 into main 2026-11-26 00:15:04 +00:00
LooperSalty commented 2026-11-26 00:10:47 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T00:10:47Z.


Integrates the contributor PRs reviewed as ready. Each contributor commit is kept with its author through git merge --no-ff; nothing is squashed or rebased. Merging this PR marks those PRs merged on GitHub, since their commits land in main.

Included (in merge order)

  • #271 (lcg007xd-c): v_bfe_i32 reads copies of the sign bit when the field runs past bit 31
  • #250 (lcg007xd-c): half-precision compares (v_cmp[x]_*_f16, v_cmp[x]_class_f16) in the HLSL recompiler
  • #245 (lcg007xd-c): v_floor/ceil/trunc/rndne_f16 in the RDNA 2 interpreter
  • #247 (lcg007xd-c): v_fract_f16, v_frexp_mant_f16, v_frexp_exp_i16_f16 in the RDNA 2 interpreter
  • #246 (lcg007xd-c): v_cvt_pkrtz_f16_f32 in the RDNA 2 interpreter
  • #251 (lcg007xd-c): v_floor/ceil/trunc/rndne_f16 in the HLSL recompiler (its copy of #245 was deduplicated by git)
  • #241 (lcg007xd-c): s_version, s_atc_probe, s_atc_probe_buffer in the RDNA 2 interpreter and HLSL
  • #260 (Pedro Pandolfi): implement v_rndne_f32 in integer HLSL to avoid the NVIDIA Round_ne folding bug
  • #235 (KainanP): apply VOP3 clamp on v_add/sub/subrev_nc_u32 and the carry-out add/sub
  • #230 (KainanP): d16 typed buffer loads and stores in the RDNA 2 interpreter and HLSL
  • #232 (KainanP): 16-bit integer VALU (VOP3 and packed VOP3P) in the RDNA 2 interpreter and HLSL

Dropped: none.

Conflict resolution

  • README count lines and their translations (every RDNA 2 PR edits them): kept the main side during the merges, then fixed once in the final commit.
  • PrototypeScarlett/emu/rdna2_exec_f16.py (#246 vs #245/#247): both hunks kept.
  • PrototypeScarlett/emu/rdna2_hlsl.py and rdna2_hlsl_wave64.py (#232 vs #250): both dispatch branches (COMPAREF16, rdna2_hlsl_int16) and both helper sets kept.

README counts (old -> new, same values in the 9 READMEs)

  • RDNA 2 coverage: 1,216 of 1,490 -> 1,285 of 1,490 (rdna2_exec.coverage() on the merged tree); "GPU instructions" 82% -> 86%
  • Test count: 1500+ -> 1600+ (1,665 collected; tests/test_readme_sync.py expects 1600+)

Images carte-avancee.svg and traduction.svg are not regenerated: their counts (GDK, translation) do not move with these PRs.

Test results (merged tree, main checkout venv)

  • pytest -q: 1342 passed, 323 skipped (runtime not built locally), 0 failed. Before the count fix, only test_claimed_count_matches_suite failed (1500+ announced, 1600+ expected).
  • python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools: all checks passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6616448773 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/277). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T00:10:47Z. --- Integrates the contributor PRs reviewed as ready. Each contributor commit is kept with its author through `git merge --no-ff`; nothing is squashed or rebased. Merging this PR marks those PRs merged on GitHub, since their commits land in `main`. ## Included (in merge order) - #271 (lcg007xd-c): `v_bfe_i32` reads copies of the sign bit when the field runs past bit 31 - #250 (lcg007xd-c): half-precision compares (`v_cmp[x]_*_f16`, `v_cmp[x]_class_f16`) in the HLSL recompiler - #245 (lcg007xd-c): `v_floor/ceil/trunc/rndne_f16` in the RDNA 2 interpreter - #247 (lcg007xd-c): `v_fract_f16`, `v_frexp_mant_f16`, `v_frexp_exp_i16_f16` in the RDNA 2 interpreter - #246 (lcg007xd-c): `v_cvt_pkrtz_f16_f32` in the RDNA 2 interpreter - #251 (lcg007xd-c): `v_floor/ceil/trunc/rndne_f16` in the HLSL recompiler (its copy of #245 was deduplicated by git) - #241 (lcg007xd-c): `s_version`, `s_atc_probe`, `s_atc_probe_buffer` in the RDNA 2 interpreter and HLSL - #260 (Pedro Pandolfi): implement `v_rndne_f32` in integer HLSL to avoid the NVIDIA `Round_ne` folding bug - #235 (KainanP): apply VOP3 clamp on `v_add/sub/subrev_nc_u32` and the carry-out add/sub - #230 (KainanP): d16 typed buffer loads and stores in the RDNA 2 interpreter and HLSL - #232 (KainanP): 16-bit integer VALU (VOP3 and packed VOP3P) in the RDNA 2 interpreter and HLSL Dropped: none. ## Conflict resolution - README count lines and their translations (every RDNA 2 PR edits them): kept the `main` side during the merges, then fixed once in the final commit. - `PrototypeScarlett/emu/rdna2_exec_f16.py` (#246 vs #245/#247): both hunks kept. - `PrototypeScarlett/emu/rdna2_hlsl.py` and `rdna2_hlsl_wave64.py` (#232 vs #250): both dispatch branches (`COMPAREF16`, `rdna2_hlsl_int16`) and both helper sets kept. ## README counts (old -> new, same values in the 9 READMEs) - RDNA 2 coverage: 1,216 of 1,490 -> 1,285 of 1,490 (`rdna2_exec.coverage()` on the merged tree); "GPU instructions" 82% -> 86% - Test count: 1500+ -> 1600+ (1,665 collected; `tests/test_readme_sync.py` expects 1600+) Images `carte-avancee.svg` and `traduction.svg` are not regenerated: their counts (GDK, translation) do not move with these PRs. ## Test results (merged tree, main checkout venv) - `pytest -q`: 1342 passed, 323 skipped (runtime not built locally), 0 failed. Before the count fix, only `test_claimed_count_matches_suite` failed (1500+ announced, 1600+ expected). - `python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools`: all checks passed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
chatgpt-codex-connector[bot] commented 2026-11-26 00:10:58 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T00:10:58Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T00:13:11.837650Z f08baea PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7178485079 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/277#issuecomment-7178485079). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T00:10:58Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"f08baea86828609e8c4470dc81a153c05d284ef8","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-26T00:13:11.837650Z">2026-11-26T00:13:11.837650Z</relative-time> | `f08baea` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-26 00:13:09 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T00:13:09Z.

Review: COMMENTED


💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f08baea868

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:LooperSalty/AnyXboxX:review:6066802163 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/277#pullrequestreview-6066802163). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T00:13:09Z. **Review:** COMMENTED --- <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `f08baea868` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
chatgpt-codex-connector[bot] commented 2026-11-26 00:13:09 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T00:13:09Z.

Code review location: PrototypeScarlett/emu/rdna2_hlsl_graphics.py; line 14

@@ -5,13 +5,13 @@
 ces étages : une instruction DS lève Untranslatable, comme tout export non pris en charge.
 """
 from emu import (rdna2, rdna2_graphics as graphics, rdna2_hlsl_div, rdna2_hlsl_dot, rdna2_hlsl_f16, rdna2_hlsl_format,
-                 rdna2_hlsl_image, rdna2_hlsl_sad, rdna2_hlsl_wide)
+                 rdna2_hlsl_image, rdna2_hlsl_int16, rdna2_hlsl_sad, rdna2_hlsl_wide)
 from emu.rdna2_hlsl import body
 from emu.rdna2_hlsl_ops import HELPERS as ALU_HELPERS, Untranslatable
 
 HELPERS = "\n".join((ALU_HELPERS, rdna2_hlsl_wide.HELPERS, rdna2_hlsl_div.HELPERS, rdna2_hlsl_image.HELPERS,
                      rdna2_hlsl_format.HELPERS, rdna2_hlsl_dot.HELPERS,
-                     rdna2_hlsl_sad.HELPERS, rdna2_hlsl_f16.HELPERS))
+                     rdna2_hlsl_sad.HELPERS, rdna2_hlsl_f16.HELPERS, rdna2_hlsl_int16.HELPERS))

P2 Badge Include the f16 comparison helpers in graphics shaders

For vertex or pixel shaders containing v_cmp_class_f16 or v_cmpx_class_f16, the shared translation body now emits a call to ClassF16, but this helper bundle omits rdna2_hlsl_cmpf16.HELPERS. I reproduced both graphics translators returning HLSL containing the call without its definition, whereas the compute translator includes it. Python translation therefore succeeds, but subsequent runtime shader compilation fails. Include the comparison helpers here and add a graphics-stage parity test against the interpreter.

AGENTS.md reference: AGENTS.md:L53-L53

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:review-comment:4702412605 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/277#discussion_r4702412605). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T00:13:09Z. **Code review location:** `PrototypeScarlett/emu/rdna2_hlsl_graphics.py`; line 14 ~~~~diff @@ -5,13 +5,13 @@ ces étages : une instruction DS lève Untranslatable, comme tout export non pris en charge. """ from emu import (rdna2, rdna2_graphics as graphics, rdna2_hlsl_div, rdna2_hlsl_dot, rdna2_hlsl_f16, rdna2_hlsl_format, - rdna2_hlsl_image, rdna2_hlsl_sad, rdna2_hlsl_wide) + rdna2_hlsl_image, rdna2_hlsl_int16, rdna2_hlsl_sad, rdna2_hlsl_wide) from emu.rdna2_hlsl import body from emu.rdna2_hlsl_ops import HELPERS as ALU_HELPERS, Untranslatable HELPERS = "\n".join((ALU_HELPERS, rdna2_hlsl_wide.HELPERS, rdna2_hlsl_div.HELPERS, rdna2_hlsl_image.HELPERS, rdna2_hlsl_format.HELPERS, rdna2_hlsl_dot.HELPERS, - rdna2_hlsl_sad.HELPERS, rdna2_hlsl_f16.HELPERS)) + rdna2_hlsl_sad.HELPERS, rdna2_hlsl_f16.HELPERS, rdna2_hlsl_int16.HELPERS)) ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Include the f16 comparison helpers in graphics shaders** For vertex or pixel shaders containing `v_cmp_class_f16` or `v_cmpx_class_f16`, the shared translation body now emits a call to `ClassF16`, but this helper bundle omits `rdna2_hlsl_cmpf16.HELPERS`. I reproduced both graphics translators returning HLSL containing the call without its definition, whereas the compute translator includes it. Python translation therefore succeeds, but subsequent runtime shader compilation fails. Include the comparison helpers here and add a graphics-stage parity test against the interpreter. AGENTS.md reference: [AGENTS.md:L53-L53](https://github.com/LooperSalty/AnyXboxX/blob/f08baea86828609e8c4470dc81a153c05d284ef8/AGENTS.md#L53-L53) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
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
LooperSalty/AnyXboxX!277
No description provided.