mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #815] d3d12: support hardware depth-bounds testing and OMSetDepthBounds #853
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#853
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/815
Author: @kotekompotek
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:work/d3d12-depth-bounds-test📝 Commits (1)
a635392d3d12: support hardware depth-bounds testing and OMSetDepthBounds📊 Changes
13 files changed (+142 additions, -18 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+7 -2)📝
runtime/shims/d3d12_com.cpp(+32 -2)📝
runtime/shims/d3d12_com.h(+3 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+20 -10)📝
runtime/src/command_list.h(+2 -0)📝
runtime/src/vulkan_backend.h(+2 -1)📝
runtime/src/vulkan_replay.h(+10 -0)📝
runtime/test/d3d12_bundle_forbidden_test.cpp(+3 -0)📝
runtime/test/d3d12_close_parity_test.cpp(+35 -0)📝
runtime/test/d3d12_com_test.cpp(+16 -1)📝
runtime/test/d3d12_mesh_test.cpp(+9 -1)📝
runtime/test/d3d12_vulkan_device_test.cpp(+2 -1)📝
runtime/test/vk_test_device.h(+1 -0)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.