Shader trig preop #1476

Closed
leonida/mandy
vsking2000 wants to merge 0 commits from shader-trig-preop into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

vsking2000 commented 2026-11-25 01:12:35 +00:00

Claimed in the coordination issue as:

Depends on:

Fixes:

What and why

Tested

GPUs tested:

AI-assisted:

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
Claimed in the coordination issue as: <!-- the item ID from the open "Coordinating who works on what" issue, for example TEST-17, or a link to your claim --> Depends on: <!-- #N for every pull request this one builds on or conflicts with (the coordination issue's Commands section, AGENTS.md); delete the line if it builds on none and conflicts with none --> Fixes: <!-- #N for each issue this closes (GitHub closes it on merge); delete the line if it closes none --> ### What and why <!-- What this changes and the problem it solves. --> ### Tested <!-- What you ran and on which GPU and driver (CONTRIBUTING.md). For the shader translator: how many shaders translate and pass spirv-val, before and after. --> GPUs tested: <!-- vendor, model, driver and OS of each GPU the GPU tests ran on, or n/a --> AI-assisted: <!-- yes or no (AGENTS.md asks a coding agent to say so) --> ### Checklist - [ ] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [ ] One topic; follow-up work goes in a new pull request. - [ ] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
GeorgiyDemo commented 2026-11-25 02:20:42 +00:00

Tested 78b87beb9 on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against main 3ff2a2adc (translator-only PR; binaries from the build at 66d4f5aa3):

  • python3 -m unittest test_trig_preop_f64 (from tests/semantic): OK at this head. The same file on main fails 4 + 35 errors.
  • GPU: --filter ps_f64 SKIPs on both MoltenVK 1.4.2 and KosmicKrisp (Mesa 26.3.1): ps_f64_mods and ps_f64_round report "uses Float64 and the device has no shaderFloat64". Apple GPUs cannot run f64 shaders, so the GPU side of this change is untestable on this machine.
  • Not run: GPU execution of the new trig-preop form; no .asm fixture for it, and no f64 device — the semantic suite is the evidence.

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

Tested `78b87beb9` on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against `main` `3ff2a2adc` (translator-only PR; binaries from the build at `66d4f5aa3`): - `python3 -m unittest test_trig_preop_f64` (from `tests/semantic`): **OK** at this head. The same file on `main` fails **4 + 35 errors**. - GPU: `--filter ps_f64` **SKIPs on both MoltenVK 1.4.2 and KosmicKrisp** (Mesa 26.3.1): `ps_f64_mods` and `ps_f64_round` report "uses Float64 and the device has no shaderFloat64". Apple GPUs cannot run f64 shaders, so the GPU side of this change is untestable on this machine. - Not run: GPU execution of the new trig-preop form; no `.asm` fixture for it, and no f64 device — the semantic suite is the evidence. AI-assisted; synthetic fixtures only, no game data.
MoonEyes commented 2026-11-27 22:42:53 +00:00

Hi @vsking2000, thanks for this pull request.

CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post claiming: <ID> there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one.

The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time.

Could you post the claim in #1608 and put its ID (or a link to it) on the pull request's "Claimed in the coordination issue as:" line? If you already claimed it in another form, a link to your comment is enough.

AI-assisted (Claude Code, Claude Opus 5.5).

Hi @vsking2000, thanks for this pull request. CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post `claiming: <ID>` there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one. The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time. Could you post the claim in #1608 and put its ID (or a link to it) on the pull request's "Claimed in the coordination issue as:" line? If you already claimed it in another form, a link to your comment is enough. AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-28 18:01:54 +00:00

Hi @vsking2000, thanks for this pull request. It currently conflicts with main (conflicting file(s): tools/rdna2spirv.py), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

Hi @vsking2000, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `tools/rdna2spirv.py`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 reviewed 2026-12-01 11:47:01 +00:00
aslan2142 left a comment
No description provided.
This PR cannot merge in its current state: - **Merge conflict** with `main` in `tools/rdna2spirv.py`. - **No CI run** on current head `78b87be`. - **Unfilled PR description**: the body is still the raw PR template without summary, test results, or coordination-issue claim. Please rebase onto current `main`, fill out the PR description (including the coordination claim), and obtain a green CI run. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 16:36:24 +00:00

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.
Sign in to join this conversation.
No description provided.