Repository navigation
tests: honor LEONIDA_HOST_ADAPTER in fsr_dispatch_test and skip null PC D3D12 devices - #8160
Sakura-Byte wants to merge 1 commit into
Conversation
|
Tested
Matches the self-test results in the description. No game files. AI-assisted (Claude). |
TEST validation — ApproveValidated on CPU (no GPU, no game files). Self-tests designed to run without a GPU/package. What changed: 4 files (+381/−38). Adds Verification (author):
Overlap: Touches Consistency: Follows same skip-77 convention as #8022 and other D3D12 tests. Recommendation: Approve / merge. Well-tested, fully CPU-runnable (no GPU, no game files), negative controls confirm correctness. |
|
Tested d3b4e41 on NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 build 26300, VS 2022 Build Tools (MSVC 19.44), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, RelWithDebInfo: pass. Built Synthetic inputs only, no game files. AI-assisted (Claude Code). |
|
Tested d3b4e41 on Windows 11 Pro 10.0.26300, MSVC 14.51 (VS Build Tools 2026), Windows SDK 10.0.26100, NVIDIA GeForce RTX 4060 / 621.24, Khronos Vulkan headers via Merged onto main dde82f2 (clean), full runtime build, Overlaps #8022, which adds the same null-device 77 skip to the same two files. They will conflict, so only one should land. AI-assisted (Claude Code). No game files. |
|
Tested
AI-assisted: yes (Claude ran the build and tests; results checked by me). |
Claimed in the coordination issue as: #7804 (comment) (following @XFlawless1's finding and @XmYx's finding)
Depends on: none (note: touches
runtime/test/fsr_dispatch_test.cppandruntime/test/bvh_builder_test.cpp, which #5812 also edits for a separate Windows 10 resource refusal check)What and why
runtime/test/host_adapter.h: guardsvk_test_device.handhostadapter::reference(...)withLEONIDA_HOST_ADAPTER_HAS_VULKAN(!defined(LEONIDA_HOST_ADAPTER_DXGI_ONLY) && (defined(VK_VERSION_1_0) || __has_include(<vulkan/vulkan.h>))) so non-Vulkan / DXGI-only test targets keep compiling when reusinghostadapter::wanted(),hostadapter::named(), andhostadapter::description().runtime/test/fsr_dispatch_test.cpp: replacescreate_pc_device()withselect_pc_device()+handle_missing_pc_device()to honorLEONIDA_HOST_ADAPTER(case-insensitive substring or"warp", failing with exit1on mismatch;LEONIDA_FSR_WARP=1takes precedence) and printSKIP(namingLEONIDA_FSR_DEVICE=vulkan) + exit77(SKIP_RETURN_CODE) when no PC D3D12 device exists (unless prior checks failed); adds--self-test,--self-test-null-skip, and--self-test-bad-adapter.runtime/test/bvh_builder_test.cpp: addsselect_pc_device()+handle_missing_pc_device()so a missing PC D3D12 device printsSKIP(namingLEONIDA_BVH_DEVICE=vulkan) and exits77while preserving prior failures as1; adds--self-testand--self-test-null-skip.runtime/CMakeLists.txt: registersfsr_dispatch_selftestandbvh_builder_selftestCTest targets.Tested
Windows 11, MSVC 2022 (
19.44.35228.0), Windows SDK10.0.26100.0, Vulkan SDK1.4.363.0, NVIDIA GeForce RTX 5090 D / driver621.14.python -I scripts/check_no_game_data.pyon all 4 changed files -> exit0;git diff --check-> clean;0CRLF bytes across all 4 files;git merge-tree --write-tree upstream/main HEAD-> clean (0conflicts).RelWithDebInfo,-DLEONIDA_REQUIRE_VULKAN=ON):654targets built,0warnings.-DLEONIDA_REQUIRE_VULKAN=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Vulkan=ON, Vulkan headers hidden):19/19targets compiled cleanly;fsr_dispatch_test --self-testandbvh_builder_test --self-testpassed (0 failures).ctest5-test target subset (host_adapter|fsr_dispatch|fsr_dispatch_selftest|bvh_builder|bvh_builder_selftest):3/5passed,2/5skipped (fsr_dispatch,bvh_builderwithoutLEONIDA_GAME_DIR),0failed; expanded13-testhost_adapter/FSR/BVH consumer subset:11/13passed,2skipped,0failed.--self-testpassed (0 failures) on both;--self-test-null-skipexited77on both;--self-test-bad-adapterexited1onfsr_dispatch_test.LEONIDA_GAME_DIRpointed to own Xbox Series 1.0.2.1 package; outcomes only, no package bytes or logs):fsr_dispatch_test: default (RTX 5090 D) ->OK(0);LEONIDA_HOST_ADAPTER=warp(WARP) ->OK(0);LEONIDA_HOST_ADAPTER=radeon(AMD Radeon iGPU) ->OK(0);LEONIDA_HOST_ADAPTER=nonexistent_adapter->FAIL(1);LEONIDA_FSR_DEVICE=vulkan->OK(0).bvh_builder_test: default (WARP) ->OK(0);LEONIDA_BVH_DEVICE=vulkan->OK(0).explicit_hosthandling and returning1on null PC device):fsr_dispatch_selftestfailed (7 failures) andbvh_builder_selftestfailed (1 failure).AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)