shader: integrate explicit startup mip loads from #1284 #1386
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!1386
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1386/head"
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?
@R0Y00 on GitHub · 2026-11-24 10:13 UTC · original
R0Y00:codex/priority-integrate-1284→main· +387 −31 · 12 files · 18 commits · merged 2026-11-24 10:16 UTCIntegrates Evan-Lowry's #1284 with current main. The original commits are retained. The fork has maintainer edits disabled. Refs #1284.
The merge retains the mip, flat-parameter, inline-sampler, host-CPU and ordinary translator CI commands and the two startup-runtime documentation sections. On Windows at
d926b1f9these five checks passed individually with the project Python environment:The mip check exercised 2D packed coordinates, 3D nonconsecutive coordinates, and implicit mip zero. The original PR contains the hardware/WARP two-mip readback evidence.
The combined candidate at
3696ec96also includes #1381. Its source retains the verified array-sampling and ordinary array-load cases and rejects the unverified combination of an explicit mip load on a 2D array. Both feature fixtures, the 3D, explicit LOD, flat, inline sampler, and existing startup translator checks passed (7 scripts). The original #1381 can land independently.@tedin7 on GitHub · 2026-11-24 10:17 UTC · original · reviewed
Technical review at
3696ec9661216acebde8fb91af983640e32ec674:Checks run
docs_links_check.py,bidi_controls_check.py,startup_translator_check.py,startup_image_load_mip_check.py --llvm-mc llvm-mc-19,startup_image_2d_array_check.py binary llvm-mc-19,startup_image_3d_check.py binary llvm-mc-19, andstartup_image_sample_l_check.py binary llvm-mc-19all passed.--preset dev, targetoffscreen_check):ctest -R '^startup_image_(3d|load_mip|2d_array)_(controls|warp)$'6/6 passed (2.19s)./O2(--preset release, targetoffscreen_check):ctest -R '^startup_image_(3d|load_mip|2d_array)_(controls|warp)$'6/6 passed (2.03s).Code audit
tools/startup/gfx2hlsl.py:image_load_mipdecodes and rejectstfe/a16/d16/ 2D arrays / wrong address counts / emptydmask, and lowers 2D packed and 3D NSA addresses toTexture.Load(int3/int4(..., mip)).SQ_RSRC_IMG_2D_ARRAYlowers toTexture2DArray<float4>(tex2da) forimage_sample*andimage_load.tests/startup_image_load_mip_check.pyandtests/startup_image_2d_array_check.py: negative controls (wrong-mip mismatch at pixel(0, 0), unsupported modifiers/dimensions) andllvm-mcreassembly checks are solid.tests/startup_image_3d.cpp, thearrayupload loop indexesfootprints[tz].Offsetwhile usingfootprint.Footprint.RowPitch(footprints[0]); for equal-sized 2D array slices at mip 0 the row pitch is identical, thoughfootprints[tz].Footprint.RowPitchwould be slightly more direct.Looks good to merge.