Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Tested fedc442 on a GPU with both native D3D12 Tier 3 and the Vulkan property. The RX 5700 XT in the description has
NVIDIA's native No game files. AI-assisted (Claude). |
0xTehuti
left a comment
There was a problem hiding this comment.
Tested commit fedc442 on Turing hardware (NVIDIA GeForce RTX 2070 SUPER).
Hardware & Environment
- GPU: NVIDIA GeForce RTX 2070 SUPER (TU104, Turing, 8192 MB VRAM)
- Driver: 595.79 (WDDM 3.2, Vulkan 1.4.304)
- OS: Windows 11 Pro x64 (Build 26100)
- Toolchain: MSVC 19.44.35225.0 (Visual Studio Community 2022 17.14), CMake 4.4, Windows SDK 10.0.26100.0
Capability Reports
- Vulkan:
VK_EXT_conservative_rasterization:yesfullyCoveredFragmentShaderInputVariable:truesubPixelPrecisionBits:8
- Native D3D12:
ConservativeRasterizationTier:3(D3D12_CONSERVATIVE_RASTERIZATION_TIER_3)
Execution Results
Built and tested via .\scripts\run_conservative_tier3_reference.ps1 -Device "2070":
UpdateCTestConfiguration from :C:/Users/Geko/orca/workspaces/Leonida/sweeper/runtime/build/tier3-reference/DartConfiguration.tcl
Parse Config file:C:/Users/Geko/orca/workspaces/Leonida/sweeper/runtime/build/tier3-reference/DartConfiguration.tcl
Test project C:/Users/Geko/orca/workspaces/Leonida/sweeper/runtime/build/tier3-reference
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 136
Start 136: d3d12_conservative_tier3_reference
136: Test command: C:\Users\Geko\orca\workspaces\Leonida\sweeper\runtime\build\tier3-reference\RelWithDebInfo\d3d12_conservative_tier3_reference_test.exe
136: Working Directory: C:/Users/Geko/orca/workspaces/Leonida/sweeper/runtime/build/tier3-reference
136: Test timeout computed to be: 1500
136: device: NVIDIA GeForce RTX 2070 SUPER
136: subgroup sizes: 32..32 (default 32), requirable in stages 0x3fff, subgroupSizeControl on, computeFullSubgroups on
136: Vulkan adapter: NVIDIA GeForce RTX 2070 SUPER; VK_EXT_conservative_rasterization=yes; fullyCoveredFragmentShaderInputVariable=true; subPixelPrecisionBits=8
136: Native D3D12 adapter: NVIDIA GeForce RTX 2070 SUPER; ConservativeRasterizationTier=3
136: SV_InnerCoverage reference: 4 scenes, 1166 conservative fragments, 812 inner pixels, 812 guaranteed interior pixels checked; no false positives
1/1 Test #136: d3d12_conservative_tier3_reference ... Passed 0.54 sec
The following tests passed:
d3d12_conservative_tier3_reference
100% tests passed out of 1
Validation note: testing under LEONIDA_VK_VALIDATION=1 correctly halts with LEONIDA_VK_VALIDATION is set but VK_LAYER_KHRONOS_validation is not installed on systems without the LunarG SDK validation layer installed, consistent with vk_test_device.h.
Code Review Findings
- Clean-room compliance: Verified. Completely procedural synthetic geometry (4 test triangles rendered in a 32x32 viewport) and runtime HLSL compilation via
d3dcompiler_47.dll. Zero game assets, carved files, or dumps. - Device matching: The Vulkan
VkPhysicalDeviceIDProperties.deviceLUIDcorrectly maps to the matching native host D3D12 adapter viacopycmp::try_create_host(device, adapter, &luid). - Skip behavior: Cleanly returns CTest skip code 77 (
SKIP_RETURN_CODE 77) when running under Wine, if LUID matching fails, when native Tier 3 is unsupported, or ifd3dcompiler_47.dllis unavailable. - Coverage logic: The inner uncertainty calculation (
required_margin = 1.0 / 64.0) accurately tests for zero false positives (margin = -1e-10) while verifying guaranteed inner coverage. Fragment counts (1,166) and inner pixels (812) on Turing TU104 are identical to Ampere GA104 results.
LGTM.
No game files were used. AI-assisted verification.
|
Tested on NVIDIA GeForce RTX 5060 (Blackwell, 8 GB), driver 617.14, Windows 11 (26200), VS 2022 Build Tools (MSVC 14.44), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1: pass, with the same numbers as the Ampere and Turing runs above (
AI-assisted check (Claude Code). No game files. |
|
Update: this follow-up is now available as draft PR #4290. Please attach supported-GPU results there so the implementation review and validation stay together. The explicit Vulkan InnerCoverage follow-up is ready for a supported-device check: https://github.com/73N1X/Leonida/tree/feat/conservative-rasterization-tier3 at a55ba1f. It builds on #3451 and this reference probe; #3970's published head is unchanged. Could someone with one of the confirmed cmake --build runtime/build --config RelWithDebInfo --target d3d12_conservative_tier3_test
$env:LEONIDA_VK_DEVICE='RTX 3070' # replace with your adapter substring
$env:LEONIDA_VK_VALIDATION='1'
ctest --test-dir runtime/build -C RelWithDebInfo -R '^(inner_coverage_oracle|d3d12_inner_coverage_guards|d3d12_inner_coverage_native|d3d12_conservative_tier3)$' -VThe positive test should print 48 Vulkan/native paired scenarios, not Local RX 5700 XT: full runtime build succeeded; CTest 142 passed, 9 skipped, 1 disabled, zero failures (152 registered), validation active. The CPU oracle, ABI/unsupported-device guards and all 48 native-only D3D12 scenarios pass. The positive Vulkan test correctly skips because this adapter reports the property false. Scope remains experimental: this is an explicit caller-owned shader-library contract using synthetic GLSL |
|
Superseded by #4290, which now includes this PR's native Tier 3 reference test, its CMake registration and the PowerShell runner. The test source and runner match this PR's head fedc442; the consolidated reference has also passed the local runtime checks. Closing this PR to keep one active Tier 3 implementation/review thread. No code is being discarded. This discussion and its independent GPU reports remain available as historical, exact-head evidence; #4290 links back here and no longer lists #3970 as a separate merge prerequisite. #4290 still depends on #3451. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claimed in the coordination issue as: BUILD-1082
What and why
Adds
d3d12_conservative_tier3_reference, a native D3D12 reference probe forSV_InnerCoverage. It reports the selected Vulkan device'sfullyCoveredFragmentShaderInputVariable, matches it to the native D3D12 adapter by LUID, then checks the native Tier 3 output against geometric guarantees on four synthetic triangles.This is deliberately independent of the open Tier 2 PR: it is based on
main, adds no Tier 3 support or emulation to the Vulkan layer, and does not change Tier 1/2 behavior. Please run the documented command on any GPU that reports native D3D12 Tier 3. If multiple GPUs are present, pass-Device '<name substring>'to select one; post the GPU driver, Vulkan property, D3D12 tier, and test result in the PR comments. No game files are needed.Tested
.\scripts\run_conservative_tier3_reference.ps1— passed (CTest 1/1) on AMD Radeon RX 5700 XT, driver 32.0.21045.5002, Windows SDK 10.0.26100.0. Vulkan reportedfullyCoveredFragmentShaderInputVariable=false; native D3D12 reported Tier 3. Four scenes, 1,166 conservative fragments, 812 guaranteed interior pixels checked; no false positives.Checklist
docs/design.md, with how it was confirmed. (N/A: this PR adds no translator rule.)