[PR #1476] Shader trig preop #1507

Open
opened 2026-11-26 20:21:28 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1476
Author: @vsking2000
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: shader-trig-preop


📝 Commits (2)

  • 74712d3 rdna2spirv: translate v_trig_preop_f64 for segments 0..2 (SHADER-TRIG-PREOP)
  • 78b87be rdna2spirv: v_trig_preop_f64 follow-up: LLVM's fold words as tests, evidence wording, cheap cases

📊 Changes

4 files changed (+511 additions, -1 deletions)

View changed files

📝 docs/design.md (+1 -0)
➕ tests/semantic/test_trig_preop_f64.py (+342 -0)
📝 tools/rdna2spirv.py (+167 -0)
📝 tools/shader_ir.py (+1 -1)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1476 **Author:** [@vsking2000](https://github.com/vsking2000) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `shader-trig-preop` --- ### 📝 Commits (2) - [`74712d3`](https://github.com/ubiquitarianism/leonida/commit/74712d37cb901ce5a7bde9c72fc1104793217d83) rdna2spirv: translate v_trig_preop_f64 for segments 0..2 (SHADER-TRIG-PREOP) - [`78b87be`](https://github.com/ubiquitarianism/leonida/commit/78b87beb930333046d33bf06f5fef2490ca40cf5) rdna2spirv: v_trig_preop_f64 follow-up: LLVM's fold words as tests, evidence wording, cheap cases ### 📊 Changes **4 files changed** (+511 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+1 -0) ➕ `tests/semantic/test_trig_preop_f64.py` (+342 -0) 📝 `tools/rdna2spirv.py` (+167 -0) 📝 `tools/shader_ir.py` (+1 -1) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1507
No description provided.