mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1398] d3d12_state_sweep_test: compare the per-face stencil cases only with a host that has OPTIONS14 (TEST-STATE-SWEEP-WIN10-STENCIL) #1428
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#1428
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/1398
Author: @qhukz13
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:cont/state-sweep-win10📝 Commits (2)
feb22b4d3d12_state_sweep_test: skip host comparison of DEPTH_STENCIL2 when host lacks OPTIONS148da0d91d3d12_state_sweep_test: refine OPTIONS14 skip and report failed step📊 Changes
1 file changed (+90 additions, -30 deletions)
View changed files
📝
runtime/test/d3d12_state_sweep_test.cpp(+90 -30)📄 Description
Claimed in the coordination issue as: TEST-STATE-SWEEP-WIN10-STENCIL (claim)
What and why
#878 added separate front and back stencil masks to the layer and 16
stencil per-face maskscases tod3d12_state_sweep. Those cases build a pipeline state stream withD3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2(and half of them call
ID3D12GraphicsCommandList8::OMSetFrontAndBackStencilRef), which needD3D12_FEATURE_D3D12_OPTIONS14.IndependentFrontAndBackStencilRefMaskSupported. Windows 10's in-box D3D12 does notknow
OPTIONS14(CheckFeatureSupportreturnsE_INVALIDARG) and refuses those pipelines, so on Windows 10 all 16cases print
the host refuses the pipeline (0x80070057), the layer accepts it MISMATCHand the test fails, althoughthe layer behaves as intended.
The test now asks the host for
OPTIONS14. Where the query fails or reportsFALSE, the 16 cases still run on thelayer (a layer failure is still a
MISMATCH) and are printed as not comparable on this host, with the reason; theycount as skipped. A host that reports support compares them as before. The layer is not changed.
Tested
GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo,
ctest -R "^d3d12_state_sweep$":fails on
main(16MISMATCH), passes 3 of 3 with this branch:The test always compares with the hardware adapter behind the Vulkan device (it does not read
LEONIDA_HOST_ADAPTER), so the supported path is not exercised on this machine; on a Windows 11 host that reportsOPTIONS14the code path is the unchanged one.GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.66, Windows 10 19045. No game files.
AI-assisted: yes (Claude Code, with Antigravity for the implementation and the runs)
Checklist
mainand merges cleanly.docs/design.md. (Test only.)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.