You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
d3d12_xs: IDXGIDevice::QueryResourceResidency reports every object fully resident - #9660
Claimed in #9522 (new item: IDXGIDevice::QueryResourceResidency on the device proxy).
What
IDXGIDevice::QueryResourceResidency on the d3d12_xs device proxy returned E_NOTIMPL. The layer never evicts anything (MakeResident and Evict are no-ops, docs/d3d12_vulkan.mdID3D12Heap row), so the call now answers what is true: every object is DXGI_RESIDENCY_FULLY_RESIDENT.
count == 0 asks nothing and returns S_OK (no pointers read).
A null array, a null status array or a null entry is E_INVALIDARG, and nothing is written in that case.
The objects are not queried for an interface; the answer is the same for every one of them.
CreateSurface is unchanged (still refused with its log line); only its comment now names that method alone.
runtime/test/dxgi_device_test.cpp: the E_NOTIMPL check is replaced by count 0, two fences reported fully resident (the output is pre-filled with EVICTED_TO_DISK), and the three null cases.
Tested
Windows 11, NVIDIA GeForce RTX 5070 (driver 32.0.16.2114), MSVC 14.44 (VS 2022), CMake from VS 2022, -DLEONIDA_VULKAN_HEADERS_FETCH=ON.
1/1 Test #175: dxgi_device .... Passed; run directly it prints dxgi_device_test: 3 backend(s) passed (the host device, WARP and the Vulkan layer behind the proxy).
No game files used or needed. AI-assisted (Claude, through OpenCode); I read and checked the change.
Verified on native Windows 11 (10.0.26300.9974, MSVC 19.44, RelWithDebInfo, NVIDIA GeForce RTX 5060 Ti driver 610.88), PR head 83cf5de46 merged onto main (5d74c2723):
Tested 83cf5de46 (as part of #9516, #9549, #9614, #9653, #9657, #9660, #9678 and #9689 merged together onto main 5d74c2723) on NVIDIA GeForce RTX 2080, driver 621.24 (32.0.16.2124), Windows 11, MSVC 19.44 RelWithDebInfo: pass.
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
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 #9522 (new item:
IDXGIDevice::QueryResourceResidencyon the device proxy).What
IDXGIDevice::QueryResourceResidencyon the d3d12_xs device proxy returnedE_NOTIMPL. The layer never evicts anything (MakeResidentandEvictare no-ops,docs/d3d12_vulkan.mdID3D12Heaprow), so the call now answers what is true: every object isDXGI_RESIDENCY_FULLY_RESIDENT.count == 0asks nothing and returnsS_OK(no pointers read).E_INVALIDARG, and nothing is written in that case.CreateSurfaceis unchanged (still refused with its log line); only its comment now names that method alone.Files
runtime/shims/d3d12_xs_device.cpp:dxgi_query_resource_residency.runtime/test/dxgi_device_test.cpp: theE_NOTIMPLcheck is replaced by count 0, two fences reported fully resident (the output is pre-filled withEVICTED_TO_DISK), and the three null cases.Tested
Windows 11, NVIDIA GeForce RTX 5070 (driver 32.0.16.2114), MSVC 14.44 (VS 2022), CMake from VS 2022,
-DLEONIDA_VULKAN_HEADERS_FETCH=ON.1/1 Test #175: dxgi_device .... Passed; run directly it printsdxgi_device_test: 3 backend(s) passed(the host device, WARP and the Vulkan layer behind the proxy).No game files used or needed. AI-assisted (Claude, through OpenCode); I read and checked the change.