d3d12: support hardware depth-bounds testing and OMSetDepthBounds #815
Closed
kotekompotek wants to merge 1 commit from
upstream-pr/815 into main
pull from: upstream-pr/815
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Reference
ProjectLeonida/mandy!815
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/815"
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?
Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T14:09:11Z.
Claimed in the coordination issue as: D3D-DEPTH-BOUNDS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149)
What and why
main.DEPTH_STENCIL1/DEPTH_STENCIL2DepthBoundsTestEnable,VK_DYNAMIC_STATE_DEPTH_BOUNDS,ID3D12GraphicsCommandList1::OMSetDepthBounds,OPTIONS2::DepthBoundsTestSupported).OMSetDepthBoundsinruntime/shims/d3d12_com.cppto support bundles viadefer()and match D3D12Close() == S_OKon<0,>1,min>max, andNaN(sanitized cleanly to Vulkan[0, 1]or empty[1, 0]inruntime/src/vulkan_replay.h).info.features.depthBounds = d.enabled.depthBoundsind3d12_mesh_test.cppandd3d12_vulkan_device_test.cpp; expandedd3d12_com_test.cpp,d3d12_bundle_forbidden_test.cpp,d3d12_close_parity_test.cpp, and synceddocs/d3d12_vulkan.md.Tested
d3d12_com:Passed.d3d12_bundle_forbidden:11/11vs host GTX 1050 & WARP (0 failures).d3d12_close_parity: all 5OMSetDepthBoundscases match WARP.d3d12_vulkan_device(compare_feature_options):32 feature queries, 0 mismatches.d3d12_mesh_test.cppcompiled/W4, andtest_ctest_registration.py+test_docs_*.py:OK.GPUs tested: NVIDIA GeForce GTX 1050 (driver 582.28, Windows) & Microsoft Basic Render Driver (WARP)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:18:25Z.
Review: APPROVED
Clean-Room Peer Review for PR #815 (d3d12: support hardware depth-bounds testing and OMSetDepthBounds)
Comprehensive technical evaluation of D3D12 <-> Vulkan dynamic depth-bounds translation:
eset_state) restores default [0.0f, 1.0f] range on pipeline recycling.
Test Suite Verification:
untime/test/d3d12_com_test.cpp: Verified retrieval and storage of dynamic depth bounds [0.25f, 0.75f].
untime/test/d3d12_mesh_test.cpp: Dynamic capability query against D3D12_FEATURE_D3D12_OPTIONS2::DepthBoundsTestSupported.
untime/test/d3d12_vulkan_device_test.cpp: Local invariant checks updated.
LGTM! Excellent implementation and test coverage. Approved.
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:26:39Z.
Review: APPROVED
Clean-room verified (zero game data). Complete implementation of D3D12 depth-bounds testing: OPTIONS2 feature query, ID3D12GraphicsCommandList1::OMSetDepthBounds, dynamic state wiring in Vulkan context via depthBounds / vkCmdSetDepthBounds, and comprehensive tests.
Imported from ubiquitarianism/leonida. Originally posted by moffington on 2026-11-24T15:37:28Z.
Reviewed
2f9bee487on RTX 3060 / Linux / Wine 11.20 with Vulkan validation enabled.All five focused regression tests passed on baseline and HEAD. Independent pixel readback also confirmed correct depth-bounds clipping, default bounds, ClearState reset, pipeline switching, and no-DSV draws. Feature-disabled handling worked as expected.
Found two API compatibility issues:
OMSetDepthBoundsrejects bundle command lists, causingClose()to returnE_INVALIDARG. Microsoft's [command list restrictions](https://learn.microsoft.com/en-us/windows/win32/direct3d12/recording-command-lists-and-bundles#command-list-api-restrictions) explicitly permit this operation in bundles. Could this usedefer(...)likeOMSetStencilRef?Close()to returnE_INVALIDARG, whereas the [OMSetDepthBounds documentation](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12graphicscommandlist1-omsetdepthbounds) specifies that NaN values silently convert to zero.No draw-time or pipeline-creation Vulkan validation errors observed. Native Windows parity was not tested.
Imported from ubiquitarianism/leonida. Originally posted by Sangonapou on 2026-11-24T15:45:33Z.
Tested 2f9bee48 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300), native Windows: the three tests pass, but the depth-bounds path itself is not reached on this GPU
Built at this head with
scripts\build_runtime.ps1(MSVC 19.51, VS Build Tools 2026, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0);llvm-mc23.1.6, SPIRV-Tools 2026.4. No game files.d3d12_com,d3d12_mesh,d3d12_vulkan_device(ctest, verbose): all pass, e.g.COM list/queue/fence: 16 colour, depth and stencil texels matchedandDispatchMesh over X, Y and Z and a stream VS draw matched all 4096 pixels.d3d12_meshthe runtime logsdepth-bounds testing needs depthBounds, which the device lacks; enabled 1, i.e. theDepthBoundsTestEnablePSO is refused (d3d12_vulkan_device.cpp:3853,!features.depthBounds). This GPU does support it:vulkaninforeportsdepthBounds = true. So the test passes through its "not supported" branch here and the enabled path (vkCmdSetDepthBounds,OMSetDepthBounds) is never exercised on capable hardware.enable.depthBounds = chosen_features.depthBounds(:9812) is in the standalone device's creation, while the device these tests run on is created withoutdepthBoundsin its enabled features, sodevice_.info.features.depthBoundsstays false. Happy to rerun once that is sorted out.Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T18:07:19Z.
@moffington @Sangonapou Thanks for the thorough review and WARP/bundle parity findings — addressed in
b3ca7b584:OMSetDepthBoundsinruntime/shims/d3d12_com.cppto support bundles viadefer()and match D3D12Close() == S_OKon<0,>1,min>max, andNaN, sanitized cleanly to Vulkan[0, 1]or empty[1, 0]inruntime/src/vulkan_replay.h.info.features.depthBounds = d.enabled.depthBoundsind3d12_mesh_test.cppandd3d12_vulkan_device_test.cpp.d3d12_com_test.cpp,d3d12_bundle_forbidden_test.cpp,d3d12_close_parity_test.cpp, anddocs/d3d12_vulkan.md.D3D-DEPTH-BOUNDSin coordination issue#14: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149Locally verified:
d3d12_com:Passedd3d12_bundle_forbidden:11/11vs host GTX 1050 & WARP (0 failures)d3d12_close_parity: all 5OMSetDepthBoundscases match WARPd3d12_vulkan_devicecompare_feature_options:32 feature queries, 0 mismatchesd3d12_mesh_test.cppcompiled/W4, andtest_ctest_registration.py+test_docs_*.py:OKImported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T02:08:20Z.
@kotekompotek: a data point on why this matters. fxceless/victory-fork (a VIctory fork that renders gameplay on an RTX 4070) just landed the same thing in its commit
c96b4f2("The depth bounds test works"): pipelines with depth bounds created from a DEPTH_STENCIL1 stream, and the title'sOMSetDepthBoundsreaching the host list. Before that, those draws passed at every depth. Their note says the first gameplay room is now lit by its lamp for the first time.On
mainthe layer still reportsDepthBoundsTestSupported = FALSEand refuses PSOs that enable it (d3d12_vulkan_device.cpparound 6317/6328, logged byd3d12_xs_pso_stream.cpp), so this PR is on the lighting path. It now conflicts with main (after #984). If you rebase it, I'll test the new head on Windows 11 / MSVC / RTX 4070 SUPER, wheredepthBoundsis supported, so the path Sangonapou couldn't reach on the 3080 Ti Laptop should run here, and I'll post the results.AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T03:12:10Z.
Retail data point for this PR: on main
3ff2a2adc(native Windows 11, RTX 4070 SUPER), a 300 s boot to a first-run consent page logs 224 CreatePipelineState refusals for depth bounds, the most common PSO failure in the run. So every one of those draws is missing on main today. When you rebase, I'll A/B it on the same boot (refusal count, captures, and whether anything new appears on screen) and post the result here.AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-25T06:39:45Z.
Rebased onto current
main(42537e7b6) asefea97331— the conflict after #984 is resolved. The head now carries both sides:multiViewport+VK_DYNAMIC_STATE_*_WITH_COUNTand the stencil per-face masks frommain, plus this PR'sdepthBoundsfeature gate,VK_DYNAMIC_STATE_DEPTH_BOUNDSandOMSetDepthBoundson direct lists and bundles.create_graphicsnow takes both the stream'sStencilFaceMasksand the newGraphicsStreamExtras(depth-bounds flag), so a DEPTH_STENCIL1/2 stream no longer refusesDepthBoundsTestEnable— it is refused only when the device lacksVkPhysicalDeviceFeatures::depthBounds.Verified locally on Windows / MSVC Debug (GTX 1050, driver 582.28):
pso_stream,d3d12_com,d3d12_d24_supportpass;d3d12_vulkan_deviceandd3d12_close_paritybuild clean and show the same two pre-existingmainfailures on this machine (theCreateHeapinvalid-argument column on the GTX 1050 and the threeCopyTextureRegionWARP-annotation rows — unrelated to this change).d3d12_mesh_testis not built here (noglslangValidator).The head is ready for your RTX 4070 SUPER run —
depthBoundsis enabled there, so the 224-refusal path you logged should now take the hardware test.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T07:34:37Z.
Independent integration review while preparing an RTX 3070 Ti / Linux Wine test of exact efea97331 on main
42537e7b6(+ separately owned startup fixes): the patch cherry-picks cleanly, but main’s on-demand console-stream realization looks like a missed propagation path. In runtime/shims/d3d12_vulkan_device.cpp, PipelineState::prepare at line ~7059 parses the retained stream and calls create_graphics(stream.graphics, &stream.ms, &stream.as) without stream.extras (or back_stencil). Your eager CreatePipelineState path does pass &stream.extras, so DepthBoundsTestEnable appears to be lost specifically when a pending console stream is realized. This is a code-path observation, not yet a GPU measurement.I am preserving the exact patch in a separate local test tree and will check the focused synthetic path before retail use; not duplicating implementation ownership. The current runtime probes log 224 depth-bounds stream refusals without this PR, so the feature is relevant beyond conformance. No raw game-derived data included. AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T07:46:00Z.
Real-boot A/B of this PR at efea97331 on Windows 11, RTX 4070 SUPER (NVIDIA 621.24). The tree also had #1558, and slot 57's native factory was turned off so that pipelines go through the stream path (the configuration that draws the pages correctly, see #939). Same shaders and settings with and without the PR.
c7e82e26e,CheckFeatureSupport(OPTIONS2)still reports DepthBoundsTestSupported = FALSE, andCreatePipelineStaterefuses every stream with the depth-bounds test on ("depth-bounds tests are not supported yet; stream subobject 21"): 225 refusals per boot, 3 of 3 runs. They only disappear when the slot 57 factory builds those pipelines instead, opaque, which is the picture regression on #939.OMSetDepthBoundscall appears before that stop, so the dynamic bounds stay at their defaults in this phase, and the screens that would use these pipelines visibly aren't reached yet. So this confirms it works and causes no regression, not a visual result.AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by thiefyzheng on 2026-11-25T08:33:37Z.
@djrolfes — picked up your finding as RT-DEPTHBOUNDS-STREAM-EXTRAS (claimed on #1608): #1695, branched from this PR's head
efea9733andDepends on: #815. It passesstream.back_masks?&stream.back_stencil:nullptr, &stream.extrasat theresolve_typecall site, and mixes those fields into the console path's pipeline cache key (prepare_console_streamhashed only the plainD3D12_DEPTH_STENCIL_DESC, so two console PSOs differing only in depth bounds — or back-face masks — collided). A regression test ind3d12_mesh_testdraws a DEPTH_STENCIL1DepthBoundsTestEnablestream through the lazy path insideOMSetDepthBounds(0,1)/(0.5,1).Not compiled or GPU-confirmed on the author host; your RTX 3070 Ti / Wine plan would cover exactly the missing run when convenient.
@kotekompotek — welcome to fold #1695 into #815 directly instead of a stacked PR; say the word and I drop the branch. AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-25T09:40:20Z.
Status at
efea97331: the two conformance gaps @moffington reported are both in —OMSetDepthBoundsrecords throughdefer(...)so bundles accept it, and NaN/out-of-range bounds are accepted at record time and clamped inside Vulkan's 0..1 domain at replay (d3d12_com.cpp:929comment covers both). Thanks @QemmHD for the 225-refusals A/B on the RTX 4070 SUPER and @Sangonapou for the 3080 Ti run — the "depthBounds not enabled on the test device" path is real, it's why the enabled branch only shows on capable hardware.@thiefyzheng thanks for picking up @djrolfes's console-stream finding. I'd keep #1695 stacked with
Depends on: #815rather than folding it in: this head is what @QemmHD just A/B-tested, and a stacked PR keeps the cache-key/extras fix reviewable on its own. If a maintainer would rather have one PR I'll fold it in.Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-25T14:24:43Z.
Rebased onto current main (
71a769d7d, post-#1671/#1691/#1703) —a635392c6. One conflict ind3d12_com.cpprecord_mesh_draw: kept both the newmin/max_depth_bounds_Draw fields and main'snote_direct_heap_indexing(graphics_.layout).Local run on this box (GTX 1050, driver 582.28, Windows 11, Debug):
d3d12_comPASS. Two failures in the run are baseline-on-this-host, not this change:d3d12_vulkan_deviceheap_mismatches: this host's D3D12 runtime refuses every CreateHeap — handled by #1721.d3d12_close_parity: threeCopyTextureRegion uploadrows (offset 16, offset 4, row pitch 260) markedstricternow match WARP on current main — main's own table entries, my diff only adds the fiveOMSetDepthBoundscases (all match WARP, incl. NaN and out-of-range).@djrolfes the conflict was mechanical; your lazy-path finding is covered separately by @thiefyzheng's #1695 stacked on this PR.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:57:19Z.
Hi @kotekompotek, thanks for this pull request. It currently conflicts with
main(conflicting file(s):runtime/shims/d3d12_com.cpp,runtime/shims/d3d12_com.h,runtime/shims/d3d12_vulkan_device.cpp,runtime/src/vulkan_backend.h,runtime/src/vulkan_replay.h,runtime/test/d3d12_mesh_test.cpp,runtime/test/d3d12_vulkan_device_test.cpp), so it carries theneeds rebaselabel. CONTRIBUTING.md asks authors to rebase their branch onmain; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:32:07Z.
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.Pull request closed