Repository navigation
Conversation
|
Your claim is there ( AI-assisted (Claude Code). |
|
@MoonEyes Added the claim ID ( AI-assisted: Antigravity |
|
RUN (independent run on Windows, #2855 head 45f7be9, merged locally into main 3393cee with This machine runs Windows 11 Pro 26300, where the test does not fail on main. The red in the body ( Commands, in
Not covered: Windows 10 (the red), other GPUs. Machine: Windows 11 Pro 26300, i9-13900K, 64 GB, RTX 3090 24 GB, NVIDIA 621.40, Rust 1.98.1. |
|
Verified by MoonEyes (another person than the author) on head In-game run with the six others of a batch on AI-assisted (Claude Code). |
VERIFY-2855 — Linux, Rust 1.98.1 (the pinned toolchain), no GPU device, no game filesVerdict: PASS on what I could check, and one gap worth closing. The change is right and its API use is exact — I checked every field name and function signature against the Head 1. What it changesThe test // d3d12/crates/leonida-gpu/src/pipeline/host.rs:1303 root_signature()
Flags: input
| D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED
| D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED,The pull request builds the same empty versioned root signature inline, with only 2. The flags are the SM 6.6 onesFrom pub const D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT: D3D12_ROOT_SIGNATURE_FLAGS = D3D12_ROOT_SIGNATURE_FLAGS(1i32);
pub const D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED: D3D12_ROOT_SIGNATURE_FLAGS = D3D12_ROOT_SIGNATURE_FLAGS(1024i32);
pub const D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED: D3D12_ROOT_SIGNATURE_FLAGS = D3D12_ROOT_SIGNATURE_FLAGS(2048i32);
3. The API use matches the crate exactlyI checked every name the new code uses against the
The types are in scope: The new code also copies the blob into a 4. An empty root signature is the right thing hereThe pull request says "the shaders bind no descriptors". The two shaders the test compiles are: const VS: &str = "float4 main(uint i : SV_VertexID) : SV_Position { … }";
const PS: &str = "float4 main() : SV_Target { return 1; }";Neither reads a resource, so there is nothing for a root parameter to bind. ✓ An empty root signature is correct. The production path is untouched: 5. The sibling test with the same problem
// d3d12/crates/leonida-gpu/src/pipeline/host.rs:1529 (in a_mesh_pipeline_loads_from_the_library)
let (root, root_blob) = root_signature(&host.device, &[], &[], false).unwrap();so it hits the same SM 6.6 flags, and the same inbox A cheaper way to cover both, if the maintainer prefers it: 6. What this pull request does and does not affect in CI
so the test this pull request changes does not run in CI at all. The fix is for a developer running 7. What I did not check
AI-assisted: MiniMax M3.1 Flash. |
|
I mirrored the two exact empty v1.1 root descriptors in a native inbox root-signature A/B. The base flags are 0xC01 (input assembler, CBV/SRV/UAV heap indexing, sampler heap indexing). The PR flags are 0x1. On both GitHub-hosted Windows Server 2022 and 2025 I created the Microsoft Basic Render Driver via EnumWarpAdapter and logged serialization and CreateRootSignature separately.
The lean descriptor works on both inbox versions. Server 2022 also accepts the old flags despite reporting SM 6.2, so the Windows 10 19045 rejection is still a separate platform result. This checks signature creation, with no rendering workload. Server 2022 log · Server 2025 log · MEASURED, AI-assisted (Codex). |
|
@imShangLi Thanks for the thorough audit! Two notes on §5:
@merzleckeier Thanks for the Server 2022/2025 WARP check as well! |
KelboLive
left a comment
There was a problem hiding this comment.
Test-only, and the root cause checks out: root_signature() adds the two SM 6.6 flags unconditionally (host.rs:1322-1324), the app exports D3D12SDKVersion/D3D12SDKPath (apps/leonida/src/agility.rs:33,49) while test binaries do not, and these vs_6_5/ps_6_5 shaders bind no descriptors — so the empty v1.1 signature is right and production stays on the flagged path.
Verified on Windows 11 / RTX 4070 Ti SUPER: the test passes without skipping, the lib suite is 600/0/55, and replacing the production OMSetDepthBounds with (0.0, 1.0) still fails it at host.rs:1883 (left 255, right 0), so the depth-bounds assertions still bite.
Two notes before merge:
- #2663 rewrites this same test function in the same hunk (6_5 → 6_0, SM 6.0 gating) and will conflict — a local merge on main fails at that block. Whichever lands second should keep this inline signature in place of
root_signature(...). - Afterwards,
root_signature()is only exercised bya_mesh_pipeline_loads_from_the_library(:1529), which skips on Windows 10. Aroot_signature_with_flags(...)argument would avoid the 30 duplicated lines and keep the production helper covered on every host.
Minor, expected: switching ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT to NONE still passes, since the test binds no input layout — the flag is not load-bearing here.
Merge is clean against current main; host.rs is unchanged upstream since the base, so the 380-commit gap is not drift.
|
The same call is made one function up, and this change leaves it alone.
let (root, root_blob) = root_signature(&host.device, &[], &[], false).unwrap();
Flags: input
| D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED
| D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED,( It does not show up in CI either way: the mesh test needs a host GPU with mesh shader support and a Two ways this could go, both fine by me:
I did not touch it myself: Verified against AI-assisted. |
Claim:
D3D12-TEST-DEPTH-BOUNDS-WIN10(#2570 (comment))Fixes
pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_drawsfailing deterministically on Windows 10 (HRESULT(0x80070057)/E_INVALIDARG).Root cause
Unit-test binaries do not export
D3D12SDKVersion/D3D12SDKPathand therefore run against inboxd3d12.dll. On Windows 10 22H2 (build 19045), inboxd3d12.dllrejectsD3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED(SM 6.6) passed byroot_signature(...)withE_INVALIDARG(0x80070057), even though this test'svs_6_5/ps_6_5shaders bind zero descriptors.Change
In
d3d12/crates/leonida-gpu/src/pipeline/host.rs(depth_bounds_pipeline_loads_and_filters_draws), serialize an emptyD3D_ROOT_SIGNATURE_VERSION_1_1root signature with onlyD3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT, leaving runtimeroot_signature(...)untouched.Verification
mainad7c62edb, solo and 8/8 parallel runs): panicked atpipeline/host.rs:1625:79withHRESULT(0x80070057).cargo test --locked -p leonida-gpu --lib pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws -- --exact --nocapture: passed (executed full GPU depth-bounds PSO load, draw, replay, and readback without skipping).cargo test --locked -p leonida-gpu --lib -- --test-threads=1: 600 passed, 0 failed, 55 ignored.GPUs tested: NVIDIA GeForce RTX 5070 12 GB (driver 621.40, Windows 10 Pro 22H2 build 19045, Ryzen 9 5950X 16C/32T)
AI-assisted: Antigravity