test: respect LEONIDA_HOST_ADAPTER and layer LUID in d3d12_texture_tiles (RT-TEXTURE-TILES-HOST-ADAPTER) #1941
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1941
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1941/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@abnalstlll-byte on GitHub · 2026-11-25 16:19 UTC · original
abnalstlll-byte:feat/rt-texture-tiles-host-adapter→main· +66 −4 · 1 files · 1 commits · merged 2026-11-25 19:20 UTCItem ID:
RT-TEXTURE-TILES-HOST-ADAPTER(claimed in Issue #1608: #1608)Addresses Finding #623 by @efeekrb (Issue #1608):
runtime/test/d3d12_texture_tiles_test.cpp:251previously used an unguidednative_device()adapter enumeration loop that completely ignoredLEONIDA_HOST_ADAPTERand the layer's Vulkan device LUID. On dual-GPU systems (such as laptops with integrated Intel UHD and discrete NVIDIA RTX), the native D3D12 reference device defaulted to the iGPU and failed on Intel CopyTiles offset rounding quirks even whenLEONIDA_HOST_ADAPTERwas explicitly pointed to the NVIDIA GPU.Changes
<cctype>and<string>includes inruntime/test/d3d12_texture_tiles_test.cpp.tiled_device(IDXGIFactory4&, LUID, bool)andnative_device(LUID layer_luid)matching the verified pattern inruntime/test/d3d12_buffer_tiles_test.cpp.LEONIDA_HOST_ADAPTER(case-insensitive substring match or"warp"). When unset, default to the adapter matching the layer Vulkan device LUID (vulkan->GetAdapterLuid()).main(), ensure that whenLEONIDA_HOST_ADAPTERis unset and the layer's adapter supports Tier 2 tiled resources, the native reference device runs on the exact same adapter.Verification
g++ -std=c++20 -fsyntax-only.python -I scripts/check_no_game_data.py runtime/test/d3d12_texture_tiles_test.cpp.python -I tests/test_text_write_line_endings.py.AI-assisted (Claude Code)
@aslan2142 on GitHub · 2026-11-25 19:20 UTC · original
Merged, thanks! It mirrors
d3d12_buffer_tiles_test.cpp. Under Wine,d3d12_texture_tilespasses on a RADV iGPU and skips on llvmpipe, the same as onmain; no test went from pass to fail.main6a2e9ea93+ae74f89d1: it merges cleanly; the semantic suite passes (491 files, 6,312 tests, 0 files failed); the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 1 changed files.AI-assisted (Claude Code, Claude Opus 5.5).