mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1941] [MERGED] test: respect LEONIDA_HOST_ADAPTER and layer LUID in d3d12_texture_tiles (RT-TEXTURE-TILES-HOST-ADAPTER) #1946
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1946
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1941
Author: @abnalstlll-byte
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:feat/rt-texture-tiles-host-adapter📝 Commits (1)
ae74f89test: respect LEONIDA_HOST_ADAPTER and layer LUID in d3d12_texture_tiles (RT-TEXTURE-TILES-HOST-ADAPTER)📊 Changes
1 file changed (+66 additions, -4 deletions)
View changed files
📝
runtime/test/d3d12_texture_tiles_test.cpp(+66 -4)📄 Description
Item ID:
RT-TEXTURE-TILES-HOST-ADAPTER(claimed in Issue #1608: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167704003)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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.