Repository navigation
Conversation
|
Tested e7dda42 on NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 (26200), MSVC 2022 RelWithDebInfo: pass.
AI-assisted (Claude Code). |
devnull34
left a comment
There was a problem hiding this comment.
Hardware & Environment
- Host: Windows 11 Build 26300 x64
- GPU: AMD Radeon RX 7900 GRE (16 GB VRAM, RDNA3 gfx1100, Vulkan 1.3.296)
- Toolchain: MSVC 19.44 (Visual Studio 2022), CMake 4.4
Verification Summary
Targets compiled with MSVC 19.44 and executed natively on AMD Radeon RX 7900 GRE:
-
d3d12_null_pso_noop_test.exe:null PSO cases=9 failures=0 validation=0- Verified that recording
DrawInstanced,DrawIndexedInstanced, andDispatchwithout a bound PSO (with zero and nonzero arguments, direct lists and bundles) are treated as legal no-ops rather than poisoning the list, matching native Windows D3D12 WARP (Close()returnsS_OK=0x00000000). - Verified that subsequent copy commands (
CopyBufferRegion) execute cleanly and match between WARP and layer without device removal.
-
CTest:
d3d12_null_pso_noop: Passed (0.17s).
-
Hygiene & Compliance:
- Clean-room compliant: pure synthetic unit tests; zero game assets or proprietary code.
git diff HEAD~1..HEAD --check: Clean (0 whitespace/formatting defects).
LGTM!
|
AI-assisted GPU verification of CTest passed 3/3 with |
|
Tested Defect: On Cause: Correction: change Native D3D12 on hardware (new data) The new test compares the layer with WARP only. I ran a small probe (no Leonida code) on each adapter of this computer. It creates a list with a null initial pipeline state and records one call.
Thus the two hardware drivers agree with this pull request for Runs on this head
Full
The only difference is |
|
Heads-up, for the coordinator and both authors: #6945 (@KorahX365, opened 15:31) and #7007 (@lines9686-rgb, opened 15:40) both implement D3D-482. They change the same AI-assisted (Claude Code). |
|
CPU/source integration review of One additional test coverage gap: the three new bundle cases only call Close. Bundle Draw/Dispatch commands are deferred, so those cases never exercise the changed record handlers on the parent list and would already return S_OK without the patch. Executing the bundle on a direct list and checking its outcome would cover the intended change. The source still distinguishes an absent PSO from a bound PSO with no root layout. The latter recording fails, but that distinction is not asserted by the new tests. I did not run GPU/WARP on the combined tree. Given the overlap with #7007, these checks would also be useful on whichever version is kept. AI-assisted. |
|
Tested |
|
Tested e7dda42 on a GeForce RTX 5050 with driver 610.88, Vulkan 1.4.341, Windows 11 25H2 (26200.9974), MSVC 19.52 Release, and glslang 16.6.0. d3d12_null_pso_noop, d3d12_compute, and d3d12_draw all passed. All nine null-PSO cases matched WARP, and the 256-byte buffer copy succeeded on both backends. With only d3d12_com.cpp restored from parent commit 1cc6e3c, the layer returned E_INVALIDARG in all six direct-list cases while WARP returned S_OK. The copy check also failed in the layer. I also reproduced the reported d3d12_close_parity failure. Four cases still expect the old stricter behavior, but Close() now returns S_OK on both the layer and WARP. Synthetic fixtures only. Vulkan validation off. AI-assisted (Codex). |
|
@KorahX365, you claimed D3D-482 first, so I'm closing my #7007 in favour of this PR. Three things from #7007 you may want to fold in. If you'd rather not, I'll open them as a small follow-up once this merges:
Code: commit |
e7dda42 to
a4e6759
Compare
|
Rebased onto
Re-verification
AI-Assisted (Antigravity - Gemini). |
Summary
Implements
D3D-482(claimed in #6750): brings null-PSODrawInstanced,DrawIndexedInstanced, andDispatchrecording parity in line with native Windows D3D12 instead of poisoningClose()withE_INVALIDARG.Changes
runtime/shims/d3d12_com.cpp:record_dispatch: return cleanly as a recording no-op when!compute_pipeline_; still callcheck(false)if a compute pipeline is bound without a compute root signature (!compute_.layout).record_draw: return cleanly as a recording no-op when!graphics_pipeline_; still callcheck(false)if a graphics pipeline is bound without a root signature or topology (!graphics_.layout || !topology_).runtime/test/d3d12_compute_test.cpp: updated the null-PSODispatch(1, 1, 1)expectation beforeClose()fromE_INVALIDARGtoS_OK(root-argument misuse check remainsE_INVALIDARG).runtime/test/d3d12_null_pso_noop_test.cpp+runtime/CMakeLists.txt: newd3d12_null_pso_nooptest comparing direct lists (nonzero & zero counts), bundles, and post-noopCopyBufferRegionqueue execution directly against native Windows D3D12 WARP.Verification
RelWithDebInfo) on Windows 11, AMD Radeon RX 6600 (driver32.0.21045.29003).ctest --test-dir runtime/build --output-on-failure -R d3d12_null_pso_noop|d3d12_compute|d3d12_draw-> 3/3 Passed (d3d12_null_pso_noop,d3d12_compute,d3d12_draw).git diff --check-> clean.AI-Assisted (Antigravity - Gemini).