[PR #2160] [MERGED] test_image_load_typed: model tagged descriptor hits #2164

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2160
Author: @whoalin1
Created: 11/26/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142

Base: main ← Head: image-load-typed-desc-model


📝 Commits (1)

  • a64c4c1 test_image_load_typed: model tagged descriptor hits

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 tests/test_image_load_typed.py (+5 -0)

📄 Description

Summary

tests/test_image_load_typed.py went red after #2098 because the tagged descriptor probe now returns (index, kind) as %desc_hit, while the test's small branch evaluator still modelled %desc_lookup_fn as returning the bare integer index. Extracting component 1 therefore indexed an int.

This updates only the test model: a tagged hit is a composite of the supplied index and a sampled-only kind word (sampled-dimension bits set, no storage-array bits); a miss remains index zero. No translator or runtime behavior changes.

Verification

Under the machine lock:

  • python -m compileall -q tests/test_image_load_typed.py tools/rdna2spirv.py — pass
  • unmodified origin/main copy of tests/test_image_load_typed.py — 28 run, 7 errors (TypeError: 'int' object is not subscriptable)
  • patched python -I tests/test_image_load_typed.py — 28 run, OK

No game data or GPU required.

AI-assisted (Devin).


🔄 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/2160 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/26/2026 **Status:** ✅ Merged **Merged:** 11/26/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `image-load-typed-desc-model` --- ### 📝 Commits (1) - [`a64c4c1`](https://github.com/ubiquitarianism/leonida/commit/a64c4c1635427f76548a08023799c7c96263a0ba) test_image_load_typed: model tagged descriptor hits ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_image_load_typed.py` (+5 -0) </details> ### 📄 Description ## Summary `tests/test_image_load_typed.py` went red after #2098 because the tagged descriptor probe now returns `(index, kind)` as `%desc_hit`, while the test's small branch evaluator still modelled `%desc_lookup_fn` as returning the bare integer index. Extracting component 1 therefore indexed an int. This updates only the test model: a tagged hit is a composite of the supplied index and a sampled-only kind word (sampled-dimension bits set, no storage-array bits); a miss remains index zero. No translator or runtime behavior changes. ## Verification Under the machine lock: - `python -m compileall -q tests/test_image_load_typed.py tools/rdna2spirv.py` — pass - unmodified `origin/main` copy of `tests/test_image_load_typed.py` — **28 run, 7 errors** (`TypeError: 'int' object is not subscriptable`) - patched `python -I tests/test_image_load_typed.py` — **28 run, OK** No game data or GPU required. AI-assisted (Devin). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:20:16 +01:00
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#2164
No description provided.