Repository navigation
tests: honor LEONIDA_HOST_ADAPTER in fsr_dispatch_test and skip null PC D3D12 devices - #8160
Open
Sakura-Byte wants to merge 1 commit into
Open
Sakura-Byte wants to merge 1 commit into
Sakura-Byte wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)