Repository navigation
Conversation
14376dc to
390d00f
Compare
390d00f to
6be2413
Compare
|
Rebased onto current Re-verified 3/3 on NVIDIA GeForce GTX 1050 Ti (driver 582.28, Vulkan 1.4.312, Windows 10 Pro 10.0.19045): AI-assisted: yes (Antigravity) |
6be2413 to
ef3528e
Compare
|
Rebased onto current main (446574e / �0f3d399, resolving the DispatchMesh AI-assisted: yes (Antigravity) |
eba519f to
6ba1252
Compare
…ost only where it reports them 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 <noreply@anthropic.com>
6ba1252 to
cc6597c
Compare
Claim: #14 (comment) (ID
D3D12-DYNAMIC-DEPTH-BIAS)Depends on: #967 (its commit is the first one here, carried for the test file)
The layer accepted both
DYNAMIC_*pipeline flags as known bits (kKnownPipelineStateFlags = 0xF) while reporting both features FALSE and implementing neither setter, so a title that used them got a PSO whose bias never changed. #967's note called that a separate decision; this is the implementation.What
ID3D12GraphicsCommandList9(generated stub regenerated for that interface, IID added to theQueryInterfacechain) and implements its two methods:RSSetDepthBias(float constant, float clamp, float slope)andIASetIndexBufferStripCutValue(value). Both record list state, deferred into bundles like the other state setters, andResetreturns them to their defaults.IASetIndexBufferStripCutValuetakes only the three defined values; anything else invalidates the list, soClosereports it.SetPipelineStatecopies the PSO's rasterizer bias andIBStripCutValueinto that state, as D3D12 does, so a draw before any setter behaves as it did.DYNAMIC_DEPTH_BIASgetsVK_DYNAMIC_STATE_DEPTH_BIASand the draw carries the values; replay issuesvkCmdSetDepthBias. A pipeline carryingDYNAMIC_INDEX_BUFFER_STRIP_CUTtakes the cut value from the draw instead of the pipeline. Pipelines without the flags are unchanged.OPTIONS16.DynamicDepthBiasSupportedandOPTIONS15.DynamicIndexBufferStripCutSupportednow report TRUE, which is the other half of d3d12_pso_validation_test: compare the DYNAMIC_* PSO flags with the host only where it reports them (TEST-WIN10-PSO-FLAGS) #967's note.D24_UNORM_S8_UINTstored asD32_SFLOAT_S8_UINTthe pixel stage carries the bias itself (src/depth24_fragment.h), so such a pipeline keeps the PSO's bias and does not followRSSetDepthBias. Fixing that needs the values in a per-draw uniform, which is a follow-up.Tested
Windows 10 Pro 22H2 (10.0.19045), VS 2022 RelWithDebInfo, Vulkan SDK 1.4.363.0, NVIDIA GeForce GTX 1050 Ti (582.28) and WARP. No game files.
d3d12_gcl8_testnow covers GCL9:QueryInterfacefor the IID, both methods at their SDK slots (82, 83) with the values read back, theResetdefaults, the invalid-valueE_INVALIDARG, and the refcount. CPU only, 3/3.d3d12_depth24_draw_test: three dynamic cases on the stored-depth path. Pipeline bias 5 with a list bias of 0 stores the unbiased code (the pipeline's value is ignored); list bias 3 and -5 store codes 3 and 5 steps off the unbiased one (the list's value is applied). The two biased ones are the known native-D24rinexactness this test already reports for the static ones.d3d12_draw_test: two dynamic strip-cut passes (0xFFFF overR16_UINT, 0xFFFFFFFF overR32_UINT, on a pipeline holding DISABLED) match the PSO-driven passes pixel for pixel, 4096/4096 each.d3d12_pso_validation: passes 2/2, with d3d12_pso_validation_test: compare the DYNAMIC_* PSO flags with the host only where it reports them (TEST-WIN10-PSO-FLAGS) #967's gate skipping the host comparison on this host (it reports both features FALSE) and a new layer-side case asserting both feature answers.ctest -Rover the seven touched and neighbouring tests with--repeat until-fail:2: 7/7. Full suite: the same five reproduced host differences plusd3d12_close_parityandroot_signature_oracle(both covered elsewhere, d3d12_close_parity_test: the unaligned footprint copies follow WARP's UnrestrictedBufferTextureCopyPitchSupported (OLD-6071) #989 and the finding posted for d3d12_xs: keep the heap-directly-indexed flags on a host that refuses to serialize them #1353); nothing new from here.check_no_game_data.pyon every touched file: 0.tests/test_docs_links.pyandtests/test_docs_table_rows.py: OK.d3d12_gcl8_teststill runs without a GPU, as before.Not tested: Windows 11, so the #967 branch that compares against a host which accepts the flags; and no title PSO was run.
GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.28, Windows 10 22H2
AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash)
Checklist
mainand merges cleanly.