shader: run portable MinLod readbacks at Shader Model 6.0 #866
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/873"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T15:12:27Z.
Change
Refs #809. Run the exact point-mip and mip-linear readbacks at Shader Model 6.0.
Keep the fractional point-filter readbacks in a separate Shader Model 6.6
fixture with the existing nearest-mip and tie checks. On Windows 10 in-box
WARP, #809's point-filtered clamp of 1.5625 selects mip 1 in both translated
SPIR-V and direct HLSL, where explicit SampleLevel selects mip 2. The exact
mips and mip-linear blends pass on that runtime. The split uses shader-model
capability gates and adds no adapter-specific skip or expected-failure rule.
The Windows CI result check requires both WARP fixtures to run and pass.
Verification
Tested
eab58b525din Debug and Release on Windows10 22H2 build 19045.6456, using DXC 1.9.2602.17 and the patched SPIRV-Cross
build from the repository-pinned revision.
The exact and blend fixture checked all 64 pixels for four integer mips and
nine blends per shader source, with the existing 1/128 blend tolerance and
matching first-pixel words between the two shaders. Both SM 6.6 shader sources
selected mip 2 at the 1.5 tie. All 40 stale-reference draws failed at pixel
(0, 0) with exit 1, including the new fractional control that checks a
1.5625 clamp against mip 1. The logged D3D12 debug summaries reported zero
errors and warnings.
Focused CTest runs recorded 46 passes, four shader-model capability skips and
zero failures. App-local Debug and Release passed all eight required WARP
checks. The result checker rejected a report marking the fractional WARP test
as skipped. The bidirectional-control and diff whitespace checks also passed.
From a configured Windows checkout, use the repository's pinned SPIR-V tools.
Run both presets with the in-box runtime, then configure the app-local profiles
with OFFSCREEN_AGILITY_620_DIR and OFFSCREEN_WARP_DIR. Set XBOX2WINDOWS_ADAPTER
to select the physical adapter. For the app-local runs, set
X2W_REQUIRE_SPIRV_TOOLS=1 and use the JUnit result check.
Evidence and follow-up
The tests reuse the repository's synthetic four-mip texture and source-built
shaders. The MinLod experiment notes
describe the two fixtures and keep the adapter measurements separate.
AI-assisted.