[PR #1053] tests: GPU fixture cs_w32_min3_med3_16 for 16-bit min3/max3/med3 (OLD-9876) #1090

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1053
Author: @TanmaySatyam
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: test/old-9876-gpu-min3-med3-16


📝 Commits (1)

  • 537ecbd tests: GPU fixture cs_w32_min3_med3_16 for 16-bit min3/max3/med3

📊 Changes

4 files changed (+92 additions, -6 deletions)

View changed files

📝 docs/design.md (+1 -1)
📝 runtime/test/shaders/check.py (+6 -3)
➕ runtime/test/shaders/cs_w32_min3_med3_16.asm (+80 -0)
📝 scripts/run_gpu_tests.py (+5 -2)

📄 Description

Summary

Claims and carries OLD-9876 (Draft PR #144, old-pr/9876 authored by @ramon-victor, original authorship preserved):

  • Adds wave32 compute GPU fixture
    untime/test/shaders/cs_w32_min3_med3_16.asm covering _min3_f16, _max3_f16, _min3_i16, _max3_i16, _min3_u16, _max3_u16, _med3_i16, and _med3_u16 with op_sel half selection, unwritten destination-half preservation, NaN ignoring, -0.0 < +0.0 ordering, source
    eg/bs, and VOP3 clamp.
  • Adds ; regen_fixtures: wave32 metadata so ests/test_regen_fixtures.py passes cleanly.
  • Wires cs_w32_min3_med3_16 into
    untime/test/shaders/check.py, scripts/run_gpu_tests.py, and docs/design.md.

Verification

  • Live GPU validation (Windows 11, NVIDIA GeForce RTX 5070, LEONIDA_VK_VALIDATION=1):
    • python -I scripts/run_gpu_tests.py --build runtime/build --work --filter cs_w32_min3_med3_16 --require-pass
    • 1/1 translated, 1/1 pass spirv-val
    • PASS cs_w32_min3_med3_16 3405676544 1006681839 305430528 349816 2596044799 4294958832 1126301686 2147518309 (8/8 exact words,

🔄 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/1053 **Author:** [@TanmaySatyam](https://github.com/TanmaySatyam) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test/old-9876-gpu-min3-med3-16` --- ### 📝 Commits (1) - [`537ecbd`](https://github.com/ubiquitarianism/leonida/commit/537ecbdeae2f5806f9fdd767c7ae7c5c799ace99) tests: GPU fixture cs_w32_min3_med3_16 for 16-bit min3/max3/med3 ### 📊 Changes **4 files changed** (+92 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+1 -1) 📝 `runtime/test/shaders/check.py` (+6 -3) ➕ `runtime/test/shaders/cs_w32_min3_med3_16.asm` (+80 -0) 📝 `scripts/run_gpu_tests.py` (+5 -2) </details> ### 📄 Description ### Summary Claims and carries **OLD-9876** (Draft PR #144, old-pr/9876 authored by @ramon-victor, original authorship preserved): - Adds wave32 compute GPU fixture untime/test/shaders/cs_w32_min3_med3_16.asm covering _min3_f16, _max3_f16, _min3_i16, _max3_i16, _min3_u16, _max3_u16, _med3_i16, and _med3_u16 with op_sel half selection, unwritten destination-half preservation, NaN ignoring, -0.0 < +0.0 ordering, source eg/bs, and VOP3 clamp. - Adds ; regen_fixtures: wave32 metadata so ests/test_regen_fixtures.py passes cleanly. - Wires cs_w32_min3_med3_16 into untime/test/shaders/check.py, scripts/run_gpu_tests.py, and docs/design.md. ### Verification - **Live GPU validation (Windows 11, NVIDIA GeForce RTX 5070, LEONIDA_VK_VALIDATION=1):** - python -I scripts/run_gpu_tests.py --build runtime/build --work <scratch> --filter cs_w32_min3_med3_16 --require-pass - 1/1 translated, 1/1 pass spirv-val - PASS cs_w32_min3_med3_16 3405676544 1006681839 305430528 349816 2596044799 4294958832 1126301686 2147518309 (8/8 exact words, --- <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#1090
No description provided.