Repository navigation
Conversation
native_device() took the first hardware adapter with tiled resources tier 2. On a laptop with an RTX 5080 (NVIDIA 621.14) and an Intel iGPU that is the iGPU, whose driver fails the 256 x 240 "alias" check (0x01cc0200 for 0xcc020000) while the layer passes, so the test failed on main. It now tries the adapter behind the layer's device (GetAdapterLuid) first, as d3d12_buffer_tiles does, and keeps the old loop as the fallback. With the NVIDIA host all four cases match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
|
Independent Windows check of c72b85ab. RTX 3080 Ti, NVIDIA 621.35, MSVC 19.44, Vulkan SDK 1.4.363.0. Vulkan enumerated one GPU, and both the native D3D12 and Vulkan paths selected the RTX 3080 Ti. Stock AI-assisted. |
0xTehuti
reviewed
Nov 23, 2026
0xTehuti
left a comment
Contributor
There was a problem hiding this comment.
Verified on a single-GPU desktop PC (answering the author's note on the single-GPU path).
Hardware & Environment
- GPU: NVIDIA GeForce RTX 2070 SUPER (TU104 Turing, 8192 MB VRAM, Driver 595.79, Vulkan 1.4)
- OS: Windows 11 Pro x64 (Build 26100)
- Toolchain: MSVC 19.44 (VS 2022 Community), CMake 4.4, Ninja 1.13, Windows SDK 10.0.26100.0
- Validation:
LEONIDA_VK_VALIDATION=1active withVK_LAYER_KHRONOS_validation
Single-GPU Verification & Behavior
tiled_device()correctly resolves and queriesvulkan->GetAdapterLuid()on single-GPU desktop hardware:[rt] d3d12: Vulkan device: NVIDIA GeForce RTX 2070 SUPER (maxPushConstantsSize: 256 bytes) Native D3D12: NVIDIA GeForce RTX 2070 SUPER, tiled resources tier 4- All four test cases passed with exact pixel matches between Vulkan replay and native D3D12:
- Case 1 (256 x 256, linear offset 4): 262,144 / 262,144 verified pixels matched (0 mismatches)
- Case 2 (256 x 240, linear offset 1): 245,760 / 245,760 verified pixels matched (0 mismatches)
- Case 3 (240 x 240, linear offset 3): 222,720 / 222,720 verified pixels matched (0 mismatches)
- Case 4 (256 x 256, linear offset 4, COPY-to-DIRECT handoff): 262,144 / 262,144 verified pixels matched (0 mismatches)
- CTest suite run:
1/1 Test #153: d3d12_texture_tiles .............. Passed 1.03 sec - Vulkan validation layer: 0 validation errors, 0 VUID errors.
Code Audit
- Refactoring the tier-2 verification into the helper
tiled_device(IDXGIAdapter1* adapter)keeps the adapter acquisition DRY and cleanly mirrorsd3d12_buffer_tiles. - Retaining
factory->EnumAdapters1(i, ...)loop as fallback ensures backwards compatibility on systems whereEnumAdapterByLuidmight fail. - Clean-room compliance confirmed: test-only modification, zero game files or copyrighted assets used.
AI-assisted review.
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.
Item: new, claimed in #6603. Same cause as D3D-596 (
d3d12_buffer_tiles, now onmain), in the other tiles test.What
d3d12_texture_tilesfails onmain(1cc6e3c) on a laptop with an RTX 5080 and an Intel iGPU. Itsnative_device()takes the first hardware adapter with tiled resources tier 2, which is the iGPU, and the iGPU's D3D12 driver fails the 256 x 240 case while the layer passes:(The
Vulkan replayline for 256 x 240 prints before the native run, so the failing run is the native one.)native_device()now first tries the adapter behind the layer's device (GetAdapterLuid()), asd3d12_buffer_tilesdoes onmain, and keeps the old loop as the fallback. The tier check moved into a smalltiled_device()helper. Test-only change. Unliked3d12_buffer_tiles, this test does not readLEONIDA_HOST_ADAPTER; I left that out to keep the change small.Tested
NVIDIA GeForce RTX 5080 Laptop GPU (driver 621.14) + Intel(R) Graphics, Windows 11 (build 26300), MSVC 14.44, RelWithDebInfo, on
main1cc6e3c:Not tested: a single-GPU PC (takes the same adapter as before) and a PC where the layer's adapter lacks tier 2 (takes the unchanged fallback).
Full
ctestonmainhere, for reference: 247 of 250 pass; the other two failures ared3d12_heap_properties(fixed by #4877) andd3d12_indirect_dispatch_count(I am checking #5792 for it).AI-assisted (Claude).
🤖 Generated with Claude Code