mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
panfrost: Stub out panfrost_bo_cache_evict
This destructor will be used to legitimately free the BOs, now that a BO free with cacheable=0 is only a "fake" free. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
74ad5f89f8
commit
f3b7e1ddc7
3 changed files with 17 additions and 0 deletions
|
|
@ -47,4 +47,17 @@ panfrost_bo_cache_put(
|
|||
return false;
|
||||
}
|
||||
|
||||
/* Evicts all BOs from the cache. Called during context
|
||||
* destroy or during low-memory situations (to free up
|
||||
* memory that may be unused by us just sitting in our
|
||||
* cache, but still reserved from the perspective of the
|
||||
* OS) */
|
||||
|
||||
void
|
||||
panfrost_bo_cache_evict_all(
|
||||
struct panfrost_screen *screen)
|
||||
{
|
||||
/* Stub */
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -443,6 +443,7 @@ static void
|
|||
panfrost_destroy_screen(struct pipe_screen *pscreen)
|
||||
{
|
||||
struct panfrost_screen *screen = pan_screen(pscreen);
|
||||
panfrost_bo_cache_evict_all(screen);
|
||||
ralloc_free(screen);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -171,5 +171,8 @@ panfrost_bo_cache_put(
|
|||
struct panfrost_screen *screen,
|
||||
struct panfrost_bo *bo);
|
||||
|
||||
void
|
||||
panfrost_bo_cache_evict_all(
|
||||
struct panfrost_screen *screen);
|
||||
|
||||
#endif /* PAN_SCREEN_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue