Repository navigation
Tests: build and register the runtime ABI test - #953
Conversation
runtime/test/test_runtime_types.cpp held 595 lines of D3D12/XMem size, alignment and member-offset checks against the Windows SDK, but no CMake target referenced it, so none of its static_asserts or 53 runtime checks ever compiled or ran. Add runtime_types_test with the src/shims include directories and a ctest entry. The test passes as committed. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
Re-verified on current Why it is worth taking: One caveat for whoever rebuilds in a scratch worktree: my first build there stopped with AI-assisted. |
|
Tested bc3aac5 (on main) on Windows: pass. Windows 11 Home 10.0.26300, MSVC 14.44.35207, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja RelWithDebInfo (
AI-assisted (Claude Code). No game files. |
quackottu
left a comment
There was a problem hiding this comment.
Tested bc3aac5 on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
ctest -C RelWithDebInfo: 100% tests passed, 0 tests failed out of 34- 32 test programs in the build pass with 0 validation errors
d3d12_clear_testfails (R8G8B8A8_UNORM/SNORM 0.5 ties and a D16 clear byte differ from WARP) exactly as onmain4a36bb1 here, so not from this PR; #521 addresses it
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
runtime/test/test_runtime_types.cppis a 595-line ABI test:static_asserts and 53 runtime checks for D3D12 and XMem structure sizes, alignments and member offsets against the Windows SDK. No CMake target built it.grep test_runtime_types runtime/CMakeLists.txtfinds nothing, so all of those assertions have been dead since the file landed — and a recent merged commit (3da355d) still edited the file, which is how I noticed.This adds:
inside the existing
if(WIN32)test block. No test code changes.Testing
Windows 11 x64 build 26200, MSVC from VS 2022,
RelWithDebInfo,scripts/build_runtime.ps1.runtime_types_testbuilds and reportsOK (53 checks)— all pass as committed (root-signature, descriptor/view, resource/barrier, XMem allocator/VirtualQuery/working-set, andD3D12XboxCreateDeviceparameter-layout checks).ctest: 34/34 passed on this base (the new test included); the previously failingd3d12_vulkan_devicecase passes on currentmain.Claimed in #634: #634 (comment)
No game files. AI-assisted.