OLD-5237: rdna2spirv: the PS FRONT_FACE VGPR holds 0xffffffff / 0 (SHADER-892) #1415

Merged
Tortoche merged 2 commits from upstream-pr/1415 into main 2026-12-01 15:15:33 +00:00
Tortoche commented 2026-11-24 23:43:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tortoche on 2026-11-24T23:43:12Z.


Item ID: OLD-5237 (SHADER-892)
Carried forward from Draft #40 (old-pr/5237 by rafaelpssz), rebased onto main (58be9cdf8) with original commit authorship preserved.
Claimed in #14: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143844913

AI-assisted: yes

Summary

  • tools/rdna2spirv.py: store OpSelect %uint %ff 0xffffffff 0 into the pixel shader FRONT_FACE system VGPR (SPI_BARYC_CNTL.FRONT_FACE_ALL_BITS = 1), matching how all 345 corpus shaders that read it test it against integer 0 (v_cmp_ne_u32 / v_cmp_eq_u32).
  • tests/test_ps_front_face.py: hand-written synthetic pixel shader test verifying OpSelect %uint %ff 0xffffffff 0 into v4 and absence of the old float form (%ffm1).
  • docs/design.md: updated the PS system inputs contract row to document 0xffffffff / 0 and the corpus count.

Tests Executed (Linux, CPU/translator/runtime-build suites; no local GPU or game-data run performed)

  • python -I scripts/run_semantic_tests.py tests/semantic: 470 files, 6168 tests, 0 files failed (exit 0; 4060 s with 4 jobs)
  • python -I tests/test_ps_front_face.py: 1/1 passed (Ran 1 test in 0.022s, OK)
  • python -I tests/test_shader_meta.py: 28/28 passed (Ran 28 tests in 0.348s, OK)
  • python -I tests/test_docs_links.py: 16/16 passed (Ran 16 tests in 0.981s, OK)
  • python -I tests/test_design_contract_rows.py: 5/5 passed (Ran 5 tests in 0.025s, OK)
  • python -I tests/test_text_write_line_endings.py: 3/3 passed (Ran 3 tests in 257.636s, OK)
  • node --test tests/test_viewer_streaming.cjs: 57/57 passed (tests 57, pass 57, fail 0)
  • python -I scripts/check_no_game_data.py tools/rdna2spirv.py tests/test_ps_front_face.py docs/design.md: passed (exit 0, zero game data)
  • python -m compileall -q make_game.py tools tests: passed (exit 0)
  • ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure: 68/71 passed, 2 skipped (shader_library_corpus, vk_sync_validation), 1 timeout (36 - xdxr_build_check at 1502.94s under CPU contention); re-run isolated ctest --test-dir runtime/build -C RelWithDebInfo -R '^xdxr_build_check$' --output-on-failure: 2/2 passed (xdxr_build 3.48s, xdxr_build_check 617.85s) -> 69 passed, 2 skipped, 0 failed.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5482262063 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415). Originally posted by [Tortoche](https://github.com/Tortoche) on 2026-11-24T23:43:12Z. --- Item ID: `OLD-5237` (`SHADER-892`) Carried forward from Draft #40 (`old-pr/5237` by `rafaelpssz`), rebased onto `main` (`58be9cdf8`) with original commit authorship preserved. Claimed in #14: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143844913 AI-assisted: yes ### Summary - `tools/rdna2spirv.py`: store `OpSelect %uint %ff 0xffffffff 0` into the pixel shader `FRONT_FACE` system VGPR (`SPI_BARYC_CNTL.FRONT_FACE_ALL_BITS = 1`), matching how all 345 corpus shaders that read it test it against integer 0 (`v_cmp_ne_u32` / `v_cmp_eq_u32`). - `tests/test_ps_front_face.py`: hand-written synthetic pixel shader test verifying `OpSelect %uint %ff 0xffffffff 0` into `v4` and absence of the old float form (`%ffm1`). - `docs/design.md`: updated the `PS system inputs` contract row to document `0xffffffff` / `0` and the corpus count. ### Tests Executed (Linux, CPU/translator/runtime-build suites; no local GPU or game-data run performed) - `python -I scripts/run_semantic_tests.py tests/semantic`: **470 files, 6168 tests, 0 files failed** (exit 0; 4060 s with 4 jobs) - `python -I tests/test_ps_front_face.py`: **1/1 passed** (`Ran 1 test in 0.022s`, `OK`) - `python -I tests/test_shader_meta.py`: **28/28 passed** (`Ran 28 tests in 0.348s`, `OK`) - `python -I tests/test_docs_links.py`: **16/16 passed** (`Ran 16 tests in 0.981s`, `OK`) - `python -I tests/test_design_contract_rows.py`: **5/5 passed** (`Ran 5 tests in 0.025s`, `OK`) - `python -I tests/test_text_write_line_endings.py`: **3/3 passed** (`Ran 3 tests in 257.636s`, `OK`) - `node --test tests/test_viewer_streaming.cjs`: **57/57 passed** (`tests 57, pass 57, fail 0`) - `python -I scripts/check_no_game_data.py tools/rdna2spirv.py tests/test_ps_front_face.py docs/design.md`: **passed** (exit 0, zero game data) - `python -m compileall -q make_game.py tools tests`: **passed** (exit 0) - `ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure`: **68/71 passed, 2 skipped** (`shader_library_corpus`, `vk_sync_validation`), 1 timeout (`36 - xdxr_build_check` at 1502.94s under CPU contention); re-run isolated `ctest --test-dir runtime/build -C RelWithDebInfo -R '^xdxr_build_check$' --output-on-failure`: **2/2 passed** (`xdxr_build` 3.48s, `xdxr_build_check` 617.85s) -> **69 passed, 2 skipped, 0 failed**.
GeorgiyDemo commented 2026-11-24 23:48:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GeorgiyDemo on 2026-11-24T23:48:54Z.


Tested 739d6058e on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against main 364ab4eab (translator-only PR; binaries from the build at 66d4f5aa3, and no C++ in runtime/test used by these fixtures changed in between):

  • python3 -I tests/test_ps_front_face.py: 1/1 OK at this head. The same file copied onto main's tree fails: AssertionError: unexpectedly None : FRONT_FACE is not stored as a uint select — it does distinguish the two revisions.
  • GPU, MoltenVK 1.4.2: --filter ps_bary 1/1 PASS (4096/4096 pixels match); --filter ps_texture_sample 2/2 PASS (ps_texture_sample OK, ps_texture_sample_d16 4096/4096 exact). ps_ij_computed SKIP — computed I/J pairs need PerVertexKHR inputs and neither --bary-fallback nor --f16-interp-fallback was enabled.
  • The same ps_bary run with main's tools/rdna2spirv.py in the same tree is also 4096/4096 PASS, so this fixture does not distinguish the two revisions here; the new unit test is the only local evidence of the change.

AI-assisted; synthetic fixtures only, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147824386 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1415#issuecomment-7147824386). Originally posted by [GeorgiyDemo](https://github.com/GeorgiyDemo) on 2026-11-24T23:48:54Z. --- Tested `739d6058e` on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against `main` `364ab4eab` (translator-only PR; binaries from the build at `66d4f5aa3`, and no C++ in `runtime/test` used by these fixtures changed in between): - `python3 -I tests/test_ps_front_face.py`: **1/1 OK** at this head. The same file copied onto `main`'s tree fails: `AssertionError: unexpectedly None : FRONT_FACE is not stored as a uint select` — it does distinguish the two revisions. - GPU, **MoltenVK 1.4.2**: `--filter ps_bary` **1/1 PASS** (4096/4096 pixels match); `--filter ps_texture_sample` **2/2 PASS** (`ps_texture_sample` OK, `ps_texture_sample_d16` 4096/4096 exact). `ps_ij_computed` SKIP — computed I/J pairs need `PerVertexKHR` inputs and neither `--bary-fallback` nor `--f16-interp-fallback` was enabled. - The same `ps_bary` run with `main`'s `tools/rdna2spirv.py` in the same tree is also 4096/4096 PASS, so this fixture does **not** distinguish the two revisions here; the new unit test is the only local evidence of the change. AI-assisted; synthetic fixtures only, no game data.
zmasi commented 2026-11-28 13:01:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T13:01:12Z.


#1415 | head caa7d811253ee7cb276633cea87a0d56bda078b0 (merged cleanly onto main d48a957bb9988afce424552a3c0c8d01ef12320f) | Windows 11 (10.0.26200), CPython 3.12.10, spirv-val (1.4.363.1), NVIDIA GeForce RTX 3090 (Vulkan 1.4.341, driver 610.88, subgroup 32..32, LEONIDA_VK_VALIDATION=1)

  • Red on main (d48a957bb9988afce424552a3c0c8d01ef12320f):
    • tests/test_ps_front_face.py: FAILED (failures=1) (FRONT_FACE is not stored as a uint select).
    • Live RTX 3090 vk_harness (LEONIDA_VK_VALIDATION=1) drawing both front-facing (FrontFacing = true) and back-facing (FrontFacing = false) fullscreen triangles through ps_front_face (v_cmp_ne_u32_e32 vcc_lo, 0, v4; v_cndmask_b32_e64 v0, 0, 1.0, vcc_lo): back-facing draw erroneously outputs 1.0 (0x3f800000) on all 4096/4096 pixels because -1.0 (0xbf800000) compares non-zero.
  • Green on PR + main:
    • python -I tests/test_ps_front_face.py -v: pass (OK).
    • Live RTX 3090 vk_harness (LEONIDA_VK_VALIDATION=1, spirv-val clean) exporting (v0, v0, v4, v4): front-facing draw outputs (0x3f800000, 0x3f800000, 0xffffffff, 0xffffffff) (4096/4096 pixels exact) and back-facing draw outputs (0x0, 0x0, 0x0, 0x0) (4096/4096 pixels exact, 0 Khronos validation errors).
    • scripts/check_no_game_data.py, test_docs_encoding.py, and test_text_write_line_endings.py: pass (0 CRLF).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7239630725 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415#issuecomment-7239630725). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T13:01:12Z. --- #1415 | head `caa7d811253ee7cb276633cea87a0d56bda078b0` (merged cleanly onto `main` `d48a957bb9988afce424552a3c0c8d01ef12320f`) | Windows 11 (`10.0.26200`), CPython `3.12.10`, `spirv-val` (`1.4.363.1`), NVIDIA GeForce RTX 3090 (Vulkan `1.4.341`, driver `610.88`, `subgroup 32..32`, `LEONIDA_VK_VALIDATION=1`) - **Red on `main` (`d48a957bb9988afce424552a3c0c8d01ef12320f`)**: - `tests/test_ps_front_face.py`: `FAILED (failures=1)` (`FRONT_FACE is not stored as a uint select`). - Live RTX 3090 `vk_harness` (`LEONIDA_VK_VALIDATION=1`) drawing both front-facing (`FrontFacing = true`) and back-facing (`FrontFacing = false`) fullscreen triangles through `ps_front_face` (`v_cmp_ne_u32_e32 vcc_lo, 0, v4; v_cndmask_b32_e64 v0, 0, 1.0, vcc_lo`): back-facing draw erroneously outputs `1.0` (`0x3f800000`) on all `4096/4096` pixels because `-1.0` (`0xbf800000`) compares non-zero. - **Green on `PR + main`**: - `python -I tests/test_ps_front_face.py -v`: pass (`OK`). - Live RTX 3090 `vk_harness` (`LEONIDA_VK_VALIDATION=1`, `spirv-val` clean) exporting `(v0, v0, v4, v4)`: front-facing draw outputs `(0x3f800000, 0x3f800000, 0xffffffff, 0xffffffff)` (`4096/4096` pixels exact) and back-facing draw outputs `(0x0, 0x0, 0x0, 0x0)` (`4096/4096` pixels exact, `0` Khronos validation errors). - `scripts/check_no_game_data.py`, `test_docs_encoding.py`, and `test_text_write_line_endings.py`: pass (`0` CRLF). AI-assisted.
TheGeogeo commented 2026-11-29 00:30:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T00:30:27Z.


Tested caa7d8112 merged (no commit) with main 829530dbd: Python 3.12.4, Windows 11 10.0.26300, CPU only, with LLVM_MC (conda-forge llvm-tools) and SPIRV-Tools from the Vulkan SDK 1.4.363.1. check_no_game_data.py is clean.

  • Green: tests/test_ps_front_face.py passes.
  • Red: with tools/rdna2spirv.py back to main, it fails: FRONT_FACE is not stored as a uint select.
  • No regression in the translator: the full semantic suite (scripts/run_semantic_tests.py tests/semantic -j 4, 522 files, 6484 tests) fails only test_valu_cvt_f16_int16_mods, both on the merge and on plain main.

No blocker from my side.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248159762 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415#issuecomment-7248159762). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T00:30:27Z. --- Tested `caa7d8112` merged (no commit) with `main` `829530dbd`: Python 3.12.4, Windows 11 10.0.26300, CPU only, with `LLVM_MC` (conda-forge llvm-tools) and SPIRV-Tools from the Vulkan SDK 1.4.363.1. `check_no_game_data.py` is clean. - Green: `tests/test_ps_front_face.py` passes. - Red: with `tools/rdna2spirv.py` back to `main`, it fails: `FRONT_FACE is not stored as a uint select`. - No regression in the translator: the full semantic suite (`scripts/run_semantic_tests.py tests/semantic -j 4`, 522 files, 6484 tests) fails only `test_valu_cvt_f16_int16_mods`, both on the merge and on plain `main`. No blocker from my side. AI-assisted (Claude Code).
TheGeogeo commented 2026-11-29 11:52:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T11:52:03Z.


Tested green here earlier on this same head (see my comment above). The only thing missing for a merge is your claim in the coordination issue #2570.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7255403958 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415#issuecomment-7255403958). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T11:52:03Z. --- Tested green here earlier on this same head (see my comment above). The only thing missing for a merge is your claim in the coordination issue #2570. AI-assisted (Claude Code).
TheGeogeo commented 2026-11-29 14:18:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:18:52Z.


Ready for testing: merges cleanly with main 3535eb5c4. Not in main yet: git cherry finds 2 commit(s) not there, and 1 of the 39 lines it adds are already present. No duplicate found: its claim OLD-5237 appears in no other open pull request and in no main commit.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257206273 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415#issuecomment-7257206273). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T14:18:52Z. --- Ready for testing: merges cleanly with `main` `3535eb5c4`. Not in `main` yet: `git cherry` finds 2 commit(s) not there, and 1 of the 39 lines it adds are already present. No duplicate found: its claim `OLD-5237` appears in no other open pull request and in no `main` commit. AI-assisted (Claude Code).
merzleckeier commented 2026-11-29 14:26:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T14:26:06Z.


Independent GPU check on caa7d8112 integrated with ddfe24fba. The baseline uses the same Vulkan harness and input with only tools/rdna2spirv.py restored from ddfe24fba.

I rendered a 64×64 fullscreen triangle in both windings. Two hand-written PS inputs consume SV_IsFrontFace by itself (v2) and after SV_Position.xy (v4). The shaders export the results of three integer comparisons as RGB: face == 0xffffffff, face == 0, and face != 0. A GLSL fragment shader using gl_FrontFacing supplies the reference for each winding.

Native Linux Vulkan Baseline mismatches PR mismatches
AMD Raphael iGPU, RADV Mesa 26.3.1-arch3.5 16,384 / 16,384 0 / 16,384
RTX 4070 SUPER, NVIDIA 620.73.04 16,384 / 16,384 0 / 16,384

The baseline produced RGBA (0, 0, 1, 1) on both windings. The PR matched the front reference (1, 0, 1, 1) and the back reference (0, 1, 0, 1) at every pixel for both input layouts. All four translated fragments passed spirv-val --target-env vulkan1.3, and the draw logs showed no Vulkan validation errors. test_ps_front_face.py failed with the baseline translator and passed with the PR. test_shader_meta.py passed 30/30 on the integration.

AI-assisted test, run offline with synthetic inputs.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257300273 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415#issuecomment-7257300273). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T14:26:06Z. --- Independent GPU check on `caa7d8112` integrated with `ddfe24fba`. The baseline uses the same Vulkan harness and input with only `tools/rdna2spirv.py` restored from `ddfe24fba`. I rendered a 64×64 fullscreen triangle in both windings. Two hand-written PS inputs consume `SV_IsFrontFace` by itself (`v2`) and after `SV_Position.xy` (`v4`). The shaders export the results of three integer comparisons as RGB: `face == 0xffffffff`, `face == 0`, and `face != 0`. A GLSL fragment shader using `gl_FrontFacing` supplies the reference for each winding. | Native Linux Vulkan | Baseline mismatches | PR mismatches | | --- | ---: | ---: | | AMD Raphael iGPU, RADV Mesa 26.3.1-arch3.5 | 16,384 / 16,384 | 0 / 16,384 | | RTX 4070 SUPER, NVIDIA 620.73.04 | 16,384 / 16,384 | 0 / 16,384 | The baseline produced RGBA `(0, 0, 1, 1)` on both windings. The PR matched the front reference `(1, 0, 1, 1)` and the back reference `(0, 1, 0, 1)` at every pixel for both input layouts. All four translated fragments passed `spirv-val --target-env vulkan1.3`, and the draw logs showed no Vulkan validation errors. `test_ps_front_face.py` failed with the baseline translator and passed with the PR. `test_shader_meta.py` passed 30/30 on the integration. AI-assisted test, run offline with synthetic inputs.
enlight3d commented 2026-11-29 15:52:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T15:52:06Z.


RUN report for #1415 (OLD-5237 / SHADER-892, rdna2spirv PS FRONT_FACE)

Heads: PR head caa7d8112 (base 604ddff0b); origin/main c22a0a732, merged locally with git merge --no-ff (clean, 3 files).

Kind: Python translator change plus a new test and a docs row (tools/rdna2spirv.py, tests/test_ps_front_face.py, docs/design.md).

Commands (one process per file): python -I -B tests/<file> for test_ps_front_face.py, test_shader_meta.py, test_docs_links.py, test_design_contract_rows.py, test_text_write_line_endings.py; on the merged tree also python -I scripts/run_semantic_tests.py tests/semantic -j 8.

Results:

  • RED (tools/rdna2spirv.py and docs/design.md reverted to the PR base, new test kept; behavioural, no new API): test_ps_front_face.py FAILED (1 failure: FRONT_FACE is not stored as a uint select). test_design_contract_rows.py stays OK with the old docs row.
  • GREEN at PR head: test_ps_front_face.py 1 OK, test_shader_meta.py 28 OK, test_docs_links.py 16 OK, test_design_contract_rows.py 5 OK, test_text_write_line_endings.py 3 OK.
  • GREEN merged into origin/main: the same five files pass (1, 30, 18, 5, 3 tests OK). Semantic suite on the merged tree: 529 files, 6524 tests, 2 files failed:
    • test_interp_computed_ij_fallback (2 failures): pre-existing, it fails the same way (exit 1, 3 of 3 runs) on plain main c22a0a732.
    • test_salu_orn2_saveexec_b64: the Python process crashed under load (exit code 0xC0000409 in spirv_mini_interp.py, a CPython crash, not a test assertion); rerun alone it passes 3 of 3 on the merged tree and on plain main. Treated as a machine flake, not caused by the PR.
  • The semantic suite was not run separately at the PR head (only on the merged tree).

Machine: Windows 11 Pro x64, RTX 3090 24 GB, NVIDIA 621.40, Python 3.13.12 (python -I).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258430844 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415#issuecomment-7258430844). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T15:52:06Z. --- RUN report for #1415 (OLD-5237 / SHADER-892, rdna2spirv PS FRONT_FACE) Heads: PR head `caa7d8112` (base `604ddff0b`); origin/main `c22a0a732`, merged locally with `git merge --no-ff` (clean, 3 files). Kind: Python translator change plus a new test and a docs row (`tools/rdna2spirv.py`, `tests/test_ps_front_face.py`, `docs/design.md`). Commands (one process per file): `python -I -B tests/<file>` for `test_ps_front_face.py`, `test_shader_meta.py`, `test_docs_links.py`, `test_design_contract_rows.py`, `test_text_write_line_endings.py`; on the merged tree also `python -I scripts/run_semantic_tests.py tests/semantic -j 8`. Results: - RED (`tools/rdna2spirv.py` and `docs/design.md` reverted to the PR base, new test kept; behavioural, no new API): `test_ps_front_face.py` FAILED (1 failure: `FRONT_FACE is not stored as a uint select`). `test_design_contract_rows.py` stays OK with the old docs row. - GREEN at PR head: `test_ps_front_face.py` 1 OK, `test_shader_meta.py` 28 OK, `test_docs_links.py` 16 OK, `test_design_contract_rows.py` 5 OK, `test_text_write_line_endings.py` 3 OK. - GREEN merged into origin/main: the same five files pass (1, 30, 18, 5, 3 tests OK). Semantic suite on the merged tree: 529 files, 6524 tests, 2 files failed: - `test_interp_computed_ij_fallback` (2 failures): pre-existing, it fails the same way (exit 1, 3 of 3 runs) on plain main `c22a0a732`. - `test_salu_orn2_saveexec_b64`: the Python process crashed under load (exit code 0xC0000409 in `spirv_mini_interp.py`, a CPython crash, not a test assertion); rerun alone it passes 3 of 3 on the merged tree and on plain main. Treated as a machine flake, not caused by the PR. - The semantic suite was not run separately at the PR head (only on the merged tree). Machine: Windows 11 Pro x64, RTX 3090 24 GB, NVIDIA 621.40, Python 3.13.12 (`python -I`).
MoonEyes commented 2026-11-29 19:18:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:18:43Z.


Tested caa7d8112 merged (no commit) with main 7c330c76d: Python 3.12, Windows 11 10.0.26300, CPU only. Ran the PR's tests plus every test file that imports the changed tools, with the PR and with its tools back to main.

  • Red: tests/test_ps_front_face.py FAILED (failures=1) with tools/ back to main; green with the PR (1 OK).
  • The 53 other test files that import the translator give the same results with and without the PR. test_mesh_serial_waves.py (6 failures) and test_rdna2_decode.py (1 error) fail on main too.
  • This adds a translator rule: per AGENTS.md it also needs its .asm fixture in tests/semantic/ and a row in the contract table of docs/design.md. Please check those are in before merge.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7261178682 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415#issuecomment-7261178682). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T19:18:43Z. --- Tested `caa7d8112` merged (no commit) with `main` `7c330c76d`: Python 3.12, Windows 11 10.0.26300, CPU only. Ran the PR's tests plus every test file that imports the changed tools, with the PR and with its tools back to `main`. - Red: `tests/test_ps_front_face.py` `FAILED (failures=1)` with `tools/` back to `main`; green with the PR (1 OK). - The 53 other test files that import the translator give the same results with and without the PR. `test_mesh_serial_waves.py` (6 failures) and `test_rdna2_decode.py` (1 error) fail on `main` too. - This adds a translator rule: per AGENTS.md it also needs its `.asm` fixture in `tests/semantic/` and a row in the contract table of `docs/design.md`. Please check those are in before merge. AI-assisted (Claude Code).
aslan2142 commented 2026-12-01 11:41:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:41:16Z.

Review: APPROVED


Reviewed the diff against main: tools/rdna2spirv.py:16459-16465 cleanly switches PS FRONT_FACE from ±1.0 to 0xFFFFFFFF/0, matching all 345 corpus shaders that test it as an integer against 0, with tests/test_ps_front_face.py and the docs/design.md contract table updated. Clean-room verified. Approving; please merge/rebase current main so CI runs green before merge.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130509724 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1415#pullrequestreview-6130509724). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:41:16Z. **Review:** APPROVED --- Reviewed the diff against `main`: `tools/rdna2spirv.py:16459-16465` cleanly switches PS `FRONT_FACE` from `±1.0` to `0xFFFFFFFF`/`0`, matching all 345 corpus shaders that test it as an integer against 0, with `tests/test_ps_front_face.py` and the `docs/design.md` contract table updated. Clean-room verified. Approving; please merge/rebase current `main` so CI runs green before merge. *(AI-assisted review.)*
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
ProjectLeonida/mandy!1415
No description provided.