mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 08:10:33 +01:00
venus: rename format_update_mutex for general purpose
Not worth separate locks for physical device level queries. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762>
This commit is contained in:
parent
be52338399
commit
dfc5d76205
2 changed files with 5 additions and 5 deletions
|
|
@ -1705,7 +1705,7 @@ vn_physical_device_init(struct vn_physical_device *physical_dev)
|
|||
if (result != VK_SUCCESS)
|
||||
goto fail;
|
||||
|
||||
simple_mtx_init(&physical_dev->format_update_mutex, mtx_plain);
|
||||
simple_mtx_init(&physical_dev->mutex, mtx_plain);
|
||||
util_sparse_array_init(&physical_dev->format_properties,
|
||||
sizeof(struct vn_format_properties_entry), 64);
|
||||
|
||||
|
|
@ -1726,7 +1726,7 @@ vn_physical_device_fini(struct vn_physical_device *physical_dev)
|
|||
|
||||
vn_image_format_cache_fini(physical_dev);
|
||||
|
||||
simple_mtx_destroy(&physical_dev->format_update_mutex);
|
||||
simple_mtx_destroy(&physical_dev->mutex);
|
||||
util_sparse_array_finish(&physical_dev->format_properties);
|
||||
|
||||
vn_wsi_fini(physical_dev);
|
||||
|
|
@ -2282,7 +2282,7 @@ vn_GetPhysicalDeviceFormatProperties2(VkPhysicalDevice physicalDevice,
|
|||
pFormatProperties);
|
||||
vn_sanitize_format_properties(format, props, props3);
|
||||
|
||||
simple_mtx_lock(&physical_dev->format_update_mutex);
|
||||
simple_mtx_lock(&physical_dev->mutex);
|
||||
if (entry && !entry->valid) {
|
||||
assert(cacheable);
|
||||
entry->props = *props;
|
||||
|
|
@ -2292,7 +2292,7 @@ vn_GetPhysicalDeviceFormatProperties2(VkPhysicalDevice physicalDevice,
|
|||
entry->srpq = *srpq;
|
||||
entry->valid = true;
|
||||
}
|
||||
simple_mtx_unlock(&physical_dev->format_update_mutex);
|
||||
simple_mtx_unlock(&physical_dev->mutex);
|
||||
}
|
||||
|
||||
struct vn_physical_device_image_format_info {
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ struct vn_physical_device {
|
|||
|
||||
struct wsi_device wsi_device;
|
||||
|
||||
simple_mtx_t format_update_mutex;
|
||||
simple_mtx_t mutex;
|
||||
struct util_sparse_array format_properties;
|
||||
|
||||
struct vn_image_format_properties_cache image_format_cache;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue