mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Vulkan's `VK_EXT_memory_budget` extension doesn't cover query sets, so `wgpu_hal::vulkan::Device::error_if_would_oom_on_resource_allocation`'s tactic doesn't work to anticipate OOM errors from the Vulkan driver when creating query sets. Without these checks, `wgpu_gpu::oom::query_set_oom_test` actually consumes a significant amount of memory and attracts the attention of the system's OOM killer. While it does get killed, the situation tends to adversely affect the stability of the rest of the system, and thus is not a friendly thing for a test run to do (#7817). This change can be reverted once a suitable accounting method for query sets has been implemented on Vulkan.