mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #108] [CLOSED] rdna2spirv: an implicit image_sample reads the UINT/SINT view in every dimension and stage (SHADER-1404) #160
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#160
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/108
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9839📝 Commits (1)
f8252efrdna2spirv: an implicit image_sample reads the UINT/SINT view in every dimension and stage (SHADER-1404)📊 Changes
7 files changed (+182 additions, -18 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
runtime/test/shaders/check.py(+4 -1)➕
runtime/test/shaders/ps_sample_implicit_uint_array.asm(+27 -0)📝
runtime/test/vk_texture_test.cpp(+14 -8)📝
scripts/run_gpu_tests.py(+2 -2)➕
tests/semantic/test_sample_implicit_dims.py(+119 -0)📝
tools/rdna2spirv.py(+15 -6)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):SHADER-1404. Finishes what
#9517started:#9517madeimage_sample_l/image_sample_lztake the typed read inevery dimension, but plain
image_samplestill took it only in a 2D pixel shader. A UINT/SINT 2D-array, cube, 3Dor 1D texture, or any implicit sample outside the pixel stage, was sampled through the float view.
The translator change is the one from
@evilclanker9000's#9667(closed without merging, no successor), rebased oncurrent main:
image_sampletakes the typed read everywhere, with Grad sized to the dimension (scalar for 1D,three components for 3D, two for 2D / 2D-array / cube) in the pixel stage and
Lod 0elsewhere.New in this PR: a GPU fixture for a non-2D integer texture, the check
#9667still listed as missing.runtime/test/shaders/ps_sample_implicit_uint_array.asm:ps_sample_implicit_uinton a one-layer 2D array.vk_texture_test --two-mip-uint-array: binds the same two-mip unsigned image as a 2D array at binding 3.check.py/run_gpu_tests.pynext to the 2D integer fixtures.Tested on an NVIDIA GeForce RTX 4070 Ti, driver 616.56, Windows 11, MSVC 2022, Vulkan SDK 1.4.357:
run_gpu_tests.py --filter ps_sample_implicit: 3/3 pass, both passes of each 4096/4096 pixels exact. Withmain's translator the new array fixture fails, reading (0, 0, 0, 0) at the first pixel; the 2D ones still pass.
tests/semantic/test_sample_implicit_dims.py(from#9667): passes; fails on main for 2D-array, cube, 3D, 1D.test_image_atomics_guard,test_image_cube_store_glc,test_image_store_d16) and fail identically on unchanged main.check_no_game_data.pyon every changed file: clean. No game files used.Not GPU-checked: 3D, cube and 1D integer textures and the compute stage (CPU-checked by the semantic test).
AI-assisted (Claude Code).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.