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

Manually merged
github merged 23 commits from gh-pr/277/head into gh-pr/277/base 2026-11-26 05:41:44 +00:00
Owner

@⁠LooperSalty on GitHub · 2026-11-26 00:10 UTC · original
LooperSalty:integration/prs-2026-11-26 → main · +2637 −115 · 45 files · 23 commits · merged 2026-11-26 00:15 UTC

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

**@⁠LooperSalty** on GitHub · 2026-11-26 00:10 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/277) `LooperSalty:integration/prs-2026-11-26` → `main` · +2637 −115 · 45 files · 23 commits · merged 2026-11-26 00:15 UTC 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
The 68 f16 compare encodings run in the interpreter (#244); the recompiler
refused them. New emu/rdna2_hlsl_cmpf16.py, used by the wave32 and wave64
VOPC and VOP3 paths:
- sources as the other f16 instructions (rdna2_hlsl_f16._operand): low
  half of a register, inline float as binary16, literal's low half; VOP3
  abs/neg on bit 15;
- the 16 predicates widen both halves with F16ToF32 (exact: an f16
  denormal is a normal f32) and reuse the f32 conditions, NaN tested
  apart; v_cmp_class_f16 reads the f16 bits (new ClassF16 helper), since
  widening would make a signalling NaN quiet and a denormal normal;
- refused like the interpreter: op_sel, clamp, omod, abs/neg on the class
  mask, SDWA/DPP (f16 compares are routed before the SDWA path).
GPU parity tests compare every mask with the interpreter in wave32 (all
68 encodings, partial EXEC), constants/modifiers, and wave64.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Three hints that write no register, refused until now:
- s_version (SOPK 1): "Do nothing. Argument is ignored by hardware" (ISA
  section 12.2, p. 106; section 4.1 "treated as S_NOP").
- s_atc_probe / s_atc_probe_buffer (SMEM 38-39): "Probe or prefetch an
  address into the SQC data cache" (section 12.6, p. 130). SDATA is the
  probe mode, an immediate, not a destination.

The interpreter runs them as no-ops (NO_OPERATION, CACHE_CONTROL) and
the HLSL recompiler emits nothing for them; rdna2_hlsl_memory now reads
the shared CACHE_CONTROL set instead of repeating it. README: 1,208 ->
1,211 of 1,490 in the 9 languages (still 81%).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The four f16 rounding ops (VOP1 91-94 and their VOP3 forms, 8 encodings)
raised Untranslated. They join rdna2_exec_f16.OPERATIONS: the integral
value of S0 (exact in binary16), sign kept as the f32 forms do (IEEE 754
roundToIntegral: trunc(-0.5) = -0), infinities unchanged, NaN -> 0x7E00;
v_rndne rounds ties to even. The existing f16 rules apply: low half
written and high half kept, op_sel, abs/neg on bit 15, clamp to [0, 1].
ISA: AMD RDNA 2, section 12.8 (p. 148). HLSL not changed: it still
refuses them (tested). README: 1,208 -> 1,216 of 1,490 (82%).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
VOP2 47 and its VOP3 form raised Untranslated. D[15:0] and D[31:16] are
S0 and S1 converted to binary16 toward zero, whatever the rounding mode
(ISA section 12.7, p. 135): the nearest value stepped back one ulp when it
lies farther from zero, so a finite value too large gives +-65504 and
never infinity; infinities stay, a NaN gives 0x7E00 (the f16 module's
rule). The sources are f32 words: abs/neg on bit 31, inline floats as
f32. VOP3 op_sel, clamp and omod are refused by name. HLSL not changed
(still refused, tested). README: 1,208 -> 1,210 of 1,490 (81%).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
VOP1 89, 90 and 95 and their VOP3 forms (6 encodings) raised
Untranslated. They follow the interpreter's f32 forms:
- fract = S0 + -floor(S0), at most 0x3BFF (largest f16 under 1.0, as
  v_fract_f32 bounds to 0x3F7FFFFF), NaN for +-inf and NaN, fract(-0) =
  +0;
- frexp splits S0 = m * 2^e with 0.5 <= |m| < 1; +-0, +-inf and NaN give
  S0 and exponent 0 (ISA pseudo-code); a denormal is normalised, as
  LLVM's AMDGPUInstCombineIntrinsic folds amdgcn_frexp_exp with APFloat.
The exponent is a 16-bit integer written to one half; VOP3 clamp on it is
refused by name. ISA: AMD RDNA 2, section 12.8 (p. 147-148). HLSL not
changed (still refused, tested). README: 1,208 -> 1,214 of 1,490 (81%).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fixes #227. On NVIDIA driver 621.xx (measured on RTX 4060 Laptop 621.14 and reported on RTX 5070 Ti 621.40), DXIL Round_ne(2.5) after a barrier is constant-folded to 3.0 (round half away from zero) instead of 2.0 (ties to even), and NaN payloads are replaced with 0x7FFFFFFF (while WARP leaves signalling NaNs unquieted). Computing RndneF32 in integer bit operations matches the reference interpreter bit for bit on NVIDIA, Intel UHD, and WARP.
The four f16 rounding ops run in the interpreter (#245); the recompiler
refused them. They join rdna2_hlsl_f16.TEMPLATES: the f16 half widened
with F16ToF32 (exact), the same HLSL functions as the f32 forms
(floor, ceil, trunc, round), then F32ToF16 (exact for an integer value,
sign of zero kept, NaN -> 0x7E00). The f16 VOP1/VOP3 rules of the module
apply (low/high half, op_sel, abs/neg on bit 15, clamp). A GPU test
compares VOP1, VOP3 op_sel/neg/abs/clamp and a literal with the
interpreter, byte for byte.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
VOP3 clamp on v_add_nc_u32, v_sub_nc_u32, v_subrev_nc_u32 and on the six
carry-out ops (v_add_co_u32, v_sub_co_u32, v_subrev_co_u32 and their
_co_ci_ forms) was silently ignored by the interpreter and the HLSL
translator, so a saturating add/sub wrapped instead (rule 3).

AMD "RDNA 2" ISA section 6.5 "ALU Clamp Bit Usage" (printed p. 48): for
integer operations clamp "clamps the result to the largest and smallest
representable value". So the _nc_u32 ops saturate D to [0, 0xFFFFFFFF]
and the carry-out ops saturate D to 0xFFFFFFFF on a carry or 0 on a
borrow. SDST keeps the real carry/borrow bit, which the pseudo-code of
sections 12.7 and 12.12 computes from the unbounded sum (our reading,
not measured). Cross-check: LLVM 20.1.8 CodeGen tests uaddsat.ll and
usubsat.ll select uaddsat/usubsat to v_add/sub_nc_u32_e64 with clamp on
GFX10 and to the carry-out v_add/sub_u32_e64 with clamp on GFX8.

HLSL picks the saturated value from the carry/borrow with integer
compares (no clamp() on a widened sum). The carry table, the saturated
templates and the refusal live in the new emu/rdna2_hlsl_clamp.py,
shared by wave32 and wave64, so rdna2_hlsl.py does not grow (rule 8).

Clamp on the other integer results (v_mad_u32_u24, v_mad_i32_i24,
v_mul_u32_u24, v_mad_u64_u32, v_cvt_u32_f32, ...) is not implemented:
it is now refused by name in both the interpreter and HLSL (wave32 and
wave64) instead of being ignored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- VOP3 16-bit ops: v_add/sub_nc_{u16,i16}, v_mul_lo_u16, v_lshlrev_b16,
  v_lshrrev_b16, v_ashrrev_i16, v_max/min_{u16,i16}, v_mad_{u16,i16},
  v_min3/max3/med3_{u16,i16}. op_sel[0-2] read the high half of a source,
  op_sel[3] writes D[31:16], the other half of D is kept; clamp saturates
  add/sub/mad to the type's range.
- v_mad_u32_u16 / v_mad_i32_i16: op_sel[0-1] pick the source halves, clamp
  saturates the 32-bit sum; op_sel[2]/op_sel[3] (32-bit S2 and D) refused.
- v_cvt_pk_u16_u32 / v_cvt_pk_i16_i32 (saturating packs) and
  v_add/sub_nc_i32 (clamp saturates signed).
- Packed VOP3P: v_pk_{add,sub,mad}_{u16,i16}, v_pk_mul_lo_u16,
  v_pk_{max,min}_{u16,i16}, v_pk_{lshlrev,lshrrev}_b16, v_pk_ashrrev_i16;
  op_sel / op_sel_hi pick each half, clamp saturates add/sub/mad and is a
  no-op on max/min.
- Constants are their 32-bit value split like a register (inline integers
  sign-extended, inline floats their float32 bits, a literal its whole
  dword).

Sources: AMD RDNA 2 ISA (November 2020) sections 12.10 and 12.12 (pseudocode,
"Supports saturation", op_sel[3] on v_mad_u16/i16 preserving the other
half), 13.3 tables 82 and 86 (OPSEL), 6.2.5 (opcodes usable with OPSEL) and
6.5 (integer clamp saturates to the representable range). Cross-checks from
LLVM 20.1.8: GCNSubtarget.cpp ("On gfx10, all 16-bit instructions preserve
the high bits"), the uaddsat/usubsat/saddsat/ssubsat CodeGen tests (GFX10
selects the saturating add/sub to these ops with clamp, v_sub_nc_i16 signed),
AMDGPUBaseInfo.cpp getInlineEncodingV216 and add.v2i16.ll (constants). The
two packs follow Mesa's pack_uint_2x16 / pack_sint_2x16 ("clamp is
applied"), which ACO emits as these opcodes; assumed, to be measured
(akimfomin/PortBridge#84), like a 32-bit literal read through op_sel on a
VOP3 16-bit op.

Refused by name: VOP3 abs/neg/omod and VOP3P neg_lo/neg_hi on these integer
ops; clamp on v_mul_lo_u16, v_pk_mul_lo_u16, the 16-bit shifts, VOP3
min/max, min3/max3/med3, the packs and the packed shifts; op_sel[2]/[3] on
v_mad_u32_u16 / v_mad_i32_i16; op_sel on the packs and on v_add/sub_nc_i32.

HLSL: integer-only expressions; the signed 16-bit saturating add/sub is
computed from sign bits because clamp(Sext16(a) + Sext16(b)) then a 16-bit
mask let the sign-extended high half reach the destination on an RTX 4060
Laptop GPU (WARP and Intel UHD were right).

The int16 helpers (AddSatI16, AddSatI32...) are part of the compute, wave64
and graphics (vertex/pixel) HLSL; a vertex shader test runs the helper-backed
ops on the GPU.

Interpreter coverage 1,208 -> 1,248 of 1,490 encodings (README 81% -> 84%),
test count 1400+ -> 1500+. New tests in tests/test_rdna2_exec_int16.py (hand-worked
expectations, refusals) and tests/test_rdna2_hlsl_int16.py (byte-for-byte
GPU parity in wave32 and wave64 under a partial EXEC).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The 18 encodings buffer_load/store_format_d16_{x,xy,xyz,xyzw,hi_x} and
tbuffer_load/store_format_d16_{x,xy,xyz,xyzw} now run in the reference
interpreter and translate to HLSL, on top of the 32-bit typed formats of #150.

- Packing (RDNA 2 is packed d16): component i goes to VGPR VDATA + i/2, low
  half first; _d16_x and the third component of _d16_xyz write bits 15-0,
  _d16_hi_x bits 31-16, and the other half is kept. ISA section 8.1.2 (p. 56),
  8.1.4 (p. 59), 8.1.6 (p. 64), 12.14 (p. 211, 215: "D0[15:0] = MEM[ADDR]",
  "D0[31:16] = MEM[ADDR]"); AMD RDNA 2 XML ("low/high 16 bits of a 32-bit
  vector register"); LLVM 20.1.8 FeatureUnpackedD16VMem only on GFX8.
- Loads (section 8.1.4: "data returned from the texture unit is converted to
  16 bits"): integer formats of 16 bits or less keep the low 16 bits. UNORM
  and SNORM round the exact quotient c / (2^n - 1) once to float16, nearest
  even, subnormals kept (16_UNORM 0xFFAF -> 0x3BFD, 0xFFEF -> 0x3BFF,
  16_SNORM 0x7FF7 -> 0x3BFF, 0x8009 -> 0xBBFF, where narrowing the float32
  would be one ulp above). 32-bit float formats narrow toward zero, finite
  values past the range giving 65504, a NaN keeping its sign and top 10
  payload bits (payload 1 if those are zero). No public source covers
  either rule (the ISA only says the data "is converted to 16 bits"), so
  both are assumed and asked in akimfomin/PortBridge#85. SCALED values go float32 ->
  float16 to nearest even, overflow to infinity (assumed). 32-bit integer
  formats are refused by name (truncation or clamping is not documented).
- Stores widen each half to the value the non-d16 store takes (UINT
  zero-extended, SINT sign-extended, float16 -> float32 exact, 16-bit FLOAT
  copied), then reuse #150's saturation. UNORM/SNORM/SCALED stores stay
  refused.
- HLSL uses integer operations only for the float16 conversions, the exact
  quotient by long division (no double: Intel UHD has no FP64).

Interpreter coverage 1,208 -> 1,226 of 1,490 encodings (README 81% -> 82%);
test count still 1400+. New tests in tests/test_rdna2_exec_format_d16.py
(hand-computed values, an exact-fraction oracle for every 2- to 16-bit
normalized field, Python's binary16 rounding and a toward-zero oracle for
the float narrowing) and tests/test_rdna2_hlsl_format_d16.py (byte-for-byte
GPU parity in wave32 and wave64). The coverage test of
tests/test_rdna2_exec_format.py now requires the 18 d16 forms too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The interpreter and the HLSL BfeI32 helper shifted S0 as unsigned before
masking and sign-extending the field. With offset + width > 32 the bits
above bit 31 were zeros instead of copies of the sign bit: 0x939108F5,
offset 16, width 31 gave 0x00009391 instead of 0xFFFF9391. The ISA
pseudo-code shifts the signed S0 ("D.i = (S0.i >> S1.u[4:0]) & ...",
section 12.12, p. 169), as s_bfe_i32 already does in this interpreter
(section 12.1, p. 105). Both now shift arithmetically; fields inside S0
(offset + width <= 32) are unchanged.

Found by differential testing against LLVM's constant folding of
llvm.amdgcn.sbfe: 23 of 256 random triples differed, 0 now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Set the RDNA 2 coverage (1,216 -> 1,285 of 1,490 encodings, GPU
instructions 82% -> 86%) and the test count (1500+ -> 1600+, 1665
collected) in README.md and the 8 translations, as checked by
tests/test_readme_sync.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:41:41 +00:00
github manually merged commit f08baea868 into gh-pr/277/base 2026-11-26 05:41:44 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 00:10 UTC · original · edited 2026-11-26 00:13 UTC

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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 00:10 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/277#issuecomment-7178485079) · edited 2026-11-26 00:13 UTC <!-- 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>
@ -12,3 +12,3 @@
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))
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 00:13 UTC · original

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 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 00:13 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/277#discussion_r4702412605) **<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 -->
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 00:13 UTC · original · reviewed

💡 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".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 00:13 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/277#pullrequestreview-6066802163) · **reviewed** <!-- 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>
This discussion has been locked. Commenting is limited to contributors.
No description provided.