mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
winsys/radeon: only call pb_slabs_reclaim when slabs are actually used
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100242
Fixes: fb827c055c ("winsys/radeon: enable buffer allocation from slabs")
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
5dd96b1156
commit
b0b4b5e8f7
1 changed files with 2 additions and 1 deletions
|
|
@ -1027,7 +1027,8 @@ no_slab:
|
|||
pb_cache_bucket);
|
||||
if (!bo) {
|
||||
/* Clear the cache and try again. */
|
||||
pb_slabs_reclaim(&ws->bo_slabs);
|
||||
if (ws->info.has_virtual_memory)
|
||||
pb_slabs_reclaim(&ws->bo_slabs);
|
||||
pb_cache_release_all_buffers(&ws->bo_cache);
|
||||
bo = radeon_create_bo(ws, size, alignment, usage, domain, flags,
|
||||
pb_cache_bucket);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue