sampled_coverage_hardware: Intel UHD Graphics counts discarded samples in the full-draw occlusion query #731
Open
opened 2026-11-22 23:58:42 +00:00 by romn4rch
·
9 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#731
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 romn4rch on 2026-11-22T23:58:42Z.
Question
On an Intel UHD Graphics,
check_sampled_coverage(tests/pixel_aot_render.cpp) reads 64 from the occlusion query around the full 8×8 draw in every case. That includes the cases where the shader discards every pixel. The 64 one-pixel scissored queries that follow are exact. NVIDIA and WARP on the same host match the reference. Under what condition does the full-draw count include discarded samples on this adapter? Should the fixture record this as an adapter exception?Evidence so far
At
787ace7,sampled_coverage_hardwarefails withFull draw coverage mismatchin 3 of 3 runs (ctest --preset dev --no-tests=error -R '^sampled_coverage_hardware$' -j 1 -VwithXBOX2WINDOWS_ADAPTER=Intel). The coverage block intests/pixel_aot_render.cpp,tests/sampled_coverage_check.pyandtools/sampled_coverage_aot.pyare unchanged on currentmain.The test stops at the first draw and does not print the count. Locally (not committed), I added one
printfofcounts[0],counts[1]and the per-pixel sum before the full-draw check, then rebuiltoffscreen_check. I then ran all 13 draws thattests/sampled_coverage_check.pymakes: groupsmain,redandred_base2. Each draw ran three times on Intel and once each on NVIDIA and WARP:mainmainmainmainmainmainmainmainmainmainredredred_base2Measured:
So on this adapter, the full draw counts every covered sample whether or not the shader discards it, while a one-pixel scissored draw of the same shader counts correctly. The count is also not the number of samples in 2×2 quads that keep a live pixel; that would be 44 in the first row.
Inference: none yet about the cause. The generated pixel shader has no outputs and rejects pixels only through
discard. The full draw is also the first draw afterClearRenderTargetView, and the only one with the full scissor, so these conditions cannot be separated from this data.Completion condition
Separate the candidates on this adapter with three local variants of the same 13 draws:
discard.If (a) or (b) gives the reference sum, the miscount belongs to the first draw after the clear. If only (c) does, it belongs to a shader without outputs. If none does, it belongs to the full-extent draw.
The fixture then gets either a documented Intel exception in
docs/experiments.mdor a measurement change the maintainers accept. I can run (a)–(c) on this machine and bring back the counts for all 13 draws, with NVIDIA and WARP as controls.Required environment
Windows x64 and a source build, with the Intel UHD Graphics above or another adapter that fails
sampled_coverage_hardware. No game files.8086:468B), driver32.0.101.7026.10DE:25EC, driver32.0.16.2114) and WARP10.0.26100.10068.Checklist
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T00:26:43Z.
Please run the three variants as separate diagnostics on the same build and adapter. Record the full-draw count, sum of the per-pixel queries and color readback where the variant supplies one, with WARP and NVIDIA controls. The current full-draw mismatch should remain a failure. The fact that per-pixel queries agree helps localize it, but we need the first-draw and shader-output comparisons before changing the measurement or adding an adapter exception.
Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-23T14:27:28Z.
Follow-up: first-draw and shader-output comparisons on one build, with NVIDIA and WARP controls
Source:
34d03c7(mainat the time of the run). A local build ofoffscreen_check(not committed) adds a late query, an optional warm-up draw, an optional copy of the target after the first full draw, and the printing. The full diff is at the end. Each variant is switched on by an environment variable, so all five modes ran the same binary. The Intel driver is now 32.0.101.7092.basebaselateX2W_COV_LATE=1: the same full draw is measured again by a query recorded after the 64 one-pixel queries (query index 65, full scissor set again).warmupX2W_COV_WARMUP=1: one full draw without a query before the first full-draw query.colorfloat4(product, 0.0f, 0.0f, 1.0f)asSV_Targetnext to itsdiscard. Prints a map of the pixels that differ from the clear color after all draws.colorfirstcolor, plusX2W_COV_FIRSTCOPY=1: the target is also copied right after the first full draw.Each mode ran the 13 draws that
tests/sampled_coverage_check.pymakes: twice on Intel, once each on NVIDIA and WARP. A value matches when it equals the reference sum, the CPU coverage of the case. A map matches when it equals the reference coverage map.baselatewarmupcolorcolorfirstThe 8 Intel matches in the first three modes are the draws whose reference is 64. Both Intel runs gave the same values, and the upper 32 bits of every query were 0.
Per draw on Intel (first full draw, unless noted):
baselate: first / latewarmupcolorcolorfirst: count / pixels written by the first drawmainmainmainmainmainmainmainmainmainmainredredred_base2What this separates (no cause claimed):
In
colorandcolorfirst, the fixture's existing image check fails on all three adapters, with the firstpixel_mismatchat x=0, 4 or 5, y=0. Its reference image expects the clear color where the variant now writes; draws whose reference is 0 still pass. This comes from the variant, not from the adapter. Nothing here changes the fixture, and the full-draw mismatch stays a failure onmain.Commands. The pixel shaders are the sources from
tests/sampled_coverage_check.py, compiled withdxc -T ps_6_0 -E main. In thecolormodes only the entry signature changes and the return shown above is added. Each case then runsoffscreen_check.exe hardware --sampled-coverage <ps.dxil> <case.bin>withXBOX2WINDOWS_ADAPTERset toIntelorNVIDIA, oroffscreen_check.exe warp --sampled-coverage <ps.dxil> <case.bin>.Environment. Windows 11 build 26300.10075, MSVC 19.44.35230, Windows SDK 10.0.26100, DXC 1.9.2602.17. Intel(R) UHD Graphics (
8086:468B, driver 32.0.101.7092); NVIDIA GeForce RTX 3050 6GB Laptop GPU (10DE:25EC, driver 32.0.16.2114); WARP 10.0.26100.10068. Debug layer unavailable on all three (Graphics Tools not installed).Local diff used for all five modes (
tests/pixel_aot_render.cppat34d03c7)AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T14:42:14Z.
The new Intel results pin down two useful controls: the no-output shader's late query matches all 26 draws, and the color variant matches both the first query and its first-draw pixel map. The regular full-draw mismatch should remain a failure.
The late run changes both recording order and query index. Can you swap slots 0 and 65 while leaving the command order unchanged, initializing both slots once? A second run with the two full queries adjacent, before any one-pixel queries, would show whether the scissored sequence matters. Please keep the no-output shader for both comparisons and report the two full counts alongside the one-pixel sum. A focused measurement record with your exact driver and commands is welcome.
Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-23T16:25:40Z.
Follow-up: indices 0 and 65 swapped, and the two full queries adjacent (no-output shader), with NVIDIA and WARP controls
Source:
c639a01(mainat the time of the run).tests/pixel_aot_render.cppis unchanged on currentmain. Same host and drivers as the previous follow-up. A local build ofoffscreen_check(not committed) changes only howdraw_verifiedrecords the two full-draw queries. It also prints both full counts and the one-pixel sum before the fixture's own checks. The diff is at the end. Each mode is switched on by an environment variable, so all four modes ran the same binary. The pixel shader is the fixture's own no-output shader in every mode.baselate,X2W_COV_LATE=1swap,X2W_COV_SWAP=1lateadjacent,X2W_COV_ADJACENT=1Each index is begun and ended once per command list, and the one-pixel queries keep indices 1–64. Each mode ran the 13 draws that
tests/sampled_coverage_check.pymakes: twice on Intel, once each on NVIDIA and WARP. A count matches when it equals the reference sum, the CPU coverage of the case.baselateswapadjacentbase: empty, 0base: empty, 0The 8 Intel matches of the first query are the draws whose reference is 64. Both Intel runs gave identical values, and the upper 32 bits of every query were 0.
Per draw on Intel, first / second full count. The one-pixel sum equals the reference in every row.
slotis the fixture's parameter, not a query index.slotlate(index 0 / 65)swap(index 65 / 0)adjacent(index 0 / 65)mainmainmainmainmainmainmainmainmainmainredredred_base2What this separates (no cause claimed):
swap, the first full query reads 64 at index 65, and the second matches at index 0 in 26/26.adjacent, the second full query follows the first directly, with no scissor change or other query in between, and matches in 26/26.base,warmupandlatein the previous run,swapandadjacentnow), the full query recorded first in the command list reads 64. Whenever a second full query of the same draw is recorded, it matches.Before the run I wrote down what each candidate condition predicts. Only the first fits:
swapfirst (index 65)swapsecond (index 0)adjacentfirst (index 0)adjacentsecond (index 65)The fixture's own check reads index 0. In
swapthat index holds the second full query, so--sampled-coverageexits 0 for all 26 Intel draws in that mode. Inbase,lateandadjacent, the 18 draws whose reference is not 64 fail withFull draw coverage mismatch, as onmain. That difference comes from the variant. Nothing here changes the fixture, and the full-draw mismatch stays a failure onmain.Not tested: an empty query recorded before the first full query, other Intel drivers, and the debug layer.
Commands. The pixel shaders are the sources from
tests/sampled_coverage_check.py, compiled withdxc -T ps_6_0 -E main. Each case then runsoffscreen_check.exe hardware --sampled-coverage <ps.dxil> <case.bin>withXBOX2WINDOWS_ADAPTERset toIntelorNVIDIA, oroffscreen_check.exe warp --sampled-coverage <ps.dxil> <case.bin>. The mode's variable is set to1for that mode's runs only.Environment. Windows 11 build 26300.10075, on AC power. MSVC 19.44.35230 and the Windows SDK 10.0.26100 DXC 1.9.2602.17, as in the previous follow-up. Intel(R) UHD Graphics (
8086:468B, driver 32.0.101.7092); NVIDIA GeForce RTX 3050 6GB Laptop GPU (10DE:25EC, driver 32.0.16.2114); WARP 10.0.26100.10068. Debug layer unavailable on all three.Local diff used for all four modes (
tests/pixel_aot_render.cppatc639a01)AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:59:38Z.
The swap and adjacent controls narrow this down. On this Intel build, the first full query still returned 64 when its slot changed and when the second full query moved before the one-pixel draws. The second query and one-pixel sum matched 26/26. WARP and NVIDIA remain useful controls. A focused experimental note linking the results and command order would be welcome. Keep the original first-query mismatch as a failure; a second draw is diagnostic evidence, not a substitute result.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T14:31:16Z.
The independent Intel UHD baseline is now in #1563. The first full-draw query failed twice on that adapter, while RTX 3060 Laptop and WARP passed. The UHD fixture did not print the failed count, so this establishes another first-query failure without establishing the earlier 64-sample value or its cause. The strict assertion remains in place. For the next reproduction, please use the adjacent-query control and include both counts and the one-pixel sum.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T11:48:59Z.
I'll run the requested adjacent-query comparison on a desktop Intel UHD Graphics 770, with RTX 4060 and WARP controls on the same host. I'll keep the no-output shader and the original strict first-query check, report both full counts and the one-pixel sum for the published 13 cases, and link the exact instrumentation.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T11:57:25Z.
The desktop Intel UHD Graphics 770 (8086:a780, driver 32.0.101.5973) returned 64 for the first full draw on all 26 runs in each mode. Only eight of those 26 cases actually covered 64 samples. The second adjacent full draw and the sum of the 64 one-pixel queries each matched the CPU reference 26/26. The uninstrumented fixture also exited 1 on the first slot-0 case with
Full draw coverage mismatch.In the table, each vector is ordered by the five scale/threshold pairs from the fixture: (1, .5), (.5, .375), (1, 0), (0, .25), (-1, -.5). The final three cases use (1, .75). Both Intel repetitions gave the values below.
In base mode, slot 0 covered the first full draw and slot 65 was empty after the one-pixel draws. In adjacent mode slot 65 covered a second full draw immediately after slot 0, before any scissored draw. Every individual one-pixel query matched its CPU reference in both modes. The base empty query returned 0 on all three adapters. The original first-query assertion still failed 18/26 times per Intel mode.
The RTX 4060 (10de:2882, 32.0.15.9579) and WARP (1414:008c, 10.0.26100.9711) matched all 13 first full counts in both modes and all 13 second adjacent counts. Each control ran once per mode. All three used Windows 11 build 26100.9711, Agility SDK 1.620.2 and DXC 1.9.2609.5. The D3D12 debug layer was unavailable.
Reproduction from the measurement checkout using the instrumentation diff and fixed-source renderer build:
Each call emits one JSON record per draw. The Intel calls exit 1 after collecting all cases, and the two controls exit 0.
Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-27T07:48:01Z.
Laptop UHD and RTX 2070 Max-Q comparison
I ran the stock sampled-coverage hardware fixture three times per adapter at clean
d3e3ea776e4fb32401f1eed3dc109fb477d9cbd8, using the same Releaseoffscreen_checkbinary on both GPUs. Windows build26300.10075, MSVC 19.44.35230, DXC 1.9.2602.17. I selected each adapter withXBOX2WINDOWS_ADAPTERand ranpython -B tests/sampled_coverage_check.py <dxc> <offscreen_check> hardware.8086:9bc4)31.0.101.211410de:1f14)32.0.15.8129The Intel failure was identical in all three runs:
coverage pixel=0 expected=0 actual=1, followed bySample coverage mismatch. This per-pixel assertion stops the fixture before the full-draw check, so there is no full-draw count from this adapter in these runs. The test revision also differs from the original787ace7report. D3D12 debug layer enabled on both adapters with zero recorded errors or warnings. Source-built fixtures only. AI-assisted.