gpu: add DXR Tier 1.0 fixture coverage #635
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/641"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-22T17:10:03Z.
Change
Add a source-built
lib_6_3TraceRay and DispatchRays path to the five-ray fixture. Use it as the native BVH differential reference on DXR Tier 1.0 with Shader Model 6.5. The differential fixture keeps inline RayQuery as the default on Tier 1.1 and later. The standalone GPU report includes the five-ray test so Shader Model 6.3 and 6.4 adapters can report DXR Tier 1.0 independently of the BVH compute shader.Refs #1.
Verification
Tested
824f3d7on Windows 10 22H2 build 19045.6456.dxr_pipeline_hardwarePASS on the GTX 1060 anddxr_pipeline_warpSKIP on the in-box WARP. The GPU report format checks passed.Set up the repository Python environment and the app-local DLL directories described in
docs/experiments.mdbefore running the matrix.Stage
offscreen_check.exefrom the Release build besideRun-GpuCheck.ps1and write the tested SHA intoSOURCE_COMMIT.txt. Run./Run-GpuCheck.ps1 -Backend hardware -Adapter 'GTX 1060'and./Run-GpuCheck.ps1 -Backend warpfrom that directory. Runpython -B tests/gpu_report_format_check.pyfrom the checkout.Evidence and follow-up
The MIT-licensed fixture reuses the existing synthetic BLAS, TLAS, and CPU reference. Instance IDs, primitive indices, and distances matched for both hits. The geometry, clipping, and mask misses returned zero. The three BVH fault controls changed 4, 102, and 1 results and hit witnesses 0, 1, and 31. Two isolated source controls set
InstanceContributionToHitGroupIndexto 1 orRay.flagsto 8 (SKIP_CLOSEST_HIT_SHADER). In both cases,offscreen_check hardware --dxr-pipelinereturned exit 1 before constructing the ray pipeline. See the GTX 1060 README row and the "Independent BVH checks on PC" section of the experiment notes.Checklist
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-22T17:18:55Z.
@Jess-Doit Independent AMD (RDNA4) result on
824f3d7. Measurements only, no code change.Environment
dxr_tier=11 shader_model_capped_at_6_5=0x65debug_layer=unavailable(Tools.Graphics.DirectXisNotPresenthere), so no validation-layer evidence in this run.824f3d7; the reference run below is a second clean worktree ofb03f754(the PR base, i.e.mainwithout this change), same machine, same SDK.Commands
Both presets, same filter as the PR body:
App-local Agility/WARP DLLs were not staged, so this is the in-box D3D12 path only.
Observed — the path this PR adds
dxr_pipeline_hardwarepassed in both presets, through the newlib_6_3path, with the same five-ray result as the inline query test:dxr_query,dxr_updateanddxr_facingalso passed (dxr_facing rays=96 hits=72 front_hits=36 culled=24 mismatches=0), as didbvh_hits(3 epochs,mismatches=0) andbvh_differential(136 comparisons per epoch × 3 epochs = 408 BVH comparisons,mismatches=0).So the TraceRay/DispatchRays reference compiles, creates a pipeline and traces correctly on this adapter, in Debug and in Release.
One test fails, and it is not this change
dxr_opacity_hardwarefails in both presets with:Every mismatch is a shader-committed hit, and the printed per-ray detail shows the recorded distance is the expected distance plus 0.25 in each case (
expected ... distance=1/actual ... distance=1.25,2/2.25,3/3.25) with a correct instance, geometry, primitive andshader_commit_t.Control on the base commit. The same test was rebuilt and run from a clean worktree of
b03f754, the PR base, without any of this PR's changes:Identical counts, identical per-ray offsets. So this is pre-existing on RDNA 4, not introduced by
824f3d7. It is the same deviation reported by @denn0x under #216 and accepted there as a documented hardware result (CommittedRayT()equals the true distance plus the ray'sTMin).One new data point: #216 recorded driver
32.0.32015.7029. This run is on32.0.32029.2010, a later driver, and the 43 cases reproduce unchanged. The driver update did not change this behaviour.Limits
lib_6_3path here runs on Tier 1.1 hardware. DXR Tier 1.0 hardware limited to Shader Model 6.3 or 6.4 — the gap the PR body names — is still untested by this run.dxr_opacityfailure above must be read as an independent reproduction, not as a verdict on this PR.AI-assisted; runs executed locally.