mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 18:10:11 +01:00
venus: avoid no_async_buffer_create related caches with the perf option
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19830>
This commit is contained in:
parent
6397304519
commit
bda80458f9
1 changed files with 8 additions and 6 deletions
|
|
@ -213,13 +213,15 @@ vn_buffer_cache_init(struct vn_device *dev)
|
|||
return result;
|
||||
}
|
||||
|
||||
result = vn_buffer_get_max_buffer_size(dev, &max_buffer_size);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
if (!VN_PERF(NO_ASYNC_BUFFER_CREATE)) {
|
||||
result = vn_buffer_get_max_buffer_size(dev, &max_buffer_size);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
||||
result = vn_buffer_cache_entries_create(dev, &entries, &entry_count);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
result = vn_buffer_cache_entries_create(dev, &entries, &entry_count);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
}
|
||||
|
||||
dev->buffer_cache.ahb_mem_type_bits = ahb_mem_type_bits;
|
||||
dev->buffer_cache.max_buffer_size = max_buffer_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue