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

Open
opened 2026-11-26 20:19:46 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/967
Author: @Snooozs
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: win10-pso-dynamic-flags


📝 Commits (1)

  • d72e8b7 d3d12_pso_validation_test: compare the DYNAMIC_* PSO flags with the host only where it reports them

📊 Changes

1 file changed (+46 additions, -11 deletions)

View changed files

📝 runtime/test/d3d12_pso_validation_test.cpp (+46 -11)

📄 Description

Claimed in the coordination issue as: TEST-WIN10-PSO-FLAGS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136932062)

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/967 **Author:** [@Snooozs](https://github.com/Snooozs) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `win10-pso-dynamic-flags` --- ### 📝 Commits (1) - [`d72e8b7`](https://github.com/ubiquitarianism/leonida/commit/d72e8b7fc295afe854ea8c9fcfe529cdbeabd72e) d3d12_pso_validation_test: compare the DYNAMIC_* PSO flags with the host only where it reports them ### 📊 Changes **1 file changed** (+46 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_pso_validation_test.cpp` (+46 -11) </details> ### 📄 Description Claimed in the coordination issue as: TEST-WIN10-PSO-FLAGS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136932062) ### 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1004
No description provided.