{
struct panfrost_device *dev = bo->dev;
- if (bo->flags & PAN_BO_DONT_REUSE)
+ if (bo->flags & PAN_BO_SHARED)
return false;
pthread_mutex_lock(&dev->bo_cache.lock);
bo->dev = dev;
bo->gpu = (mali_ptr) get_bo_offset.offset;
bo->size = lseek(fd, 0, SEEK_END);
- bo->flags = PAN_BO_DONT_REUSE | PAN_BO_SHARED;
+ bo->flags = PAN_BO_SHARED;
bo->gem_handle = gem_handle;
assert(bo->size > 0);
p_atomic_set(&bo->refcnt, 1);
if (ret == -1)
return -1;
- bo->flags |= PAN_BO_DONT_REUSE | PAN_BO_SHARED;
+ bo->flags |= PAN_BO_SHARED;
return args.fd;
}
* (semantically distinct from INVISIBLE, which cannot never be mmaped) */
#define PAN_BO_DELAY_MMAP (1 << 4)
-/* Some BOs shouldn't be returned back to the reuse BO cache, use this flag to
- * let the BO logic know about this contraint. */
-#define PAN_BO_DONT_REUSE (1 << 5)
+/* bit 5 unused */
-/* BO is shared across processes (imported or exported) */
+/* BO is shared across processes (imported or exported) and therefore cannot be
+ * cached locally */
#define PAN_BO_SHARED (1 << 6)
/* GPU access flags */