mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #967] d3d12_pso_validation_test: compare the DYNAMIC_* PSO flags with the host only where it reports them (TEST-WIN10-PSO-FLAGS) #1004
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1004
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?
📋 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)
d72e8b7d3d12_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_validationfails on Windows 10 22H2 (19045):The test compares the layer with the host's D3D12. Windows 10's in-box runtime refuses
D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIASand reportsOPTIONS16.DynamicDepthBiasSupportedandOPTIONS15.DynamicIndexBufferStripCutSupportedas FALSE. With only the depth-bias case gated,DYNAMIC_INDEX_BUFFER_STRIP_CUTfails 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 aSKIP 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-prbranch.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$":main1504c1af6: fails with the line abovePASS (60 layer checks, 92 host comparisons across 2 host device(s)), with SKIP lines for both features on both hostspython -I scripts/check_no_game_data.py runtime/test/d3d12_pso_validation_test.cpp: cleanI 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
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).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.