shader: preserve SPIR-V minimum sample LOD in HLSL #804

Manually merged
github merged 1 commit from gh-pr/804/head into gh-pr/804/base 2026-11-26 22:20:04 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-23 06:12 UTC · original
R0Y00:codex/spirv-minlod → main · +165 −5 · 8 files · 1 commits · merged 2026-11-23 06:29 UTC

Map SPIR-V MinLod to the HLSL sampling clamp in the pinned SPIRV-Cross build and include the patch in the Windows tool cache key. The source-built fixture draws three 2D sample forms against distinct mip colors and rejects the unclamped draw at pixel (0, 0).

Local Release build at 747b21a passed ctest --test-dir out/shader-minlod/pr-build --no-tests=error --output-on-failure -R '^spirv_' (12 passed, zero skips). Windows 11 26200.9974, RTX 4060 Laptop 32.0.16.1656 and WARP 10.0.26100.9818, debug layer enabled on both.

A separate local archive experiment compiled all 29 previously blocked pixel records to DXIL and created their PSOs on both adapters. Controlled draws with synthetic bindings wrote color for 19 records on both. Seven matched byte for byte and 12 differed. WARP reached a 45-second budget on four records and drew six with no color writes. RTX drew ten with no color writes. The controlled draws compare adapters under the same desktop bindings. Original shader outputs under package bindings remain unverified.

**@⁠R0Y00** on GitHub · 2026-11-23 06:12 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/804) `R0Y00:codex/spirv-minlod` → `main` · +165 −5 · 8 files · 1 commits · merged 2026-11-23 06:29 UTC Map SPIR-V `MinLod` to the HLSL sampling clamp in the pinned SPIRV-Cross build and include the patch in the Windows tool cache key. The source-built fixture draws three 2D sample forms against distinct mip colors and rejects the unclamped draw at pixel (0, 0). Local Release build at `747b21a` passed `ctest --test-dir out/shader-minlod/pr-build --no-tests=error --output-on-failure -R '^spirv_'` (12 passed, zero skips). Windows 11 26200.9974, RTX 4060 Laptop 32.0.16.1656 and WARP 10.0.26100.9818, debug layer enabled on both. A separate local archive experiment compiled all 29 previously blocked pixel records to DXIL and created their PSOs on both adapters. Controlled draws with synthetic bindings wrote color for 19 records on both. Seven matched byte for byte and 12 differed. WARP reached a 45-second budget on four records and drew six with no color writes. RTX drew ten with no color writes. The controlled draws compare adapters under the same desktop bindings. Original shader outputs under package bindings remain unverified.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:20:02 +00:00
github manually merged commit 747b21a729 into gh-pr/804/base 2026-11-26 22:20:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.