mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1247] rdna2spirv: image_sample* outside 2D selects the UINT/SINT sampled view (OLD-9959 / SHADER-1404) #1279
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#1279
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/1247
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9959-sample-typed-dims📝 Commits (2)
85146eardna2spirv: image_sample* outside 2D selects the UINT/SINT sampled view (SHADER-1404)58b2f94tests/test_shader_checks: count and patch sample_dims_test for SHADER-1404📊 Changes
12 files changed (+560 additions, -38 deletions)
View changed files
📝
docs/design.md(+2 -1)📝
runtime/test/shaders/check.py(+21 -0)➕
runtime/test/shaders/ps_sample_array_sint.asm(+71 -0)➕
runtime/test/shaders/ps_sample_array_uint.asm(+58 -0)➕
runtime/test/shaders/ps_sample_volume_sint.asm(+71 -0)➕
runtime/test/shaders/ps_sample_volume_uint.asm(+58 -0)📝
runtime/test/vk_texture_test.cpp(+113 -27)📝
scripts/run_gpu_tests.py(+6 -0)➕
tests/semantic/test_sample_implicit_dims.py(+139 -0)📝
tests/semantic/test_sample_typed_dims.py(+2 -2)📝
tests/test_shader_checks.py(+2 -1)📝
tools/rdna2spirv.py(+17 -7)📄 Description
Claimed in the coordination issue as: OLD-9959 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143833765)
What and why
Carries forward
old-pr/9959(draft #225, original commit authorslipperysquidpreserved; indexed in #17; SHADER-1404), rebased cleanly onto currentmain, plus a small follow-up commit (68762f09c) updatingtests/test_shader_checks.pyfor the newSAMPLE_DIMS_TESTS/sample_dims_testhook incheck.py.Extends typed UINT/SINT view selection in
tools/rdna2spirv.pyto implicitimage_sampleacross every texture dimension and stage (matchingimage_sample_l/image_sample_lz):image_sampleacross 1D, 2D, 2D-array, cube, and 3D dimensions and in both pixel and non-pixel stages.OpDPdx/OpDPdy) before the per-format branch at the non-layer coordinate width in pixel shaders, and samples at explicit LOD 0 outside the pixel stage.tests/semantic/test_sample_implicit_dims.py, updatestests/semantic/test_sample_typed_dims.py, adds GPU fixturesps_sample_array_uint/sintandps_sample_volume_uint/sintwith newvk_texture_testmodes wired intocheck.pyandscripts/run_gpu_tests.py, updatestests/test_shader_checks.py, and updates the contract row indocs/design.md.Tested
python -m unittest discover -s tests/semantic -p test_sample_implicit_dims.py -v: 6 tests, OK (1 skipped:spirv-valnot on PATH).python -m unittest discover -s tests/semantic -p test_sample_typed_dims.py -v: 4 tests, OK (1 skipped:spirv-valnot on PATH).python -I tests/test_shader_checks.py: 87 tests, OK.python -I tests/test_docs_links.py: 16 tests, OK.python -I scripts/run_semantic_tests.py tests/semantic: 471 files, 6,174 tests, 0 files failed.python -I scripts/check_no_game_data.pyon all 12 touched files: 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; original author verified the GPU fixtures on RX 6800 XT / RTX 3070 / llvmpipe)
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.