mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:25:52 +01:00
[PR #1187] rdna2spirv: refuse 3D Dref c_lz samples (OLD-9845 / SHADER-1402) #1219
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#1219
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/1187
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9845-dref-3d-refusal📝 Commits (2)
5b97994rdna2spirv: refuse 3D Dref c_lz samples72e01c4rdna2spirv: refuse all 3D image_sample_c* Dref forms (VUID-StandaloneSpirv-OpImage-04777)📊 Changes
5 files changed (+66 additions, -8 deletions)
View changed files
📝
docs/design.md(+1 -0)➕
tests/semantic/fixtures/dref_3d_c_lz.asm(+8 -0)➕
tests/semantic/fixtures/dref_3d_c_lz_o.asm(+9 -0)📝
tests/semantic/test_sample_c.py(+46 -8)📝
tools/rdna2spirv.py(+2 -0)📄 Description
Claimed in the coordination issue as: OLD-9845 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142425786)
What and why
Carries forward
old-pr/9845(draft #112, original commit authorThomasSAMPpreserved; indexed in #17; SHADER-1402), rebased cleanly onto currentmain.Refuses 3D depth-compare
c_lztexture samples intools/rdna2spirv.py:Unsupported("3D depth comparison") forimage_sample_c_lzandimage_sample_c_lz_owithdim:SQ_RSRC_IMG_3D, because Vulkan forbids Dref image sampling instructions on 3D images (VUID-StandaloneSpirv-OpImage-04777).docs/design.md(with the 1.0.2.1 corpus count: all 15,155image_sample_c_lzsites are 2D or 2D-array, none 3D).tests/semantic/fixtures/dref_3d_c_lz.asmanddref_3d_c_lz_o.asm, and updatestests/semantic/test_sample_c.pyto test both the 3D refusals and continued acceptance of 2D / 2D-array forms.Tested
python -m unittest discover -s tests/semantic -p test_sample_c.py -v: 10 tests, OK (1 skipped:spirv-valnot on PATH).python -I scripts/run_semantic_tests.py tests/semantic: 470 files, 6,170 tests, 0 files failed.python -I tests/test_docs_links.py: 16 tests, OK.python -I scripts/check_no_game_data.py docs/design.md tools/rdna2spirv.py tests/semantic/test_sample_c.py tests/semantic/fixtures/dref_3d_c_lz.asm tests/semantic/fixtures/dref_3d_c_lz_o.asm: exit 0 (no game data).GPUs tested: n/a (CPU SPIR-V interpreter semantic suite on Windows 11 Pro 64-bit, Python 3.12.10)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).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.