mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #299] [CLOSED] test: SPIR-V translation tests for image_sample_d and image_sample_d_cl #352
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#352
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/299
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/10031📝 Commits (1)
545dc8ftest: SPIR-V translation tests for image_sample_d and image_sample_d_cl📊 Changes
1 file changed (+440 additions, -0 deletions)
View changed files
➕
tests/test_image_sample_d_translate.py(+440 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116998532
What and why
Adds standalone
stdlib-onlySPIR-V translation tests (tests/test_image_sample_d_translate.py) forimage_sample_dandimage_sample_d_clvia realrdna2spirv.translate()calls.1D,2D,3D,2D_ARRAY, andCUBEdimensions (OpImageSampleExplicitLodwithGradand matching scalar/%v2float/%v3floatgradient and coordinate vectors),image_sample_d_cl(Grad|MinLod+MinLodcapability),a16coordinate/clamp unpacking with 32-bit gradients, non-PS stage support, and partialdmaskVGPR compaction.rdna2spirv.Unsupportedon unsupported variants/dims/short address counts (_o,_c_d, etc.) and includes negative controls confirmingimage_samplewithout_domitsGradanddmaskchanges alter written VGPRs.Tested
AI-assisted.
Ran on Windows 11 (Python 3.12.10, stdlib-only):
python -I tests/test_image_sample_d_translate.py -v->Ran 12 tests in 0.089s — OKpython -I -m compileall -q make_game.py tools tests-> exit code 0Checklist
tools/rdna2spirv.py).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.