Repository navigation
Conversation
|
Tested The Windows 10 runtime rejects a A
So host parity cases for Otherwise no regression: full runtime AI-assisted (Claude Code). |
|
Tested 37def95 merged onto main 5d74c27 (clean merge) on Windows 11 Pro 24H2 (build 26100), AMD Radeon RX 9070 (RDNA4 / GFX1201), AMD Software 26.10.1 (Vulkan 1.4.359), MSVC 14.44 (VS 2022 Community 17.14.40), RelWithDebInfo: pass. This confirms that the host parity failure reported on Windows 10 by @adorted ( Results
|
|
Tested
AI-assisted (Claude Code). Synthetic test only, no game files. |
|
Tested on AMD Radeon RX 7700 XT (RDNA3), AMD Windows driver 32.0.32029.2010, Windows 11, MSVC 14.51 Release, at 37def95. Full No regression. The only failures are the same 5 as on AI-assisted (Claude Code). |
Fixes
parse_pipeline_streamandID3D12Device2::CreatePipelineStatevalidation and undefined behavior inruntime/shims/d3d12_vulkan_device.cpp, verified empirically against live Windows 11 D3D12 (both WARP and native NVIDIA GeForce RTX 5090).Claim: #9522 (comment)
Changes
ID3D12Device2::CreatePipelineStatenulldesc/ nullout/riidprecedence:*outwhen non-null and rejectsdesc == nullptrwithE_INVALIDARGbefore checkingout.out == nullptr, returningS_FALSEon valid descriptors (matching live Windows 11 WARP + RTX 5090, including whenriidis unrelated) and the exact validationHRESULT(E_INVALIDARG) on invalid descriptors.parse_pipeline_stream:pShaderBytecode && BytecodeLength), matching live Windows 11 D3D12 where empty shader bytecodes in other stages (e.g.CSwith emptyVS/MS/AS, orVS+PSwith emptyCS/MS/AS) and graphics-only state subobjects alongside a compute stream are ignored while structural checks (e.g.NumRenderTargets > 8, duplicates, truncation) still returnE_INVALIDARG.VS/MS/ASwithE_INVALIDARG.MS/AS) mixed with legacy geometry stages (VS/HS/DS/GS) orStreamOutput, as well asASwithout non-emptyMS, withE_INVALIDARGbeforeE_NOTIMPLchecks.E_NOTIMPLchecks (DepthBoundsTestEnable, separate front/back stencil masks,ViewInstanceCount > 0) to graphics pipelines after stream validation so compute streams match live Windows 11 (S_OK).round_upwith overflow-checked arithmetic (checked_round_up) and checksat + sizeof(type)againstSIZE_MAX.if (!ok) break;before reading/convertingRASTERIZER1/RASTERIZER2andRENDER_TARGET_FORMATSpayloads.NaN,+Inf,-Inf) and out-of-range (±1e20f,±FLT_MAX,±2^31) floatDepthBiasvalues without C++ FP-to-int UB (both forr.DepthBiasandlog_once), matching live Windows 11 D3D12 (S_OK).runtime/test/d3d12_pipeline_stream_validation_test.cppregistered inruntime/CMakeLists.txtwithSKIP_RETURN_CODE 77andFAIL_REGULAR_EXPRESSION "Validation Error;VUID-", comparing Leonida Vulkan directly against live WARP and native HW D3D12.Verification (Windows 11, NVIDIA GeForce RTX 5090 + WARP)
d3d12_pipeline_stream_validation(LEONIDA_VK_VALIDATION=1): PASS (66 checks, 122 host parity comparisons across RTX 5090 + WARP, 0 VUIDs)d3d12_pso_validation(LEONIDA_VK_VALIDATION=1): PASS (60 layer checks, 100 host comparisons across 2 host devices, 0 VUIDs)d3d12_com(LEONIDA_VK_VALIDATION=1): PASS (0 VUIDs)d3d12_mesh: PASS (note: pre-existingVUID-vkCmdDrawMeshTasksEXT-pipelineStatistics-07076under validation is unrelated to this PR)git diff --check origin/main..HEAD: cleanAI-assisted (Gemini 4 Neon).