spirv_sampler_views_hardware: 'Split sampler readback mismatch' on Intel Arc 140T, passes on RTX 5080 and WARP #1108
Open
opened 2026-11-24 01:14:02 +00:00 by ChazY11
·
11 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#1108
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 ChazY11 on 2026-11-24T01:14:02Z.
Summary
spirv_sampler_views_hardwarefails on one adapter (Intel Arc 140T) and passes on the other two I can reach(NVIDIA RTX 5080 Laptop, WARP). Reported separately from #768 and #809 as the comment there promised; if the cause
turns out to be shared, close or merge as you prefer.
Reproducer
Build: source
110e186(working tree24d5a0c, docs-only diff),devpreset, SPIR-V tools fromtools/setup-spirv-tools.ps1passed to CMake as-DSPIRV_WINDOW_AS/VAL/CROSS.The same command with
XBOX2WINDOWS_ADAPTER = 'NVIDIA'and with the variable unset (*_warp) passes, so the fixtureitself is green on those two backends and the difference is confined to this adapter.
Environment
Notes
value (
0.25 0.25) and the comparison result (0 0). I have not yet established whether the mismatch is in thesampled value, the comparison result, or a later slot, because the message does not name the word.
max_view_descriptor_heap_size=1000000is the largest value I have seen across the three adapters here; I do notknow whether the fixture asserts anything against it.
spirv_compaction_hardware→ nondeterministic direct readback,spirv_minlod_fractional_hardware→ translated clamp reads mip 1 instead of 2); they are filed in #768 and #809.What I need to continue
backends and say whether the sample value or the comparison result differs.
adapter reports 32 in the bridge path and 16 in the direct-HSLSL path of #768's fixture.
Completion condition: either the fixture passes on this adapter, or the repository records the adapter-specific
behaviour (and the fixture reports what it measured instead of failing silently on the first mismatch).
No game files, dumps or distribution links are involved; the fixture builds its own textures, samplers and
coordinates.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:27:34Z.
The
swap 0reference intests/spirv_window/sampler_readback.cppis[0.25, 0.75, 0, 1]. Your Arc readback[0.25, 0.25, 0, 0]therefore differs at zero-based words 1 and 3: the second ordinary sample and the second comparison both repeat the first result. The descriptor-heap limit is printed as context. This assertion compares only the four values above, and the source has no wave-width-dependent operation.Please keep this report separate from #768 and #809. A useful follow-up is a direct-HLSL comparison on the same Arc adapter: make the two bindings explicit without using the SPIR-V split, keep the existing two textures and all sampler-swap cases, and record the four words for each mask with the same DXC. That distinguishes a result tied to the translated shader from one reproduced at the descriptor/readback layer. The current Arc result remains a failure.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T01:36:06Z.
Direct-HLSL comparison on the Arc: it passes, and the difference between passing and failing is one line
Followed your request: same Arc adapter, same two textures, all three sampler-swap cases, the same DXC
(1.8.2502.11,
cs_6_0), and two sampler bindings written out by hand instead of produced by the SPIR-V split. Thedescriptor tables are exactly the ones
sampler_readback.cppbinds (SRVt0, UAVu0,s1space 0,s1space 3),and the shader keeps the fixture's inputs: UV (1.25, 0.5), LOD 0, depth reference 0.5, two threads, the same
sixteen-byte output, words 0/1 ordinary sample, words 2/3 comparison.
Direct HLSL with the two bindings explicit
So the Arc reproduces
[0.25, 0.75, 0, 1]and the two documented swaps when the bindings are explicit. Thedescriptor heap, the readback buffer and the D3D12 binding layer are not where the difference comes from.
Two bisects that narrow it further
Each sampler table read alone, still direct HLSL, still on the Arc:
Then the same shader as above with one line changed — the sampler-array index taken from
SV_GroupIDinstead ofSV_DispatchThreadID, everything else identical:That is the same four words the split shader produces on the Arc, and the split shader indexes its samplers with
gl_WorkGroupID.x:What this says
SV_DispatchThreadIDthe samebinding layout and the same word layout are correct on this adapter.
SV_GroupIDonIntel Xe2: group 1 reads descriptor 0. Whether the driver folds that index as uniform, or the descriptor is
read once per dispatch and reused, I cannot tell from the outside.
SPIRV-Cross emits only
SamplerComparisonState _3[2] : register(s1, space0)and turns the ordinary sample intoSampleCmpLevelZerowith reference 0.0, which is why the split exists. I could not use the unsplit module as acontrol for that reason.
The current Arc result remains a failure; I am not proposing that the expectation change. I kept the report separate
from #768 and #809 as you asked.
If you want this in the repository
Two small files would cover it: a
sampler_control.hlslwith the explicit bindings, and a switch in the driver thatcompiles the same shader with either
SV_DispatchThreadIDorSV_GroupID, reporting the four words per swap forboth. That turns the one-line isolation above into a regression the suite can hold, and it costs no new binary
fixtures. Say whether you want it as a PR, or as a registered
help wanteditem for someone else.Nothing from the game is involved: the texture, the depths and the coordinates are all generated by the fixture, and
the four values above are produced by the repository's own readback path.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T01:47:44Z.
The group id is correct on this adapter; it is the descriptor index derived from it that collapses
One more cut at the isolated line, because it changes where the problem sits. Same shader as my control, but it also
stores the group id it actually observed, so the value and the index are separated:
Two groups, one thread each, through
--raw-uav-dump 2, same tables (s1space 0,s1space 3):So on the Arc the shader sees group 0 and group 1 correctly — the second word really is 1 — and yet the sample
taken with
ordinary[1]is the wrap sampler's result,0.25, i.e. descriptor 0. The comparison pair behaves the sameway (
0, 0on the Arc against0, 1elsewhere).That rules out a wrong
SV_GroupIDand points at the sampler descriptor read: the index value is right, the descriptorit selects is not. Indexing by
SV_DispatchThreadIDin the same shader selects the right descriptor on all threeadapters (verified earlier), and reading one table alone with a per-thread index is also correct, so the collapse
needs both the group-id-derived index and the descriptor array.
I do not know whether the compiler hoists the descriptor load out of the group or the driver maps the index, and I am
not claiming either. If it is useful, the next probe would be a constant index (
ordinary[1]written literally) on thesame adapter to see whether a literal index survives, which separates "the index expression" from "any non-thread
index" — say the word and I will run it; it is the same harness and takes a minute.
Nothing changed in the repository; this is a probe from my own driver, and the Arc result remains a failure.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:53:14Z.
Yes, please send the focused control PR. Keep the descriptor tables, shader model, output indexing and all three swaps. Change only the descriptor index source between the two builds and print expected and actual words per swap. Preserve the strict translated-path failure on Arc. Use the direct SV_DispatchThreadID result as the passing control and record SV_GroupID reproduction with the adapter, driver and DXC. #1133 can record the current measurements separately.
Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T11:24:32Z.
A passing AMD data point for
spirv_sampler_views_hardware, so the failure stays confined to the Arc 140T among the adapters reported here. Data only.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=1Result, 3 of 3 runs
Swap 0 reads
0.25 0.75and0 1, where the Arc reads0.25 0.25and0 0. In the same session, all 14spirv_.*_hardwaretests passed on this adapter.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:51:05Z.
Thanks for the RX 6600 retest. It preserves the swap-0 split on this driver (ordinary 0.25/0.75 and comparison 0/1), while the Arc 140T report still collapses both outputs. Please keep the original strict case. If you want to add this to the existing sampler-view notes, link both reports and keep the driver/lowering explanation provisional.
Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T19:25:27Z.
Independent Polaris comparison for the split-sampler readback fixture.
Tested upstream
82749f0f84d9f8b571566fdf564d530e71f499aaon Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with/EHa, Windows SDK 10.0.26100, DXC 1.9.2609.5. Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP: Microsoft Basic Render Driver (1414:008c), version 10.0.26100.9818. The D3D12 debug layer was unavailable on both adapters. SPIRV-Tools v2025.5 (262bdab4) and SPIRV-Cross57e4efcwith the project patch were selected from the pinned setup.Both tests passed, with zero failures or skips. Both adapters produced the same sample/comparison pairs in both table variants: baseline (0.25, 0.75 / 0, 1), regular sampler swap (0.75, 0.25 / 0, 1), comparison sampler swap (0.25, 0.75 / 1, 0). The level-of-detail query passed too. The reported split-sampler mismatch did not reproduce in this RX 590 run.
Source-built fixtures only. Codex assisted with testing and reporting.
Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-25T05:57:38Z.
Independent RTX 2070 Max-Q and WARP comparison: all 12 functional CTests passed (four registered tests, three repetitions each).
Environment
67758cbaa6602a09244f92647551c1ff2b21ffda, clean tracked tree before and after the session.10.0.26300/ build26300; Intel Core i9-10885H.10de:1f14), driver32.0.15.8129.1414:008c), driver10.0.26100.10068.19.44.35230for x64, Windows SDK10.0.26100.0, DXC1.9.2602.17, Python3.13.15.tools/setup-spirv-tools.ps1: SPIRV-Tools262bdab48146c937467f826699a40da0fdfc0f1a, SPIRV-Headersb824a462d4256d720bebb40e78b9eb8f78bbb305, SPIRV-Cross57e4efcc84112abcd426dc5ec248b5339bee04f2with the repository's MinLod patch. Passed to CMake asSPIRV_WINDOW_AS/VAL/CROSS;X2W_REQUIRE_SPIRV_TOOLS=1for every CTest.Results
spirv_sampler_views_hardwarespirv_sampler_views_warpsampler_index_control_hardwaresampler_index_control_warpAll tests ran serially with
--no-tests=error --parallel 1 -V, selecting one exact registered name at a time and recording a separate JUnit file and native process receipt. The hardware tests explicitly selectedXBOX2WINDOWS_ADAPTER=RTX 2070; that variable was unset for WARP. The measured adapter names in the logs agree with those selections.Both backends produced the following words in every repetition:
0.25 0.750 10.75 0.250 10.25 0.751 0The translated fixture passed both the plain and renamed table variants and its level-of-detail query. In the direct-HLSL control, both
control=dispatch_threadandcontrol=group_indexprinted matching expected/actual words for all three swaps on both backends. In particular, the group-index diagnostic was inspected separately from the CTest outcome, since that diagnostic can differ without failing the registered control test.Representative direct-control output (same result on RTX 2070 and WARP):
All 12 process exits were zero, with no JUnit failures/skips, outer timeouts, or device-loss diagnostics recorded. The executable, CMake cache and three SPIR-V tool hashes were unchanged before/after the session.
Validation limit
debug_layer=unavailableon both backends throughout this session. Debug error/warning counts were not available, so this is functional readback evidence without debug-layer validation. Windows Graphics Tools is being installed separately for possible future debug-enabled testing; no such rerun is included in these measurements.This adds an NVIDIA/driver/compiler comparison point. The DXC version differs from the original Arc report, no Intel adapter was tested in this session, and these results do not establish an Arc fix or isolate the underlying cause. The existing strict fixture assertions were preserved.
Source-built fixtures only; no game files. Hardware execution was performed on my laptop. AI-assisted: Codex helped prepare the collector, review the captured logs/JUnit/hash records, and write this report.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T15:18:00Z.
Intel UHD Graphics 770 (8086:a780, driver 32.0.101.5973) also reproduces the split first reported on Arc 140T. The strict fixture diagnostics, a missing-store regression, and the device measurements are in #2406.
With project-pinned SPIRV-Tools and patched SPIRV-Cross, DXC 1.9.2609.5, both ordinary and renamed sampler-table programs on the UHD 770 produced:
The two wrong words are indices 1 and 3 in each swap. The paired direct shader with fixed dispatch-thread output addressing passed all three swaps with the dispatch-thread sampler index, and reproduced all three rows with the group index (embedded DXC 1.9.2602.17). RTX 4060 (32.0.15.9579) and WARP (10.0.26100.9711) matched all four words for both translated tables and both direct controls. The local debug layer was unavailable.
I also changed only
BuiltIn WorkgroupIdtoBuiltIn GlobalInvocationIdin copies of both split SPIR-V compute modules, then reassembled, validated, translated and compiled each. With this fixture'sLocalSize 1 1 1, the two IDs describe the same invocation coordinates. Both variants then passed all three swaps on all three adapters. In a separate control retainingSV_GroupID, wrapping both emitted sampler subscripts inNonUniformResourceIndexset the non-uniform flag on both DXIL sampler handles, but Intel still differed in the same six words per table. The original group-index case remains strict in #2406.Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-26T11:50:26Z.
Independent Intel Arc A770 run of the source-built sampler fixtures, using the merged upstream harness at
d3e3ea776e4fb32401f1eed3dc109fb477d9cbd8(PR #2406).Result: the A770 reproduces the sampler-readback mismatch, and its direct-HLSL dispatch-thread control also fails on swap 0. This is a separate GPU generation from the previously reported Arc 140T/Xe2 and UHD 770 results.
spirv_sampler_views_hardware: failed 3/3 on A770. Both plain and renamed table variants produced the same wrong words (zero-based 1 and 3) for all three swaps. For the plain table, expected sample/comparison pairs were (0.25, 0.75 / 0, 1), (0.75, 0.25 / 0, 1), (0.25, 0.75 / 1, 0); observed (0.25, 0.25 / 0, 0), (0.75, 0.75 / 0, 0), (0.25, 0.25 / 1, 1). The renamed table matched these results.sampler_index_control_hardware: failed 3/3. The direct-HLSLSV_DispatchThreadIDcontrol already differs on swap 0: expected0.25 0.75 0 1, actual0.25 0.25 0 0. The registered test exits at that first failure, so this run does not establish the A770 result for the later swaps or itsSV_GroupIDdiagnostic.This expands the reproduced result to an Arc A770, but the dispatch-thread-control difference means it does not by itself isolate the fault to group-ID indexing. It is a synthetic source-built fixture, not a game test or a confirmed root cause. I have the complete run ZIP and manifest if useful; no game files are involved. AI-assisted: Codex helped run/review the test and prepare this report.
Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-26T12:23:30Z.
Follow-up to my earlier Arc A770 report: completed a targeted sampler isolation run at the same upstream source revision (
d3e3ea776e4fb32401f1eed3dc109fb477d9cbd8, #2406).Environment: Arc A770 (8086:56a0), driver 32.0.101.9175, Windows build 26300.10075, DXC 1.9.2602.17. The source pin, renderer and compiler matched the previous run; inputs were unchanged before/after.
All 42 planned executions were recorded, with consistent outcomes across all three repetitions. The four failing A770 variants returned the same duplicated sampler values across all three swaps, affecting words 1 and 3. The two passing split-sampler variants returned all expected ordinary and comparison values. The uniform root-constant fixture also passed its forced-zero control.
The compiled DXIL confirms that both explicitly qualified sampler handles carry the non-uniform flag. The annotation alone therefore does not resolve the observed A770 mismatch. The successful controls narrow the observed compatibility issue, but do not establish the underlying driver/compiler cause or a general production fix.
The registered CTests and upstream source were not modified for this isolation run. Debug layer unavailable on both backends; results are functional readback evidence only. I have the full run archive, including per-run logs, CSV, manifest and compiled shader text, available on request.
Source-built synthetic graphics fixtures only; no game files. AI-assisted: Codex helped prepare the collector, review the captured results and write this report.