mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
Merge branch 'ut_fix' into 'main'
zink: fix use_reusable_pool condition (fixes ~6x slowdown in Unreal Tournament) See merge request mesa/mesa!39008
This commit is contained in:
commit
32ff2c5f99
1 changed files with 3 additions and 3 deletions
|
|
@ -255,6 +255,9 @@ bo_create_internal(struct zink_screen *screen,
|
|||
struct zink_bo *bo = NULL;
|
||||
bool init_pb_cache;
|
||||
|
||||
/* all non-suballocated bo can cache */
|
||||
init_pb_cache = !pNext;
|
||||
|
||||
alignment = get_optimal_alignment(screen, size, alignment);
|
||||
|
||||
VkMemoryAllocateFlagsInfo ai;
|
||||
|
|
@ -288,9 +291,6 @@ bo_create_internal(struct zink_screen *screen,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* all non-suballocated bo can cache */
|
||||
init_pb_cache = !pNext;
|
||||
|
||||
if (!bo)
|
||||
bo = CALLOC(1, sizeof(struct zink_bo) + init_pb_cache * sizeof(struct pb_cache_entry));
|
||||
if (!bo) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue