mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1572] OLD-9875: rdna2spirv: translate 2D image_load_mip glc via coherent storage view #1593
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#1593
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/1572
Author: @Tortoche
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:old-9875📝 Commits (2)
4e23a19fix: translate image_load_mip glc on 2D through the coherent storage view9b1dcc1rdna2spirv: refine coherent 2D image_load_mip typing, odd d16 high-half keep, and docs📊 Changes
3 files changed (+150 additions, -15 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
tests/semantic/test_image_coherent.py(+103 -2)📝
tools/rdna2spirv.py(+46 -12)📄 Description
Item ID:
OLD-9875Carries forward Draft
#143(old-pr/9875), preserving original authortedin7(e6b7cb689), rebased ontomain(364ab4eab), plus follow-up refinement0c5605585(image_load_mip glcon 2D via coherent storage view).Claimed in
#14: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147714743AI-assisted: yes
Summary
tools/rdna2spirv.py(image_misc,image_load_mip_coherent):image_load_mipwithglcon plain 2D images (includinga16andd16) through the coherent storage view%stv*_0instead of rejecting it or emitting sampledOpImageFetch.OpImageReadon themip == 0branch (image_load_coherent, decoratedCoherent, without settinguses_query), and zero-fill destination registers onmip != 0viaOpIEqual %bool(raw_xs[2]as%uint) + structuredOpSelectionMerge/OpBranchConditional, usingwrite_lo16on the trailing oddd16register so the high 16 bits are preserved.image_load_mip ... glcfor non-2D dimensions andtfe/lwestatus forms (Unsupported).tests/semantic/test_image_coherent.py:CoherentMipLoad(8 tests:f32, negative control withoutglc,a16,d16even/odd0xFFFF0000high-half masking on both branches), expandUnmodelledCoherentReads(2D_ARRAY,3D,tfe,lwe), and addValidation.test_spirv_val_accepts_a_coherent_mip_load.docs/design.md:Coherent image accesses (glc)contract row for 2Dimage_load_mip glc(includingd16/a16/odd-component handling and explicit note thatmip > 0zero-fill on a coherent view is not yet hardware-measured).Tests Executed & Verified (Linux x86_64 CPU; no GPU / retail game-corpus run)
python3 -I scripts/run_semantic_tests.py -j 2 tests/semantic: 476 files, 6232 tests, 0 files failed in 5032 s (exit 0)python3 -m unittest discover -s tests/semantic -p test_image_coherent.py -v: 19/19 passed (with/usr/bin/spirv-as&/usr/bin/spirv-val), plus 18/18 refusal probes and 12/12spirv-valadversarial probespython3 -I tests/test_design_contract_rows.py -v: 5/5 passedpython3 -I tests/test_docs_links.py -v: 16/16 passedpython3 -I tests/test_docs_design_rows.py -v: 5/5 passedpython3 -I tests/test_text_write_line_endings.py -v: 3/3 passedpython3 -I tests/test_ci_registration.py -v: 16/16 passedpython3 -m compileall -q make_game.py tools tests: OK (exit 0)python3 -I scripts/check_no_game_data.py docs/design.md tests/semantic/test_image_coherent.py tools/rdna2spirv.py: OK (exit 0, zero game data)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.