Repository navigation
Conversation
|
Tested d7bfc0a on Windows 11 with NVIDIA GeForce RTX 4090 (32.0.16.2101) and AMD Radeon Graphics (32.0.21043.5001): pass. AI-assisted. I selected each Vulkan driver separately with VK_DRIVER_FILES and set LEONIDA_VK_VALIDATION=1. I ran this command on each adapter:
All four tests passed on each adapter. The new test compared 38 calls across three command-list types. All 114 checks matched the host references on each run. The test reported zero Vulkan validation errors. I also built the new test against merge base 3faac55. On the RTX 4090 it reported 70 failed assertions and exited with code 1. For example, the layer accepted CopyRTAS on a COPY list. The host rejected it. |
|
Tested d7bfc0a on NVIDIA GeForce RTX 4080, driver 617.42: d3d12_queue_type_restrictions_test exits 0 with "queue-type restrictions: 38 calls (114 checks) on layer, 114 host-compared, 0 host-disagreed, 0 failures, 0 validation errors". d3d12_bundle_forbidden_test exits 0 with "bundle forbidden calls: 10 on the layer, 10 compared with the host, 0 hosts disagree, 0 failures", and d3d12_com_test exits 0. No validation layer was loaded in this run, so the "0 validation errors" figure is the test's own count. AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Reviewed d7bfc0a (base 3faac55). git diff --check clean (3 files, +812/−11).
Built and ran in a fresh worktree:
cmake -S runtime -B runtime/build-5252 -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=ON -DLEONIDA_BUILD_WINDOWS_RUNTIME=ON -DVulkan_INCLUDE_DIR=C:/VulkanSDK/1.4.363.0/Include -DVulkan_LIBRARY=C:/VulkanSDK/1.4.363.0/Lib/vulkan-1.lib
cmake --build runtime/build-5252 --target d3d12_queue_type_restrictions_test d3d12_com_test d3d12_bundle_forbidden_test
LEONIDA_VK_DEVICE='RTX 5070 Ti' LEONIDA_VK_VALIDATION=1 runtime/build-5252/d3d12_queue_type_restrictions_test.exe
d3d12_queue_type_restrictions: PASS — 38 calls / 114 checks, 114 host-compared, 0 host-disagreed, 0 failures, 0 validation errors; COPY and COMPUTE positive controls executed with correct readback. Every row matched host D3D12 (RTX 5070 Ti and WARP), including ResolveSubresource, ClearState, SetDescriptorHeaps and SetPipelineState refused on COPY, ExecuteIndirect(draw) refused on COMPUTE, and AtomicCopyBufferUINT allowed on all three types.
d3d12_com_test: PASS (16 colour/depth/stencil texels matched). d3d12_bundle_forbidden: PASS (10/10 host-compared, 0 failures).
Verdict: no blockers; the gates match measured host behaviour on this machine.
Minor test note: the host arm needs d3dcompiler_47.dll; if it is missing the run reports 0 host-compared and silently checks the layer against the hard-coded expectations only.
d7bfc0a to
35e9089
Compare
|
Tested 35e9089 on NVIDIA GeForce RTX 4080, driver 617.42: d3d12_com_test exits 0, d3d12_bundle_forbidden_test exits 0 with "bundle forbidden calls: 10 on the layer, 10 compared with the host, 0 hosts disagree, 0 failures", and d3d12_queue_type_restrictions_test exits 0 with "queue-type restrictions: 38 calls (114 checks) on layer, 114 host-compared, 0 host-disagreed, 0 failures, 0 validation errors". No validation layer was loaded in this run. AI-assisted. |
|
Tested 35e9089 merged with main 561b65a (merge was a no-op) on Windows 11 native (MSVC 14.51 via VS 18, CMake + Ninja, RelWithDebInfo; device NVIDIA GeForce RTX 4080 SUPER, driver for the default adapter, plus WARP): pass Built and ran the PR's own target Negative control: with runtime/shims/d3d12_com.cpp checked out from main and rebuilt, the same test prints Not run: the other d3d12_* tests and ctest as a whole, so I did not check that nothing else in the repo records these calls on a COMPUTE or COPY list. Worktree and ref removed afterwards. |
35e9089 to
d9c3d7c
Compare
|
Rebased cleanly onto latest Re-verified on NVIDIA GeForce RTX 5090 with
AI-assisted (Gemini 4 Neon). |
|
Tested Built with MSVC 14.51 (VS 2026), Visual Studio generator,
Negative control: with Not run: the full AI-assisted. |
d9c3d7c to
5ea6f5f
Compare
|
Rebased cleanly onto origin/main (dde82f2) -> 5ea6f5f, preserving the newly merged #6610/#6644/#6674 changes in Re-verified on NVIDIA GeForce RTX 5090 with LEONIDA_VK_VALIDATION=1 (0 VUIDs / 0 validation errors):
AI-assisted (Gemini 4 Neon). |
|
Tested Built The likely cause: |
5ea6f5f to
803e147
Compare
|
Rebased cleanly onto Re-verified on NVIDIA GeForce RTX 5090 with
AI-assisted (Gemini 4 Neon). |
|
Tested
AI-assisted: yes. |
|
Tested
No game files. AI-assisted (Claude Code). |
Claim: #5156 (comment)
Summary
Enforces standard D3D12 command-list recording restrictions for
D3D12_COMMAND_LIST_TYPE_COMPUTEandD3D12_COMMAND_LIST_TYPE_COPYlists inruntime/shims/d3d12_com.cpp, verified 1:1 against real Windows host D3D12 (RTX 5090, AMD Radeon iGPU, and WARP without the debug layer):COMPUTEandCOPYlists (keepingBUNDLErules intact):DrawInstanced,DrawIndexedInstancedClearRenderTargetView,ClearDepthStencilView,ResolveSubresourceSetGraphicsRootSignature,SetGraphicsRootDescriptorTable,SetGraphicsRoot32BitConstant,SetGraphicsRoot32BitConstants,SetGraphicsRootConstantBufferView,SetGraphicsRootShaderResourceView,SetGraphicsRootUnorderedAccessViewIASetPrimitiveTopology,IASetVertexBuffers,IASetIndexBufferRSSetViewports,RSSetScissorRectsOMSetRenderTargets,OMSetBlendFactor,OMSetStencilRef,OMSetFrontAndBackStencilRefCOPYlists (andExecuteIndirectwith draw signatures refused onCOMPUTElists, matching all 3 host adapters):Dispatch,ClearState,SetPipelineState,SetDescriptorHeapsSetComputeRootSignature,SetComputeRootDescriptorTable,SetComputeRoot32BitConstant,SetComputeRoot32BitConstants,SetComputeRootConstantBufferView,SetComputeRootShaderResourceView,SetComputeRootUnorderedAccessViewExecuteIndirect(refused onCOPY; draw/draw-indexed command signatures refused onCOMPUTE)BuildRaytracingAccelerationStructure,EmitRaytracingAccelerationStructurePostbuildInfo,CopyRaytracingAccelerationStructureAtomicCopyBufferUINT/AtomicCopyBufferUINT64are allowed onDIRECT,COMPUTE, andCOPYon host D3D12 (only forbidden onBUNDLE), so they remain allowed.DiscardResourceandClearUnorderedAccessView*untouched to stay disjoint from d3d12: fix DiscardResource list/3D-rect parity and compute-queue layout barrier #5068 and d3d12: support UAV rectangle clears on 3D volumes, non-attachment formats, and compute queues #5170.New Test
runtime/test/d3d12_queue_type_restrictions_test.cpp(registered asd3d12_queue_type_restrictionsinruntime/CMakeLists.txtwithSKIP_RETURN_CODE 77andFAIL_REGULAR_EXPRESSION "Validation Error;VUID-"):Close()pass/fail verdict for all 38 calls acrossDIRECT,COMPUTE, andCOPYlists (114 checks) against Windows host hardware adapter + WARP (skipped under Wine), asserting 0 disagreements.COPYandCOMPUTEqueues underLEONIDA_VK_VALIDATION=1.Verification (Windows 11,
LEONIDA_VK_VALIDATION=1)d3d12_com— Passed (0.28s, 0 validation errors)d3d12_vulkan_device— Passed (12.49s, 0 validation errors)d3d12_bundle_forbidden— Passed (2.27s, 10/10 host-compared, 0 failures, 0 validation errors)d3d12_queue_type_restrictions— Passed (0.65s, 38 calls / 114 checks, 114 host-compared, 0 host-disagreed, 0 failures, 0 validation errors; COPY + COMPUTE positive controls verified)LEONIDA_VK_DEVICE=AMD, default adapter + WARP):d3d12_com— Passed (0.23s, 0 validation errors)d3d12_bundle_forbidden— Passed (2.14s, 10/10 host-compared, 0 failures, 0 validation errors)d3d12_queue_type_restrictions— Passed (0.55s, 38 calls / 107 non-PSO checks on 128B push-constant iGPU, 107 host-compared, 0 host-disagreed, 0 failures, 0 validation errors; COPY positive control verified)AI-assisted (Gemini 4 Neon).