mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1355] Translate ordinary per-sample texture reads on multisampled images (SHADER-IMAGE-LOAD-MSAA) #1385
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#1385
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/1355
Author: @titoreinaldo
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:contrib/msaa-image-load📝 Commits (1)
ab4c9c5Translate ordinary per-sample image_load in the standalone shader tool📊 Changes
4 files changed (+188 additions, -10 deletions)
View changed files
➕
docs/msaa_image_load.md(+9 -0)📝
tests/semantic/spirv_mini_interp.py(+3 -3)➕
tests/semantic/test_image_load_multisample.py(+109 -0)📝
tools/rdna2spirv.py(+67 -7)📄 Description
Claimed in the coordination issue as SHADER-IMAGE-LOAD-MSAA.
Depends on: #1199 for merge coordination. Both PRs touch the typed multisample declarations in
tools/rdna2spirv.py. This branch builds directly on66d4f5aaand merges cleanly with51a6074d. Whichever lands second needs a rebase. Credit to @madhyn for the shared typed declarations and view selection in4cd97486.What changed
Ordinary GFX10
image_loadcan read selected color channels from one sample of a pixel. The standalone translator previously rejected both multisampled dimensions. With--msaa-image-loadit now consumes x, y, optional array slice and the explicit sample ID, then emits a typed Vulkan fetch. The opt-in targets devices whose bindless layout exposes all three numeric classes at bindings 20–25. The new contract row and its references are indocs/msaa_image_load.md. The specialized multi-sample gather remains tracked in #1199. AMD RDNA2 ISA, table 42Tested
ab4c9c59e9a8105928f210a6572687105db263c1. Seven independently generated gfx1030 programs: upstream base translated 0/7 (three 2D and four array rejections). With the target option, 7/7 translated and passedspirv-val. One is a deliberate sample-zero control.python -I -u scripts/run_semantic_tests.py -j 10 tests/semanticreported 471 files, 6,171 tests and zero failed files. The ordinary baseline GPU suite on66d4f5aarecorded 235 passes / 17 skips on NVIDIA and 217 passes / 35 skips on Intel, with zero failures on either. The new physical measurements cover translated Vulkan output. Native RDNA2 remains unmeasured here.AI-assisted: yes, with Codex. All inputs in this report were generated for the tests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.