mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
gallium/pipebuffer: fix parenthesis location
Without this the return value will never get set to -1. This was first added in49866c8f34and copied in2b396eeed9. Fixes:2b396eeed9"gallium/pb_cache: add a copy of cache bufmgr independent of pb_manager" Reviewed-by: Marek Olšák <marek.olsak@amd.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102342
This commit is contained in:
parent
6b21391729
commit
7e9b7ec094
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size,
|
|||
cur_entry = LIST_ENTRY(struct pb_cache_entry, cur, head);
|
||||
|
||||
if (!entry && (ret = pb_cache_is_buffer_compat(cur_entry, size,
|
||||
alignment, usage) > 0))
|
||||
alignment, usage)) > 0)
|
||||
entry = cur_entry;
|
||||
else if (os_time_timeout(cur_entry->start, cur_entry->end, now))
|
||||
destroy_buffer_locked(cur_entry);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue