mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:25:52 +01:00
[PR #1199] rdna2spirv: lower image_msaa_load through set-0 MSAA bindings 20-25 (SHADER-IMAGE-MSAA-LOAD) #1231
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#1231
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/1199
Author: @madhyn
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/image-msaa-load📝 Commits (2)
4cd9748rdna2spirv: lower image_msaa_load through set-0 MSAA bindings 20-25 (SHADER-IMAGE-MSAA-LOAD)2fc4f96rdna2spirv: fetch one MSAA sample per active dmask bit in image_msaa_load📊 Changes
5 files changed (+218 additions, -14 deletions)
View changed files
📝
docs/design.md(+1 -0)➕
tests/semantic/test_image_msaa_load.py(+127 -0)📝
tools/rdna2spirv.py(+85 -9)📝
tools/wave64_emulate_opt.py(+2 -2)📝
tools/wave64_halves.py(+3 -3)📄 Description
Claimed in the coordination issue as: SHADER-IMAGE-MSAA-LOAD (claim)
Follow-up to
roanh47's finding in #14 and #1183 (RT-MSAA-DEPTH-SRV).What and why
tools/rdna2spirv.py: lowerimage_msaa_loadfordim:SQ_RSRC_IMG_2D_MSAAanddim:SQ_RSRC_IMG_2D_MSAA_ARRAYviaOpImageFetch ... Sample %sample, declaring the set-0 multisampled sampled-image arrays at bindings 20–25 (20/22/24for 2DMS float/uint/sint and21/23/25for 2DMS-array float/uint/sint, matchingruntime/src/vulkan_bindless.h::sampled_binding). Handlesa16(u16 packed coords/slice/sample) andd16viaimage_read_typed. Non-MSAA dimensions,glc,tfe,lwe, and non-VGPR destinations raiseUnsupported.tools/wave64_halves.py,tools/wave64_emulate_opt.py: classifyimage_msaa_loadwithimage_loadfor memory ordering andd16packing.tests/semantic/test_image_msaa_load.py: checks bindings 20–25,OpTypeImage ... MS=1,OpImageFetch ... Sample,a16/d16,--wave64-emulate,Unsupportedrejections, andspirv-val --target-env vulkan1.3.docs/design.md: documents theimage_msaa_loadcontract row.Tested
PYTHONPATH=tests/semantic python3 -m unittest tests/semantic/test_image_msaa_load.py tests/semantic/test_sample_typed_dims.py tests/semantic/test_image_coherent.py tests/semantic/test_image_store_d16.py tests/semantic/test_image_store_dmask.py tests/semantic/test_mem_crash_forms.py: 37 tests passed (0.577 s), includingspirv-as+spirv-val --target-env vulkan1.3.python3 -m unittest discover -s tests -p "test_docs_*.py": 47 tests passed (12.097 s).python3 runtime/test/shaders/build.py runtime/build/linux: 284/284 fixtures translated and passedspirv-val.vk_harness/vk_compute_testharnesses only allocate single-sample images).AI-assisted: yes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.