diff options
Diffstat (limited to 'src/freedreno/drm')
-rw-r--r-- | src/freedreno/drm/freedreno_bo_cache.c | 4 | ||||
-rw-r--r-- | src/freedreno/drm/freedreno_device.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/freedreno/drm/freedreno_bo_cache.c b/src/freedreno/drm/freedreno_bo_cache.c index 88b44540418..b51e8db35ab 100644 --- a/src/freedreno/drm/freedreno_bo_cache.c +++ b/src/freedreno/drm/freedreno_bo_cache.c @@ -172,7 +172,7 @@ retry: bo = find_in_bucket(bucket, flags); if (bo) { VG_BO_OBTAIN(bo); - if (bo->funcs->madvise(bo, TRUE) <= 0) { + if (bo->funcs->madvise(bo, true) <= 0) { /* we've lost the backing pages, delete and try again: */ pthread_mutex_lock(&table_lock); bo_del(bo); @@ -197,7 +197,7 @@ fd_bo_cache_free(struct fd_bo_cache *cache, struct fd_bo *bo) if (bucket) { struct timespec time; - bo->funcs->madvise(bo, FALSE); + bo->funcs->madvise(bo, false); clock_gettime(CLOCK_MONOTONIC, &time); diff --git a/src/freedreno/drm/freedreno_device.c b/src/freedreno/drm/freedreno_device.c index 1031aaf1bef..be03cca426f 100644 --- a/src/freedreno/drm/freedreno_device.c +++ b/src/freedreno/drm/freedreno_device.c @@ -79,8 +79,8 @@ out: dev->fd = fd; dev->handle_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); dev->name_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); - fd_bo_cache_init(&dev->bo_cache, FALSE); - fd_bo_cache_init(&dev->ring_cache, TRUE); + fd_bo_cache_init(&dev->bo_cache, false); + fd_bo_cache_init(&dev->ring_cache, true); return dev; } |