diff --git a/src/freedreno/drm/freedreno_bo_cache.c b/src/freedreno/drm/freedreno_bo_cache.c index dbc21a65536..4fe9a00c811 100644 --- a/src/freedreno/drm/freedreno_bo_cache.c +++ b/src/freedreno/drm/freedreno_bo_cache.c @@ -185,6 +185,9 @@ retry: int fd_bo_cache_free(struct fd_bo_cache *cache, struct fd_bo *bo) { + if (bo->nosync || bo->shared) + return -1; + struct fd_bo_bucket *bucket = get_bucket(cache, bo->size); /* see if we can be green and recycle: */