Repository navigation
Conversation
…ened SelectDevice ranked physical devices on its own and took the discrete GPU's memory heaps even when ANYPS5_GPU selected another device. On a machine with an RDNA 4 dGPU (16 GiB) and an RDNA 2 iGPU (32 GiB shared heap), a run on the iGPU expected eviction at a 4076 MiB budget while the driver used 8083 MiB, and failed with "surface 0 is still cached". The test now takes the heaps of the physical device whose name matches the opened VulkanDevice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 tasks done
Collaborator
|
Closing: 68072d6 on main replaced the device lookup in |
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.
What
agc_driver_storage_cache_budget(#1059) computed its expected budget from a device other than the one it ran on.SelectDeviceranked the physical devices itself and always took the discrete GPU's memory heaps, whileOpenVulkanTestDevicehonoursANYPS5_GPU. It now takes the heaps of the physical device whose name matchesVulkanDevice::DeviceName().On a machine with an RX 9060 XT (16 GiB heap) and a Ryzen 9 7950X iGPU (32 GiB shared heap), a run on the iGPU expected a 4076 MiB budget while the driver used 8083 MiB:
With the change, the same run reports
texture cache budget 8083 MiBand passes. Machines with a single device are unaffected.Tested
Windows 11 Pro 10.0.26300, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
-DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON, onmainat d70b899.ANYPS5_GPU="Radeon(TM) Graphics"(RDNA 2 iGPU, driver 32.0.21045.5002): passes. Onmainthis run first stops on the AGC: since #639, devices without mesh shaders (SPIR-V 1.3 target) get modules that fail validation #2138OpSelectvalidation error, so it was run with fix(shader): keep vector selects valid on SPIR-V 1.3 targets #2191 applied to the working tree, then without it for the commit.ANYPS5_GPU="RX 9060"(RDNA 4, driver 32.0.31041.1004): passes with and without this change (4076 MiB budget, eviction checked), withVK_EXT_memory_budgetreporting a 15416 MiB heap budget.While another process held about 10.7 GiB of the RX 9060 XT's VRAM,
VK_EXT_memory_budgetreported a 2197 MiB heap budget and the 2112 MiB cyclic set failed withvkAllocateMemory storage texture: Vulkan result -2, with and without this change. The storage image cache budget isTextureCacheBudget(a quarter of the heap size) and does not followVK_EXT_memory_budgetas the sampled cache does, so the test fails rather than skips when other processes use the device memory. Not changed here.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code