d3d12_pso_validation_test: compare the DYNAMIC_* PSO flags with the host only where it reports them (TEST-WIN10-PSO-FLAGS) #967

Open
github-bot wants to merge 1 commit from github-bot/gh-967 into main AGit
Owner

@⁠Snooozs on GitHub · 2026-11-24 16:00 UTC · original
Snooozs:win10-pso-dynamic-flags → main · +46 −11 · 1 files · 1 commits · open

Claimed in the coordination issue as: TEST-WIN10-PSO-FLAGS (#14)

What and why

d3d12_pso_validation fails on Windows 10 22H2 (19045):

FAIL [gfx: Flags=DYNAMIC_DEPTH_BIAS]: layer 0x00000000 != host NVIDIA GeForce RTX 5060 Ti 0x80070057

The test compares the layer with the host's D3D12. Windows 10's in-box runtime refuses D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS and reports OPTIONS16.DynamicDepthBiasSupported and OPTIONS15.DynamicIndexBufferStripCutSupported as FALSE. With only the depth-bias case gated, DYNAMIC_INDEX_BUFFER_STRIP_CUT fails the same way next, so both are covered.

Test-only change: each host records the two feature answers (a failed query counts as unsupported). The four DYNAMIC_* cases (graphics and compute) compare with a host only where it reports the feature, and print a SKIP host comparison ... line otherwise. The layer-side expectation (S_OK) still runs everywhere, and the other cases are unchanged.

This carries on my old pull request 8540, which has no old-pr branch.

Not changed here: the layer reports both features FALSE (runtime/shims/d3d12_vulkan_device.cpp:7749, :7756) but accepts both flags (kKnownPipelineStateFlags = 0xF, :2945). Whether it should refuse them or report the features is a separate decision.

Tested

Windows 10 Pro 22H2 (10.0.19045), VS 2022 RelWithDebInfo, Vulkan SDK 1.4.363.0, hosts: NVIDIA GeForce RTX 5060 Ti and WARP; ctest -R "^d3d12_pso_validation$":

  • main 1504c1af6: fails with the line above
  • with this change: PASS (60 layer checks, 92 host comparisons across 2 host device(s)), with SKIP lines for both features on both hosts
  • python -I scripts/check_no_game_data.py runtime/test/d3d12_pso_validation_test.cpp: clean

I have not run it on a Windows 11 host that reports the features; nothing is skipped there by construction.

GPUs tested: NVIDIA GeForce RTX 5060 Ti, driver 621.01 (32.0.16.2101), Windows 10 22H2

AI-assisted: yes. Claude Code (a Haiku 5.5 subagent wrote the change, Claude Opus 5.5 reviewed it and reran the test).

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator rule)

🤖 Generated with Claude Code

**@⁠Snooozs** on GitHub · 2026-11-24 16:00 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/967) `Snooozs:win10-pso-dynamic-flags` → `main` · +46 −11 · 1 files · 1 commits · open Claimed in the coordination issue as: TEST-WIN10-PSO-FLAGS (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why `d3d12_pso_validation` fails on Windows 10 22H2 (19045): ``` FAIL [gfx: Flags=DYNAMIC_DEPTH_BIAS]: layer 0x00000000 != host NVIDIA GeForce RTX 5060 Ti 0x80070057 ``` The test compares the layer with the host's D3D12. Windows 10's in-box runtime refuses `D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS` and reports `OPTIONS16.DynamicDepthBiasSupported` and `OPTIONS15.DynamicIndexBufferStripCutSupported` as FALSE. With only the depth-bias case gated, `DYNAMIC_INDEX_BUFFER_STRIP_CUT` fails the same way next, so both are covered. Test-only change: each host records the two feature answers (a failed query counts as unsupported). The four `DYNAMIC_*` cases (graphics and compute) compare with a host only where it reports the feature, and print a `SKIP host comparison ...` line otherwise. The layer-side expectation (`S_OK`) still runs everywhere, and the other cases are unchanged. This carries on my old pull request 8540, which has no `old-pr` branch. Not changed here: the layer reports both features FALSE (`runtime/shims/d3d12_vulkan_device.cpp:7749`, `:7756`) but accepts both flags (`kKnownPipelineStateFlags = 0xF`, `:2945`). Whether it should refuse them or report the features is a separate decision. ### Tested Windows 10 Pro 22H2 (10.0.19045), VS 2022 RelWithDebInfo, Vulkan SDK 1.4.363.0, hosts: NVIDIA GeForce RTX 5060 Ti and WARP; `ctest -R "^d3d12_pso_validation$"`: - `main` 1504c1af6: fails with the line above - with this change: `PASS (60 layer checks, 92 host comparisons across 2 host device(s))`, with SKIP lines for both features on both hosts - `python -I scripts/check_no_game_data.py runtime/test/d3d12_pso_validation_test.cpp`: clean I have not run it on a Windows 11 host that reports the features; nothing is skipped there by construction. GPUs tested: NVIDIA GeForce RTX 5060 Ti, driver 621.01 (32.0.16.2101), Windows 10 22H2 AI-assisted: yes. Claude Code (a Haiku 5.5 subagent wrote the change, Claude Opus 5.5 reviewed it and reran the test). ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator rule) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On Windows 10 22H2 (19045) the in-box D3D12 runtime refuses
D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS and DYNAMIC_INDEX_BUFFER_STRIP_CUT with
E_INVALIDARG and reports OPTIONS16.DynamicDepthBiasSupported and
OPTIONS15.DynamicIndexBufferStripCutSupported as FALSE, so the test failed there:

  FAIL [gfx: Flags=DYNAMIC_DEPTH_BIAS]: layer 0x00000000 != host NVIDIA GeForce RTX 5060 Ti 0x80070057

Query both features on each host device and compare those four cases (gfx and compute) only
on hosts that report the feature, with a SKIP line otherwise. The layer-side expectation still
runs on every host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:30:52 +00:00
Author
Owner

@⁠robot00f on GitHub · 2026-11-24 22:24 UTC · original

Second, independent measurement of the same failure on another Windows 10 machine, and a check of this change on it.

Host: Windows 10 Pro 19045, NVIDIA GPU (Pascal class, 4 GB), driver 582.28, in-box d3d12.dll 10.0.19041.4355. The branch is based on an older main; git cherry-pick -n d72e8b7f onto 6b1bc450 (current main) applies cleanly. I compiled only d3d12_pso_validation_test.cpp with the defines, flags and include paths of the existing RelWithDebInfo build.ninja entry and linked it against the current main libraries into a separate executable.

  • main: fails 3/3, deterministic, FAIL [gfx: Flags=DYNAMIC_DEPTH_BIAS]: layer 0x00000000 != host NVIDIA GeForce GTX 1050 Ti 0x80070057. On this host DYNAMIC_INDEX_BUFFER_STRIP_CUT does not fail only because EXPECT keeps going -- gating just the depth-bias case would have surfaced it next, as you wrote.
  • with the change: passes 3/3, PASS (60 layer checks, 92 host comparisons across 2 host device(s)), with the OPTIONS16/OPTIONS15 SKIP lines on the GTX 1050 Ti and on WARP. 60 layer checks is the same count as the failing run, so nothing was dropped on the layer side.

CheckFeatureSupport answers FALSE for both features on the hardware adapter here too, and WARP agrees, so the gate keys on the runtime, not on one vendor. python -I scripts/check_no_game_data.py on the file exits 0.

Not checked: Windows 11, so the compared branch is still only your run. Also ran the executable directly, not through ctest.

On your follow-up note: the layer reporting both features FALSE and accepting both flags is a real gap, and the depth-bias half is not just a report -- OMSetDepthBias is not implemented anywhere in runtime/. A pull request that implements it (record the values, VK_DYNAMIC_STATE_DEPTH_BIAS at replay, then answer OPTIONS16 TRUE) is worth having on its own; I can claim it after this if nobody else does. AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash).

**@⁠robot00f** on GitHub · 2026-11-24 22:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/967#issuecomment-7146200131) Second, independent measurement of the same failure on another Windows 10 machine, and a check of this change on it. Host: Windows 10 Pro 19045, NVIDIA GPU (Pascal class, 4 GB), driver 582.28, in-box `d3d12.dll` 10.0.19041.4355. The branch is based on an older `main`; `git cherry-pick -n d72e8b7f` onto `6b1bc450` (current `main`) applies cleanly. I compiled only `d3d12_pso_validation_test.cpp` with the defines, flags and include paths of the existing `RelWithDebInfo` `build.ninja` entry and linked it against the current `main` libraries into a separate executable. - `main`: fails 3/3, deterministic, `FAIL [gfx: Flags=DYNAMIC_DEPTH_BIAS]: layer 0x00000000 != host NVIDIA GeForce GTX 1050 Ti 0x80070057`. On this host `DYNAMIC_INDEX_BUFFER_STRIP_CUT` does not fail only because EXPECT keeps going -- gating just the depth-bias case would have surfaced it next, as you wrote. - with the change: passes 3/3, `PASS (60 layer checks, 92 host comparisons across 2 host device(s))`, with the `OPTIONS16`/`OPTIONS15` SKIP lines on the GTX 1050 Ti and on WARP. 60 layer checks is the same count as the failing run, so nothing was dropped on the layer side. `CheckFeatureSupport` answers FALSE for both features on the hardware adapter here too, and WARP agrees, so the gate keys on the runtime, not on one vendor. `python -I scripts/check_no_game_data.py` on the file exits 0. Not checked: Windows 11, so the compared branch is still only your run. Also ran the executable directly, not through `ctest`. On your follow-up note: the layer reporting both features FALSE and accepting both flags is a real gap, and the depth-bias half is not just a report -- `OMSetDepthBias` is not implemented anywhere in `runtime/`. A pull request that implements it (record the values, `VK_DYNAMIC_STATE_DEPTH_BIAS` at replay, then answer `OPTIONS16` TRUE) is worth having on its own; I can claim it after this if nobody else does. AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash).
Author
Owner

@⁠Snooozs on GitHub · 2026-11-24 22:29 UTC · original

Thanks for the second measurement. One correction: I have not run this on Windows 11 either (the description says so), so the compared branch on a host that reports the features is not covered by anyone yet. The depth-bias follow-up is yours if you want to claim it; I have not started it.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠Snooozs** on GitHub · 2026-11-24 22:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/967#issuecomment-7146298659) Thanks for the second measurement. One correction: I have not run this on Windows 11 either (the description says so), so the compared branch on a host that reports the features is not covered by anyone yet. The depth-bias follow-up is yours if you want to claim it; I have not started it. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@⁠qhukz13 on GitHub · 2026-11-25 09:33 UTC · original

Confirmed on a second Windows 10 machine: GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, main cdb003ea1 + this PR. d3d12_pso_validation fails on main ([gfx: Flags=DYNAMIC_DEPTH_BIAS]: layer 0x00000000 != host ... 0x80070057, line 436) and passes 3 of 3 with the PR (SKIP host comparison of DYNAMIC_DEPTH_BIAS cases ... OPTIONS16.DynamicDepthBiasSupported is FALSE there, the same for DYNAMIC_INDEX_BUFFER_STRIP_CUT; PASS (60 layer checks, 92 host comparisons across 2 host device(s))). AI-assisted (Claude Code).

**@⁠qhukz13** on GitHub · 2026-11-25 09:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/967#issuecomment-7158499152) Confirmed on a second Windows 10 machine: GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, `main` `cdb003ea1` + this PR. `d3d12_pso_validation` fails on `main` (`[gfx: Flags=DYNAMIC_DEPTH_BIAS]: layer 0x00000000 != host ... 0x80070057`, line 436) and passes 3 of 3 with the PR (`SKIP host comparison of DYNAMIC_DEPTH_BIAS cases ... OPTIONS16.DynamicDepthBiasSupported is FALSE there`, the same for `DYNAMIC_INDEX_BUFFER_STRIP_CUT`; `PASS (60 layer checks, 92 host comparisons across 2 host device(s))`). AI-assisted (Claude Code).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/967/head:github-bot/gh-967'
git switch 'github-bot/gh-967'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-967'
git switch 'github-bot/gh-967'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-967'
git switch 'github-bot/gh-967'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-967'
git switch 'main'
git merge --squash 'github-bot/gh-967'
git switch 'main'
git merge --ff-only 'github-bot/gh-967'
git switch 'main'
git merge 'github-bot/gh-967'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.