From 0770264ea002dfd20ca57824a5dea2b6caa05a06 Mon Sep 17 00:00:00 2001 From: Andy Leiserson Date: Wed, 29 Apr 2026 18:43:11 -0700 Subject: [PATCH] refactor(core): Rename HUB_OTHER lock rank to INSTANCE_DEVICES --- wgpu-core/src/instance.rs | 2 +- wgpu-core/src/lock/rank.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index e412e6066..c7fcecc2a 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -42,7 +42,7 @@ impl Default for InstanceDevices { impl InstanceDevices { pub(crate) fn new() -> Self { - Self(Mutex::new(rank::HUB_OTHER, WeakVec::new())) + Self(Mutex::new(rank::INSTANCE_DEVICES, WeakVec::new())) } pub(crate) fn push(&self, device: &Arc) { diff --git a/wgpu-core/src/lock/rank.rs b/wgpu-core/src/lock/rank.rs index 399f85016..eb4b4361a 100644 --- a/wgpu-core/src/lock/rank.rs +++ b/wgpu-core/src/lock/rank.rs @@ -113,7 +113,7 @@ define_lock_ranks! { BUFFER_POOL, DEVICE_TRACE, DEVICE_USAGE_SCOPES, - HUB_OTHER, + INSTANCE_DEVICES, SHARED_TRACKER_INDEX_ALLOCATOR_INNER, } rank DEVICE_SNATCHABLE_LOCK "Device::snatchable_lock" followed by { @@ -128,7 +128,7 @@ define_lock_ranks! { BUFFER_POOL, DEVICE_TRACE, DEVICE_USAGE_SCOPES, - HUB_OTHER, + INSTANCE_DEVICES, SHARED_TRACKER_INDEX_ALLOCATOR_INNER, TEXTURE_BIND_GROUPS, TEXTURE_CLEAR_MODE, @@ -175,7 +175,7 @@ define_lock_ranks! { rank COMMAND_ALLOCATOR_FREE_ENCODERS "CommandAllocator::free_encoders" followed by { SHARED_TRACKER_INDEX_ALLOCATOR_INNER, } - rank HUB_OTHER "Hub (general)" followed by { + rank INSTANCE_DEVICES "InstanceDevices" followed by { } // Leaf ranks reachable from the graph above, alphabetical.