Reproduce MinLod readback differences with a source-built texture fixture #803
Open
opened 2026-11-23 06:34:34 +00:00 by R0Y00
·
35 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows#803
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 R0Y00 on 2026-11-23T06:34:34Z.
Refs #804. All 29 local records previously blocked by the MinLod operand compiled and built a D3D12 pipeline on WARP and RTX after the bridge fix. Under the tested synthetic bindings 19 wrote color on both adapters. Seven matched byte for byte and twelve had finite floating-point differences. That comparison alone does not identify the cause.
Claim one sampling form or adapter in a comment. Build on #804's source-built mip fixture. Start with one texture containing distinguishable colors at each mip, a defined sampler and coordinates, and one MinLod instruction form. Use an independent expected output with a stated error tolerance if filtering requires one.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T07:12:35Z.
I'll take plain
Sample+MinLodon an RTX 3080 Ti (Windows driver 32.0.16.1047) and WARP 1.0.22 (app-local Agility SDK), Windows 10 build 19045, building on #804's mip fixture (spirv_minlod_*passes on both at66669bb).Shared code I expect to touch:
tests/spirv_window/minlod.pyand the quad-LOD check intests/pixel_aot_render.cpp.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T07:41:35Z.
Results for plain
Sample+MinLodare in #816. Translated and direct-HLSL results are bit-identical on each adapter. The RTX/WARP differences appear only with linear mip filtering, where the adapters quantize the mip blend weight differently.Windows 10 build 19045, Agility SDK 1.620.2, DXC 1.9.2609, at
af94238:MIN_MAG_POINT_MIP_LINEAR)SampleBias,SampleGradandSampleCmpforms.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-23T08:12:14Z.
I reproduced #816's source-built
Sample+MinLodfixture on a Radeon RX 7900 XTX and Windows in-box WARP. Bothspirv_minlod_levels_*tests passed ataf942385c9561a9ee4d5d202d79bae9a084fb87f, with zero capability skips.The first pixel
(0, 0)withMIN_MAG_POINT_MIP_LINEARreturned these G/B values for both the translated shader and the direct HLSL control.The unmodified fixture passed on both backends. A second run logged every raw RGBA word alongside the existing
1/128reference comparison. For each of the nine linear-mip clamps, all 64 pixels (256 channel words) were bit-identical between the translated shader and the direct HLSL control on each backend. The Radeon and this WARP also matched each other across all nine linear-mip readbacks. At1.3, the blue weight was exactly77/256, matching the WARP result reported in #816. At1.001953125both backends returned the unmixed green mip.Point mip filtering matched the expected colors exactly, with the
1.5tie selecting mip 2 on both backends for both shaders. Both negative controls returned the expected renderer exit code 1 at pixel(0, 0)for both shaders on both backends. The first differing channel was G (channel 1) in each case.1checked against mip 21.25checked against the1.5blendWindows 11 Pro 25H2 build
26200.9974, Ryzen 7 7800X3D, Radeon RX 7900 XTX driver32.0.32029.2010. The renderer confirmedAMD Radeon RX 7900 XTX(1002:744c) for hardware andMicrosoft Basic Render Driverfor WARP. WARP came from WindowsSystem32\d3d10warp.dllversion10.0.26100.9818. The D3D12 debug layer was enabled on both backends. DXC was1.8.2502.11(239921522) from Windows SDK10.0.26100.0.For the diagnostic run, I rebuilt
offscreen_checkwith temporary logging that emits the raw FP32 RGBA channels in raster order. I setX2W_MINLOD_FULL_READBACK=1and repeated the CTest command above with the diagnostic enabled. The Python check compared 256 channel words per shader for each clamp. The same1/128reference tolerance applied.The bridge used the repository-pinned SPIRV-Tools
262bdab, SPIRV-Headersb824a46, and patched SPIRV-Cross57e4efc. The fixture assembled and validated with--target-env vulkan1.2, translated with--hlsl --shader-model 66, and compiled withdxc -T ps_6_6 -E main, with-DCLAMP=<clamp>for the HLSL control. These measurements cover the source-built fixture's plainSampleform with constant coordinates andR8G8B8A8_UNORMmips.AI-assisted. I ran the measurements on the hardware listed above.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T08:15:11Z.
Thanks @stan495, the Radeon run narrows down what #816 left open.
MIN_MAG_POINT_MIP_LINEAR)AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T08:20:13Z.
The plain
Samplefixture has landed in #816 (6cd0f15). Thanks @stan495 for checking every pixel on Radeon and in-box WARP. The different linear-mip values are useful evidence of adapter behavior in this fixture. For the next run, keep the same texture and sampler and sweep both sides of the half step between blue weights76/256and77/256. Capture the raw channel words on the same adapter for both the SPIR-V translation and direct HLSL. That would distinguish rounding from truncation more clearly than the single1.3measurement. The twelve archive differences remain open pending equivalent sampler and coordinate evidence.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T08:32:40Z.
The half-step sweep distinguishes the two: WARP 1.0.22 rounds the blend weight to the nearest 1/256 (ties to even), and the RTX 3080 Ti truncates it. Just above 76.5/256, WARP switches to 77/256, while the RTX stays at 76/256 up to 76.99976/256.
Setup: the #816 fixture at
6cd0f15, with the same texture, sampler (MIN_MAG_POINT_MIP_LINEAR) and tools as #816. Blue weight from 76/256 to 77/256 in 1/4096 steps, plus points just around 76.5/256 and ties at 75.5/256 and 77.5/256. Raw RGBA words of all 64 pixels, for both the SPIR-V translation and the direct HLSL control.3e980000)3e960096)3e980000)3e980098)3e980000)3e980098)3e9a0000)3e980098)3e9a0000)3e9a009a)3e9c0000)3e9a009a)k·256/65535and green is1 − blue. That accounts for the offset of up to 7.6e-6 reported in #816.Windows 10 build 19045, Agility SDK 1.620.2, DXC 1.9.2609, debug layer on.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T08:53:57Z.
The three tie cases distinguish ties-to-even from half-up on WARP 1.0.22, and the samples just above 76.5/256 distinguish nearest from the RTX 3080 Ti result. This closes the rounding question for those builds and this source-built plain
Samplecase. The next useful independent sweep is on the RX 7900 XTX and in-box WARP, which matched at the original nine clamps. The twelve archive differences still need matching sampler and coordinate evidence.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T09:24:24Z.
#824 adds the SM 6.0 smoke path for
Sample,SampleBiaswith offset andSampleGrad. Its Windows 10 in-box WARP probe also saw point-filteredSampleat clamp 1.5625 read mip 1 in both translated and direct HLSL, while explicitSampleLevelread mip 2. The detailed level/blend fixture remains at SM 6.6. For each independent sweep, please record the runtime and shader model alongside the adapter and sampler so the two point-selection behaviors can be compared on the same inputs.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T10:02:19Z.
Runtime and shader-model check for #824's point-selection difference, on the #816 four-mip fixture (
MIN_MAG_MIP_POINT) at929e659:MinLodclamp: 0.5625, 1.5, 1.5625, 1.75 and 2.5625 read mips 0, 1, 1, 1 and 2.SampleLevelwith the same values reads the nearest mip (1, 2, 2, 2, 3).For the record, my earlier half-step sweep ran at SM 6.6 (
ps_6_6) under Agility SDK 1.620.2 withMIN_MAG_POINT_MIP_LINEAR.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T10:19:22Z.
Thanks for rerunning the same point-filtered fixture across the two WARP builds and adding the direct HLSL control. Please capture the table in a focused docs PR: list the clamp values and observed mips, the WARP build/runtime and shader model, and keep the mip-linear half-step sweep separate. The result documents a difference between the tested WARP builds. Since translated and direct HLSL agreed, keep the current translator and comparison rules. An independent AMD or Intel result on the same fixture is still welcome.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T13:26:04Z.
#852 records the point-filter selection table and the separate mip-linear half-step sweep. The translated and direct HLSL results agreed on every tested adapter and runtime. This issue remains open for the same five-clamp point sweep on AMD or Intel at SM 6.0, a Radeon half-step sweep, and evidence linking those measurements to the twelve archive cases.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T15:35:31Z.
#873 has landed. The exact mip and mip-linear cases now run at SM 6.0 with the original pixel checks. The separate SM 6.6 fixture keeps the fractional point cases and reports a capability skip on the older in-box WARP. Both fixtures remain required on the designated CI WARP configuration.
For a follow-up AMD or Intel result, please identify the adapter, driver, WARP or hardware runtime, and report the explicit SampleLevel and MinLod results separately for the five point clamps listed above. The lowered test gate does not answer the archive-correlation question.
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T19:21:58Z.
RDNA 4 data point for the source-built MinLod fixtures: AMD Radeon RX 9060 XT and in-box WARP, unmodified tree. Data only, no fixture change.
All six
spirv_minlod_*tests passed, with zero capability skips once the pinned SPIR-V tools were built. (With the Vulkan SDK 1.4.363.0spirv-crosson PATH all six skip withSPIRV-Cross lacks MinLod support.)spirv_minlodspirv_minlod_levels(ps_6_0)spirv_minlod_fractional(ps_6_6)Mip-linear blend (
spirv_minlod_levels, ps_6_0), pixel (0, 0)first_pixel_bitsas printed by the fixture. On each backend the SPIR-V translation and the direct HLSL control printed the same words for all nine clamps, and the Radeon matched this WARP on all nine.3f800000/000000003f400000/3e8000003f330000/3e9a00003f000000/3f0000003e800000/3f4000003f7f0000/3b8000003f800000/000000003f0000003f800000, B =00000000At 1.3 the blue weight is exactly 77/256, the value reported above for WARP and the RX 7900 XTX, not the 76/256 of the RTX 3080 Ti.
Point mip selection (
spirv_minlod_fractional, ps_6_6, MinLod form)Same result on both backends, translation and control: clamp 1.4375 read mip 1, 1.5625 read mip 2, 3.75 read mip 3, and the 1.5 tie read mip 2, each with
max_absolute_error=0over 64 pixels.Negative controls
All returned the expected mismatch at pixel (0, 0) on both backends, for both shaders: clamp 1 checked against mip 2, clamp 1.25 checked against the 1.5 blend, clamp 1.5625 checked against mip 1, and the
no-clampcase ofspirv_minlod. First differing channel was G (channel 1) for the first three and R (channel 0) forno-clamp.Environment
0f0c3eb1f50f227ddc154ab7e081839628ff89b3, clean tree,devpreset (Debug)262bdab, SPIRV-Headersb824a46, patched SPIRV-Cross57e4efc, built withtools/setup-spirv-tools.ps1Five-clamp point sweep at SM 6.0, MinLod and SampleLevel separately
Local driver script (below), not committed. It reuses
minlod.spvasmandminlod_control.hlslunchanged, compiles atps_6_0, and for each clamp runs--check-pixel-mip-exactagainst mips 0 to 3 to find the one that reads withmax_absolute_error=0over 64 pixels. The explicit form isOpImageSampleExplicitLod ... Lodfor the translation andSampleLevelfor the HLSL control. Sampler: MIN_MAG_MIP_POINT.Exactly one mip matched for every clamp. The translation and the HLSL control agreed in every cell. Both backends read the nearest mip for both forms, so the fraction-dropping MinLod behaviour recorded for in-box WARP 10.0.19041.7811 does not appear on either.
Half-step sweep, mip-linear (MIN_MAG_POINT_MIP_LINEAR), MinLod, ps_6_0
Clamp = 1 + weight/256, passed as an exact binary32 decimal. Blue weight from 76/256 to 77/256 in 1/16 steps, plus 76.5 +/- 1/4096, 77 - 1/4096, and ties at 75.5 and 77.5: 22 points. Blue word of pixel (0, 0) from
--check-pixel-mip-blend.3e980000)3e980000)3e980000)3e980000)3e980000)3e980000)3e9a0000)3e9a0000)3e9a0000)3e9a0000)3e9c0000)3e9c0000)3f340000,3f330000,3f320000), with no offset like the RTX 3080 Ti's k*256/65535.Not measured here
max_absolute_errorover 64 pixels equalled the pixel (0, 0) error at every sweep point, which is consistent with uniform output but does not prove it.Local sweep script (uncommitted)
AI-assisted (Claude Code - Fable 5.2 Medium); runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:30:25Z.
Thanks for separating the two point-sampling forms and recording the raw words. The RX 9060 XT and this in-box WARP agree on all five point clamps for both forms. The blend sweep also distinguishes round-to-even at the 76.5/256 tie from the result just above it. This answers the requested AMD source-built follow-up. The remaining question is whether an independently reproducible binding and sample form can connect those behaviors to any of the twelve earlier differences. The new results do not call for changing a fixture tolerance.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:15:05Z.
#1059 landed the fixed integer-clamp baseline. I reran the Release fixture on Windows 11 build 26200.9974 with the pinned SPIR-V tools. The translated and native HLSL shaders both matched mip 1 on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), 64 pixels/256 channels each, with no debug errors or warnings. Both stale-mip controls found the first mismatch at (0,0), channel 1. The original MinLod divergence and the cross-adapter cases remain open.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T01:13:35Z.
One sampling form, one adapter:
spirv_minlod_fractionalpasses on WARP and RTX 5080, and reads the wrong mip on Intel Arc 140TClaiming the
spirv_minlod_fractionalform on the Intel Arc 140T part of this issue (per "Claim one sampling formor adapter in a comment"), as an independent tester of the existing fixture.
Results, same build, same tools, three adapters
Build: source
110e186(working tree24d5a0c, docs-only diff),devpreset.Tools: DXC 1.8.2502.11, SPIRV-Tools v2025.5
262bdab4, SPIRV-Cross57e4efc+(MinLod patch), MSVC 14.44, Python 3.12.10.OS: Windows 11 build 26300.9974, debug layer enabled (
debug_errors=0 debug_warnings=0in every run).spirv_minlodspirv_minlod_exactspirv_minlod_levelsspirv_minlod_fractionalFirst differing pixel and channel, on the Arc
The direct desktop-HLSL control matches first (
max_absolute_error=0, 64 pixels × 256 channels). The translated paththen reads mip 1 where the reference expects mip 2 for clamp 1.5625, so the mip-select channel pair swaps:
Channels 0 and 3 agree; the mismatch is the pair that encodes which mip was sampled (expected mip 2, got mip 1), at the
first pixel of the 64-pixel draw and at the fractional clamp. That is the "first differing pixel and channel" this
issue asks for, and it separates the two backends cleanly: the direct HLSL control on the same adapter, texture,
sampler and coordinates is exact, so the divergence is in the translated path on this adapter, not in the fixture's
texture or sampler setup.
Stability: the same command on the RTX 5080 and on WARP passes on repeated runs; on the Arc the failure repeats
(ran 3 times while checking #768's fixture on the same adapter, which also fails there).
What I did not cover
spirv_minlod_exactandspirv_minlod_levelspass here, so theother forms are still open.
Next, if useful
fixture's controls are exercised on the failing adapter rather than only on the passing ones.
wanted in this thread.
which clamps diverge — that would say whether the off-by-one is at the boundary or throughout.
No archive shaders or binary inputs leave this machine; the fixture builds its own texture, sampler and coordinates.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T01:26:32Z.
The clamp rounding itself differs per adapter, and the translated path matches the control on all three
Follow-up to my earlier comment on this issue. I swept the clamp instead of checking the fixture's one expected mip
per value, using an independent driver of my own (not a change to the repository): for each clamp it builds the
translated module and the direct HLSL control, then tries mip 0–3 and reports the one that matches. Same build,
same tools, three adapters.
Two things fall out of it:
agree=yesin all 57rows). So this is not a SPIR-V → HLSL bridge difference.
spirv_minlod_fractionalfails on the Arc because theexpectation in
FRACTIONALencodes nearest-mip selection, and this adapter does not do nearest-mip selection.floor(clamp + 0.5)(0.5 → 1,1.5 → 2,2.5 → 3); Intel Arc 140T selectsfloor(clamp)(0.5 → 0,1.5 → 1,2.5 → 2). Both saturate atmip 3 for clamps at or above 3, so the tables meet there.
That makes
FRACTIONAL = (("1.4375", 1), ("1.5625", 2), ("3.75", 3))a statement about nearest-mip adapters:1.5625is 2 on the two backends the fixture was developed against and 1 on this one, which is exactly thetranslated clamp 1.5625 did not read mip 2failure I reported. The same applies toTIE = "1.5", which the fixturetreats as "either neighbour, but both paths must agree" — on the Arc both paths say 1, so that part is consistent and
only the absolute expectation is not.
What I can send, your call
1.5) first and record which mip it reads, then build theexpectation table from that. Two extra dispatches, and the fractional cases then test translation fidelity rather
than an adapter's rounding choice — which is the only thing a translated-versus-control comparison can settle.
tests/spirv_window/minlod_sweep.pyplus a CTest registration, so the table above is reproducibleand the per-adapter rule is documented as a measured property rather than a constant in the test.
FRACTIONALstrict and treat the Arc as out of scope, say so and I willnote it in #1115's thread instead.
The two negative controls (
WRONG_FRACTIONALand the wrong-clamp control) still hold on the Arc: with the observedmip known, the control's mismatch is predicted, which is why the sweep reports a value for every row rather than an
error.
No archive shaders or binary inputs left this machine; the fixture builds its own texture, sampler and coordinates,
and my driver writes only into a temporary directory outside the checkout.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T01:41:22Z.
The fractional "stale reference" control stops rejecting on a floor-rounding adapter
Small addition to my earlier sweep, because it changes what the acceptance item "include a wrong-clamp or swapped-mip
negative control and record the expected mismatch" can mean on this device class.
I ran the fixture's own two rejection expectations as separate probes: build the translated module and the direct HLSL
control for one clamp, then dispatch each against the mip the control says it must not read. Same build, same
tools, three adapters.
reads_that_mipandcontrol_trips=Falsehold for both the translated module and the direct HLSL control on theArc, so this is not a translation difference: the adapter reads mip 1 at clamp 1.5625 in both, which is exactly the
floor(clamp)rule my earlier table records. The control that was written to catch a stale mip-2 reference thereforecannot catch anything on this adapter — the device genuinely produces the value the control calls wrong.
Consequences, if it is useful:
WRONG_FRACTIONAL = ("1.5625", 1)is adapter-specific in the strict sense: it asserts nearest-mip selection, notonly that the two shader sources agree. On a floor-rounding adapter it is not a rejection at all.
wrong_mipcontrol (clamp 1must not read mip 2) survives on all three adapters, because floor and nearestagree at an exact mip level. That is the control that stays meaningful regardless of the rounding rule.
power on both device classes. That is the change I offered as option 1 in my earlier comment; I am not sending it
as a patch without your direction.
I did not change any fixture or expectation for this; it is a probe from my own driver, kept outside the checkout, and
the current Arc result still stands as a failure.
Environment: same as the earlier comment — Windows 11 build 26300.9974, DXC 1.8.2502.11, SPIRV-Tools 2025.5,
SPIRV-Cross
57e4efc+, debug layer enabled,debug_errors=0 debug_warnings=0in every run.Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T11:24:30Z.
RDNA 2 data point for the MinLod fixtures, including
spirv_minlod_fractional. The AMD results in this thread so far are an RX 7900 XTX (RDNA 3) and an RX 9060 XT (RDNA 4). The fractional form has been reported on WARP, the RTX 5080 Laptop and the Intel Arc 140T. Data only, no project change.Environment
153bb5f6(main), clean tree,devpreset (Debug)1002:73ff, RDNA 2), driver32.0.21045.29003; WARP10.0.26100.98181.8.2502.11debug_errors=0 debug_warnings=0on every runtools/setup-spirv-tools.ps1: SPIRV-Tools v2025.5262bdab4, SPIRV-Cross57e4efc+(MinLod patch), passed to CMake as-DSPIRV_WINDOW_AS/VAL/CROSS;X2W_REQUIRE_SPIRV_TOOLS=1Command and result
spirv_minlodspirv_minlod_exactspirv_minlod_levelsspirv_minlod_fractionalThese are the mips that
spirv_minlod_fractional_hardwareselects on the RX 6600. Every draw reportedpixels=64 channels=256 max_absolute_error=0.At the clamps this fixture checks, the RX 6600 matches the NVIDIA and WARP columns of the sweep above (1.5 → 2, 1.5625 → 2) and not the Intel column (1 at both clamps). I did not run the independent clamp sweep, so values between these clamps were not measured here.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-24T15:22:07Z.
This is the first desktop RTX 40-series (Ada) data point for the MinLod fixtures.
Data only, no fixture change. All eight
spirv_minlod_*_(warp|hardware)tests passed on each of three runs. Translated SPIR-V and the direct HLSL control printed the same readback on each adapter.Environment
6282668987c27f19b8fa08559c674f1b89dac37a(main), clean tree,devpreset (Debug)10de:2782, Ada), Windows driver32.0.16.2135(nvidia-smi621.35); WARPMicrosoft Basic Render Driver(1414:008c), driver10.0.26100.852126200.8655; MSVC 19.42.34435; Windows SDK 10.0.26100.0; DXC1.8.2502.11(239921522)-T ps_6_0 -E mainforspirv_minlod,spirv_minlod_exact, andspirv_minlod_levels;-T ps_6_6 -E mainforspirv_minlod_fractional; the HLSL control adds-DCLAMP=<clamp>debug_errors=0 debug_warnings=0.offscreen_checkenables the layer whenD3D12GetDebugInterfacesucceeds and has no switch to leave it off, so these runs are the enabled state onlytools/setup-spirv-tools.ps1: SPIRV-Tools v2025.5262bdab, SPIRV-Cross57e4efc+(MinLod patch), passed to CMake asSPIRV_WINDOW_AS,SPIRV_WINDOW_VAL, andSPIRV_WINDOW_CROSSCommand and result
ctest exit codes:
0,0,0. The three verbose logs agreed on every readback below.spirv_minlodspirv_minlod_exactspirv_minlod_levelsspirv_minlod_fractionalNo capability skips. Accepted draws reported
pixels=64 channels=256. Passing draws did not printpixel_mismatch.Mip-linear blend (
spirv_minlod_levels, ps_6_0), pixel (0, 0)first_pixel_bitsas printed. On each adapter the translated shader and the direct HLSL control used the same words for all nine clamps.3f800000/000000003f800000/000000003f3fffc0/3e8000803f400000/3e8000003f33ffb4/3e9800983f330000/3e9a00003f000080/3f0000803f000000/3f0000003e800080/3f3fffc03e800000/3f4000003f7effff/3b8000803f7f0000/3b8000003f800000/000000003f800000/000000003f0000803f0000003f800000, B =000000003f800000, B =00000000At 1.3 the 4070 Ti blue word is
3e980098, the 76/256 word reported for the RTX 3080 Ti, not the WARP word3e9a0000(77/256). This WARP matched the earlier in-box WARP and Radeon words on all nine clamps. Both adapters stayed inside the fixture's 1/128 tolerance. At 1.001953125 both returned the unmixed green mip.Point mip selection
Integer clamps 0, 1, 2, and 3 read mips 0, 1, 2, and 3 on both adapters, both shaders, with
max_absolute_error=0.spirv_minlod_exactclamp 1 read mip 1 the same way.spirv_minlod_fractional(ps_6_6) selected these mips on both the RTX 4070 Ti and this WARP. Translated and control agreed, and every draw reportedpixels=64 channels=256 max_absolute_error=0.That is the nearest-mip column from the earlier sweep (1.5 → 2, 1.5625 → 2), the same side as the RTX 5080 Laptop and WARP, not the Arc 140T floor column (1 at both of those clamps).
Negative controls
Each rejected at pixel (0, 0) on both adapters, for both shaders. The fractional negative control still rejects.
spirv_minlodno-clamp00000000/3f800000)00000000/3f800000)3f000000/3f3fffc0); 0.5 / 0.75 on WARP (3f000000/3f400000)3f800000/00000000)AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T15:31:56Z.
Thanks for the desktop Ada data point. This adds three matching RTX 4070 Ti and WARP runs for all eight registered cases, with the translated and direct controls agreeing. Keep the broader issue open for a reproducible mismatch when one is found. Future reports can use the same command and include the first differing clamp and mip.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T16:46:07Z.
Claiming the Intel Arc adapter slice, and the run produced a reproducible difference at a named clamp and mip, which is what the last comment asked future reports to include.
Environment
mainatd90dd76b, clean tree,devpreset (Debug), debug layer enabled8086:7d51), driver32.0.101.8132; WARPMicrosoft Basic Render Driveras the control26300.9974, MSVC 14.44.35207, Windows SDK 10.0.26100, DXC1.8.2502.11ctest --preset dev -R '^spirv_minlod' -VwithXBOX2WINDOWS_ADAPTER=Intelfor the physical runs; the_warpcases without itResult: 8/8 pass on the Arc, and one clamp where the shader disagrees with itself
All eight registered cases pass on the Arc (
minlod,exact,levels,fractional, each on hardware and WARP). Translated and direct-HLSL control print identical values in every case, so this is not an AOT-versus-control difference.The fractional case is where the two backends diverge. Arc,
spirv_minlod_fractional_hardware, both translated and control:WARP, same case, same clamps:
First difference: clamp
1.5, channel/pixelx=0 y=0. On WARP the selected mip equals the sampled mip at both fractional clamps; on the Arc the sampled mip is 2 while the shader's ownselected_mipreports 1, and the fixture prints the pair that goes with it:repeated at
clamp=1.5andclamp=1.5625, and nowhere else.Two readings, and I cannot separate them from here:
clamp=1.5and1.5625select mip 2 for the sampled coordinate while the shader-side selection formula still yields 1;What is established is narrower and still useful: on this adapter, at exactly two clamp values that sit on the 1.5 mip boundary, the sampled mip and the reported selection disagree, and that disagreement does not appear on WARP or at 1.4375, 3.75, or the negative control. The negative control (
clamp=1.5625with a swapped mip expectation, printed asmip=0) behaves identically on both backends, so the control itself is not adapter-dependent.What I did not do
release, and I did not vary the filter or gradient dimension, so I cannot say whether the boundary rounding is specific to the bilinear path.If the useful next step is a minimal reproducer rather than a report, say which of the two readings you want tested first — the boundary rounding (
1.5,1.5625, plus1.4999and1.5001on both backends) or the expectation source — and I will run that on the same commit.Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T16:47:00Z.
Correction to my previous comment. I misread the fixture's output and reported an anomaly that is not there. Retracting the "the shader disagrees with itself" and "first difference at clamp 1.5" framing.
What the lines actually are.
point_mip()intests/spirv_window/minlod_levels.pywalks the accepted mip set for a clamp in order, printing oneclamp=… mip=…line per attempt, and a failed attempt printspixel_mismatch x=0 y=0plus the renderer'sAOT color export differs from CPU referenceline.selected_mip=is the candidate that matched. AndFRACTIONALis declared aswith the comment "listing nearest first" — clamps
1.5and1.5625are expected to land on either mip 2 or mip 1, because adapters differ in which side of the boundary they round. So on the Arc, candidate 2 mismatched and candidate 1 matched, and the fixture passed; on WARP candidate 2 matched immediately. Both are inside the accepted set. My reading turned a two-candidate search into a self-contradiction, and I should have readpoint_mipbefore writing the report.What survives from that run, as data rather than a defect:
That is an adapter-level split in which accepted mip a fractional MinLod clamp resolves to: Intel Arc takes the lower side at both boundary clamps, WARP takes the upper. Translated and direct-HLSL control agree on each adapter (
selected[clamp] != levelraises), so it is not an AOT-versus-control difference. All eight registered cases pass on the Arc; I did not runrelease, and I did not vary the filter.I am not claiming this is the discrepancy #809 is looking for: the fixture was written to accept both answers, so nothing failed. If you want this recorded, the useful form is probably a one-line statement in the section that already documents the per-adapter MinLod behaviour, and I can draft it — but I would rather you decide whether "which side of the boundary" belongs in the document at all, since recording it as an expectation would turn today's tolerance into a future failure for the next adapter that picks differently.
Sorry for the noise. The check I skipped was reading
point_mipand the accepted-set declaration; both are ten lines from the print I quoted.Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T19:04:19Z.
Polaris coverage for the public MinLod fixtures. I tested
330df7f09158dc05835784c70b22e16b00d1ec74on Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with/EHa, Windows SDK 10.0.26100 and DXC 1.9.2609.5. The tools came from the pinned setup script: SPIRV-Tools v2025.5 (262bdab4) and SPIRV-Cross57e4efcwith the project's MinLod patch.spirv_minlodspirv_minlod_exactspirv_minlod_levelsspirv_minlod_fractionalEight passes, zero failures, zero skips. The exact fixture matched mip 1 at clamp 1, and the integer point cases matched mips 0, 1, 2, and 3 at the corresponding clamps. For fractional clamps 1.4375, 1.5, 1.5625, and 3.75, the translated shader and direct HLSL control selected mips 1, 2, 2, and 3 on both adapters. The intentional negative controls behaved as expected.
Source-built fixtures only. Codex assisted with setup, testing and reporting.
Imported from R0Y00/Xbox2Windows. Originally posted by cawnr912 on 2026-11-24T19:33:35Z.
AMD integrated-GPU coverage for the public MinLod fixtures (RDNA 2 iGPU, device 164e), with an RTX 5070 and WARP on the same machine as controls.
Environment
mainatddeaa5ebd11cfc03248c72e5d0dbbe7d005bd20b, clean tree,devpreset (Debug)tools/setup-spirv-tools.ps1: SPIRV-Tools v2025.5 (262bdab4), SPIRV-Cross57e4efcwith the project MinLod patch1002:164e), driver 31.0.24002.9210de:2f04), driver 32.0.16.21241414:008c), 10.0.26100.9818Commands
Results
spirv_minlodspirv_minlod_exactspirv_minlod_levelsspirv_minlod_fractional12 passes, 0 failures, 0 timeouts, 0 capability skips.
The Radeon iGPU picks the nearest mip at the 1.5 and 1.5625 boundaries, the same as the RX 7900 XTX, the RX 9060 XT and current in-box WARP. It does not follow the Arc 140T and Windows 10 WARP, which round down to
floor(clamp). The wrong-mip control at 1.5625 rejected mip 0 on all three backends.Scope
These are the registered fixtures only. I did not run the
ps_6_0five-clampSampleLevelsweep or the mip-linear half-step sweep from earlier comments, because neither is a registered test. If you'd like one of them on this iGPU, point me to the probe or its arguments and I'll rerun it.Imported from R0Y00/Xbox2Windows. Originally posted by cawnr912 on 2026-11-24T19:48:43Z.
Follow-up to my MinLod comment above. I ran both of the sweeps the earlier RX 9060 XT comment ran, on the RDNA 2 integrated GPU (
1002:164e), with in-box WARP on the same machine as the control. As far as I can tell, this is the first RDNA 2 and first integrated-GPU data for either sweep. The RX 6600 report did not run them.Environment
Same as my previous comment:
mainatddeaa5ebd11cfc03248c72e5d0dbbe7d005bd20b, Windows 11 build 26200.9974, DXC 1.9.2602.17, pinned SPIR-V tools, AMD Radeon(TM) Graphics (1002:164e) driver 31.0.24002.92, WARP 10.0.26100.9818. The D3D12 debug layer was unavailable on both.Command
This uses the uncommitted
minlod_sweep.pyfrom the RX 9060 XT comment above, unmodified (SHA-256a54d85fa8d9cf28ec1e9da372305ef4e82c2a0bd244561f892b6565804ec4627for the code block as posted). It reusesminlod.spvasmandminlod_control.hlsland compiles atps_6_0.Both runs exited 0.
Five-clamp point sweep (
MIN_MAG_MIP_POINT,ps_6_0)At every clamp, exactly one mip matched all 64 pixels with zero error. The translated shader and the HLSL control agreed in every cell. The Radeon reads the nearest mip for both forms, which matches the RX 9060 XT and is not the
floor(clamp)behaviour of the Arc 140T or Windows 10 in-box WARP.Half-step sweep (
MIN_MAG_POINT_MIP_LINEAR, MinLod,ps_6_0)The sweep covers 22 points with clamp = 1 + weight/256. The table shows the blue word of pixel (0, 0).
3e980000)3e980000)3e980000)3e980000)3e980000)3e980000)3e9a0000)3e9a0000)3e9a0000)3e9a0000)3e9c0000)3e9c0000)3f340000,3f330000,3f320000), with nok·256/65535offset.Not measured
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-24T19:57:54Z.
RX 9060 XT (RDNA 4) rerun with the fixture from #1059, which was not in my earlier report on this adapter (https://github.com/R0Y00/Xbox2Windows/issues/809#issuecomment-7111499476). No mismatch to report: all eight registered cases pass in 3 of 3 runs. Data only.
68969ed86ac253615a910d24abd0177938584bd0(main), clean tree,devpreset (Debug)1002:7590), driver32.0.32029.2010; in-box WARP10.0.26100.100681.9.2602.17 (21d28f727)debug_layer=unavailableon every draw), so no debug diagnostics are claimedtools/setup-spirv-tools.ps1, passed to CMake asSPIRV_WINDOW_AS,SPIRV_WINDOW_VALandSPIRV_WINDOW_CROSSspirv_minlodspirv_minlod_exactspirv_minlod_levelsspirv_minlod_fractionalNo capability skip. The lines each test prints were identical across the three runs.
spirv_minlod_exact_hardware(ps_6_0), translated shader and direct HLSL control alike: clamp 1 reads mip 1 withpixels=64 channels=256 max_absolute_error=0, and the stale mip-2 control fails at pixel(0, 0), first differing channel 1 (expected_bits=00000000 actual_bits=3f800000).spirv_minlod_fractional_hardware, translated and control alike: clamps 1.4375, 1.5, 1.5625 and 3.75 select mips 1, 2, 2 and 3, each withmax_absolute_error=0. At 1.5 and 1.5625 the first candidate (mip 2) matched, so this adapter is on the upper side of the boundary, as in my earlier report.One adapter, one driver.
AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T15:33:10Z.
The UHD 770 point-filter measurement is complete. #2412 adds the two fractional lower endpoints and an exact mip-2 anchor. Runnable sweep.
With the four solid-color mips, the same coordinates and point sampler, translated SPIR-V and direct HLSL matched over all 64 pixels at every sampled clamp. I first checked the existing integer/exact and mip-linear cases, then swept [1, 2] at 1/16 spacing and the region where the selected mip changed at 1/256 spacing.
Rounding only the translated shader's clamp to the nearest 1/128 before SPIR-V assembly passed the original four fractional cases on every adapter. The new cases caught mip 2 versus mip 1 at 1.99609375 on the UHD and 1.49609375 on RTX and WARP. The deliberate mip-0 reference at clamp 1.5625 failed at pixel (0, 0), channel 0, on all three. This measures a transition on the sampled grid.
Source base
7092683a, Windows 11 build 26100.9711, DXC 1.9.2609.5 at-T ps_6_6 -E main, SPIRV-Tools 262bdab4 and patched SPIRV-Cross 57e4efcc. The local debug layer was unavailable. Hosted WARP with the debug layer also rejected the rounded shader only after adding the new inputs.Imported from R0Y00/Xbox2Windows. Originally posted by JVProg on 2026-11-25T19:43:08Z.
Public MinLod fixtures on RX 9070 XT, with in-box WARP
Environment
mainatc00697b103f0808283cb92e4b4fe16c6967cac80, clean tree,devpreset (Debug)tools/setup-spirv-tools.ps1: SPIRV-Tools v2025.5 (262bdab4), SPIRV-Cross57e4efcwith the project MinLod patch1002:7550), driver 32.0.32029.2010Commands (after
tools\dev.ps1;$bis the tool directory printed by the setup script, with forward slashes)Results: 3 runs, 8/8 passed in each, no skips. The per-test output lines (excluding timeouts and temp paths) were identical across the three runs.
spirv_minlodspirv_minlod_exactspirv_minlod_levelsspirv_minlod_fractionalPoint filtering, fractional clamps (
ps_6_6), same selection for the translated shader and the direct HLSL control on both adapters:On these sampled points the RX 9070 XT changes from mip 1 to mip 2 between 1.49609375 and 1.5, like the RTX 4060 and WARP rows in the UHD 770 measurement, and unlike the UHD 770, which still read mip 1 at 1.99609375 there. I ran only the registered clamps, not the finer 1/256 sweep.
Mip-linear (
ps_6_0): all nine blend clamps passed within the fixture tolerance. The largest reported errors were 0.00195312 at clamp 1.001953125 and 0.000781298 at 1.3; the other seven were 0. The first-pixel bits were the same on the RX 9070 XT and WARP, and matched between the translated shader and the control.Negative controls: the wrong-mip and wrong-blend references failed at pixel (0, 0) as expected, on both adapters.
No mismatch to report. This is an adapter data point only; it does not explain the differences seen in the original archive records.
AI-assisted (Claude Code): the commands were run locally on my machine.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T19:49:04Z.
Thanks for the matched RX 9070 XT and WARP runs. The translated and direct controls selected mip 2 at 1.5 on both, and the wrong-mip and wrong-blend controls still failed. That adds an RDNA 4 comparison for the tighter UHD 770 boundary in the linked report. Please keep that split as an adapter observation. The open comparison is a source-built case that reproduces one of the original finite differences between the translated and direct paths.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T01:00:15Z.
I’ll compare the public
Grad|MinLodform with direct HLSLSampleGradon the UHD 770, RTX 4060 and WARP. I’ll keep the four colored mips, UV, linear mip filter and clamp fixed, and vary the explicit gradient across the point where it overtakes the clamp. The existing Grad smoke uses one small gradient. I’ll start with exact power-of-two gradients, include a wrong-gradient control, and report the measured range or first same-adapter difference.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T01:10:07Z.
I found no same-adapter difference for the public explicit-gradient form over this range. I compared SPIR-V
OpImageSampleExplicitLod … Grad|MinLod dx dy clampwith direct HLSLSampleGrad(s, uv, dx, dy, int2(0,0), clamp). The four solid-color mips, UV (0.25, 0.25) and mip-linear sampler stayed fixed. The only gradient component varied was the common scaleg, withdx=(g,0)anddy=(0,g).g=0.125, 0.25, 0.5covered three exact power-of-two footprints.g=0.125, 0.25, 0.34375, 0.3515625, 0.353515625, 0.353553390593, 0.35546875, 0.359375, 0.375, 0.4375, 0.5covered both sides of the crossing. Each gradient was rounded to float32 before assembly and HLSL compilation.The independent reference interpolated the four known mip colors at
max(clamp, log2(8*g)), with the existing 2/256 absolute per-channel tolerance. All 84 draws wrote color and passed. There were no clear-only draws, skips or timeouts. I also captured the 64×4 raw float words per frame and compared the two paths on the same adapter. All 42 pairs were bit-identical (10,752 channel comparisons).For example at clamp 1.5 / gradient 0.375, the first green/blue words on WARP and Intel were
3ed40000 / 3f160000. On the RTX they were3ed400d4 / 3f15ff96. Each device returned its own pair through both paths. With clamp 1 and gradient 0.5, deliberately expecting mip 1 instead of mip 2 failed all six draws at pixel (0,0), first differing channel G, expected 1 and actual 0.The runs used Windows 11 build 26100.9711, debug layer unavailable, source at
f40691e7, public rendererc601e6e9, SPIRV-Tools262bdab4(Vulkan 1.2), patched SPIRV-Cross57e4efcc(shader model 60) and DXC 1.9.2609 (-T ps_6_0 -E main). For the raw comparison I enabled the existingdraw_verifiedraw-output argument on the same mip-blend draw in a local build. Its first pixel matched the public renderer on every draw.This exercise also found a gap in the Grad smoke test: discarding the explicit gradients still passed all four existing cases. PR #2663 supplies a case where the gradients select mip 1 above a floor of 0. With gradients dropped, red replaces green at pixel (0,0) on all three devices. The original twelve cases with finite differences remain unresolved.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T01:27:35Z.
The gradient-above-floor case is now on main in #2663 (
31bcd9ad). On the reviewed head, WARP and RTX 4060 Laptop both matched all 64 pixels. Replacing the new sample with an implicit sample at the same floor produced red instead of green at (0,0) in my WARP control. The contributor’s 42 bit-identical same-adapter pairs cover the tested explicit-gradient range. This issue stays open for a source-built case that reproduces the original translated/direct difference.Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-27T01:53:39Z.
Intel Arc A770 MinLod comparison
Windows
26300.10075, Release atd3e3ea776e4fb32401f1eed3dc109fb477d9cbd8, DXC1.9.2602.17, pinned SPIR-V tools and MinLod-patched SPIRV-Cross. A7708086:56a0/32.0.101.9175and WARP10.0.26100.10068. The debug layer was enabled and reported zero errors and warnings throughout.I repeated the four registered MinLod cases three times per backend (
^spirv_minlod(_exact|_levels|_fractional)?_<backend>$). A770 12/12 passed; WARP 12/12 passed; no CTest skips.For clamps
1.5,1.5625and1.99609375, both the translated shader and direct HLSL selected mip 1 on the A770 and mip 2 on WARP in all three repeats. Both mips are accepted by the pinned fixture for these clamps. These runs show a backend-dependent mip choice with agreement between both shader paths on each backend. This pin predates the later explicit-gradient addition. Source-built fixtures only. AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-27T03:23:07Z.
RX 7900 XT / WARP MinLod comparison
Source-built public fixtures at
a4fae199517158fd443bfdd450f476b2c7b5f4c1, cleanmain, Debug (devpreset), Windows 10 build 19045.6466, Windows SDK 10.0.26100.0 DXC 1.8.2502.11. RX 7900 XT (1002:744c), driver 32.0.32029.2010; in-box WARP 10.0.19041.5794. D3D12 debug layer unavailable. SPIRV-Tools262bdab4/ Headersb824a462, SPIRV-Cross57e4efcwith the repository MinLod patch.Results: three registered MinLod cases passed on each adapter, with one capability skip per adapter.
The implicit, bias, explicit-gradient, and gradient-above-clamp positive cases each matched all 64 pixels (256 channels) exactly. The no-clamp control detected a mismatch. Exact and multi-level fixtures also passed, including direct HLSL controls and deliberately wrong mip/blend expectations. The fractional point-filter fixture requires ps_6_6; both adapters reported that SM 6.6 is unavailable in this Windows 10 environment. The initial strict run with X2W_REQUIRE_SPIRV_TOOLS=1 converted these capability skips into failures. Rerunning only those two tests with that variable unset confirmed exit 77 / CTest SKIPPED. This is not a successful fractional-point-filter measurement.
No reproduction of the original translated/direct finite difference in the supported stock fixture range. The fractional point-filter question remains open on this machine. No game inputs.
Buhe (@xiaoqi72665). AI-assisted; tests executed on local hardware.