Skip depth_bounds_pipeline_loads_and_filters_draws when host lacks SM 6.6 #1051
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1051
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1051"
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?
@meganegga on GitHub · 2026-11-25 17:34 UTC · original
meganegga:main→main· +5 −1 · 2 files · 3 commits · openroot_signaturesetsD3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDandD3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED, which require Shader Model 6.6.On GPUs that support
DepthBoundsTestbut lack Shader Model 6.6,depth_bounds_pipeline_loads_and_filters_drawspreviously passed thehost.depth_bounds()check and then panicked inroot_signaturewithE_INVALIDARG (0x80070057).This adds the same
host.mesh_shaders()(SM 6.6) guard used ina_mesh_pipeline_loads_from_the_librarysocargo test --workspacesucceeds on older hardware.@HAL9000RELOADED on GitHub · 2026-11-25 19:29 UTC · original
Windows 10 data for this and #692, which change the same test. RX 7900 XTX, Windows 10 Pro 22H2 with the in-box D3D12 runtime (SM 6.5), main
d510ee4, 5 runs each ofcargo test -p victory-gpu --lib depth_bounds:HRESULT(0x80070057)from the root signature, see #850)no host shader model 6.6 support; skippedWith the Agility runtime (#402), this PR runs the test and it passes. So on a Windows 10 machine without Agility, #692 keeps the depth-bounds check that this PR skips. Since they touch the same test, only one of them is needed.
@tippythetaidum on GitHub · 2026-11-25 20:00 UTC · original
How it ended, with a correction to the check above: the software flag alone isn't enough on the runner.
With
DXGI_ADAPTER_FLAG_SOFTWAREas the only test, the runner still failed at the same assertion (run 45688368007), so its adapter doesn't carry that flag. Matching Microsoft's PCI vendor id as well, which WARP and the Basic Render Driver both use, makes the skip trigger. The Tests job then passes (run 45690059730:depth_bounds_pipeline_loads_and_filters_draws ... ok, 197 passed, 0 failed):The test also prints the adapter's name, vendor and flags before it decides, so a run that still fails shows which device it was. On a card nothing changes: the RTX 5080 here runs the test in full and passes.
AI-assisted (Claude Code, Claude Opus 5.5).
@tippythetaidum on GitHub · 2026-11-25 19:48 UTC · original · edited 2026-11-25 20:01 UTC
A data point from GitHub's Windows runner (no card, so the host device is WARP): with this PR, the test still fails, one step later.
WARP reports shader model 6.6 and the depth-bounds feature, so neither skip triggers. The test then fails at its first draw check:
The test turns the depth test itself off (
DepthEnable: false) and relies on the depth bounds test alone. On a card the draw is culled; on WARP it comes through. In a build of my own I skip the test on the software adapter (DXGI_ADAPTER_FLAG_SOFTWAREon the host's adapter, the same checkqueue2_testsuses), with a message that says why. With that, this PR and #982 in the same tree, the runner's test step is running now; I'll say here how it ends. If you'd like that in this PR, here is the check (update: on the runner this flag alone did not catch the adapter; see the next comment for the check that does):AI-assisted (Claude Code, Claude Opus 5.5).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.