shader: add exact MinLod readback fixture #1059
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!1059
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1059/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?
@romn4rch on GitHub · 2026-11-23 23:55 UTC · original
romn4rch:romn4rch-minlod-readback-809→main· +141 −2 · 4 files · 1 commits · merged 2026-11-24 00:14 UTCChange
Adds a smallest source-built plain-Sample
MinLodreproducer for issue #809. The fixture fixes clamp 1 at mip 1 and adds a direct desktop HLSL control plus a stale mip-2 negative readback check, with exact 64-pixel/256-channel readback semantics.Refs #809
Verification
Commit/build:
4ad7b0aandfad4eb0worktree state, with DXC 1.9.2602.17.ctest --preset dev --no-tests=error -R '^spirv_minlod_exact_warp$' -V --output-junit "$PWD/out/minlod-exact-warp.xml": passed on Microsoft Basic Render Driver / WARP 10.0.26100.10068 on Windows 11 build 26300, debug layer enabled. Translated SPIR-V and direct HLSL both read mip 1 across 64 pixels/256 channels with zero absolute error. The mip-2 negative control failed at pixel(0, 0), channel 1 as expected.python -B tests/docs_links_check.py: passed, 15 Markdown files and 237 links checked.cmake --build --preset dev --target offscreen_check: passed.Physical GPU tests were not run. This PR makes only a WARP claim; hardware claim evidence remains a separate follow-up requirement.
Evidence and follow-up
The fixture uses the existing source-built 8x8 RGBA8 four-mip texture: red, green, blue, and yellow for mips 0 through 3. It fixes
(0.25, 0.25)sampling, point mip filtering,ps_6_0, and the texel offset for the translated and control shaders. It does not claim fractional clamping, archive shader behavior, or full-game startup.The dedicated reproduction command is documented in
docs/experiments.md:Future physical-adapter work must report the commit, DXC version and flags, adapter, driver, Windows build, runtime, debug-layer status, and first mismatch or tested range separately.
Checklist
This change was AI-assisted.