shader: probe native gfx1030 2D gather clamps #2750
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2750
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2750"
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?
@stan495 on GitHub · 2026-11-26 05:44 UTC · original
stan495:codex/gfx1030-mimg-gather-clamp-probe-refresh→main· +271 −0 · 2 files · 1 commits · draftBehavior
Generate source-built native gfx1030 probes for
image_gather4_cl,image_gather4_b_cl,image_gather4_c_cl,image_gather4_c_b_cl, and the four signed-offset forms. The external graphics runner draws them with the three-level RGBA32F texture and native pixel ABI from #1643, which is already onmain. This patch does not depend on the Vulkan bias runner.A native
image_get_loddraw checks implicit LOD 1 and twelve explicit-LOD draws pin mip layout and gather tap order. The sixteen instruction trials distinguish an upper or lower clamp, either bound before bias, and an ignored clamp. The readback classifier requires one model to explain all trials after the controls match. This is an integer-mip probe, not support for fractional thresholds or alternate views. No AOT lowering or semantic coverage is added.Verification
Tested clean
82bb3631973008a5c96cf2e18b8ca81b0b4ec8b8, based on651577a07f1d7122b21bf6f0010ee0903272b14c.Ubuntu LLVM 15.0.7 assembled, extracted and disassembled all 29 clamp programs and matched exact instruction bytes for the eight clamp mnemonics. The adjacent checks passed: 24 existing bias shaders, 24 ordinary LLVM/archive CLI cases, six comparison LLVM/archive CLI forms, docs links, bidi controls and diff checks.
The classifier accepted all five synthetic model signatures, with 16 synthetic trial files and 13 synthetic controls per signature. For each signature, the synthetic control files use the emitted
*.expected.rgba32fbytes; the trial files copy the expected mip bytes named by the manifest's model prediction. Replacing the mip-1 control with mip 2 returned 1 atimage_gather4-explicit-mip1, pixel(0,0), tap 0: expected4625, actual8705. Mixing trials from two models also returned 1 (no unique clamp interpretation across all draws, candidates=[]). These are CPU-model readbacks, not native execution.For hardware reproduction, draw the 29 shaders listed in
out/gfx1030-gather-clamp-probe/manifest.jsonwith a native gfx1030 graphics runner before running the classifier. Save all tightly packed RGBA32F readbacks and record the adapter, driver and runtime. Ordinary biased gather's Vulkan extension does not provide this path for clamp or comparison gather, so no Vulkan draw is claimed here. Native readbacks are pending. These standalone probes are not CTest cases and add no passingFORM_COVERAGE_RECORDentries.Local merge simulation against
1ec01d7037d30fbdc383d48dceb43ad8c48e0f0bpassed independently and with the Vulkan bias probe in either order. The merged tree was not used for the execution results above.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.