diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c index cf2d7cb9..996d6b95 100644 --- a/freedreno/freedreno_bo.c +++ b/freedreno/freedreno_bo.c @@ -99,7 +99,7 @@ fd_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags) pthread_mutex_lock(&table_lock); bo = bo_from_handle(dev, size, handle); - bo->bo_reuse = 1; + bo->bo_reuse = TRUE; pthread_mutex_unlock(&table_lock); return bo; @@ -249,7 +249,7 @@ int fd_bo_get_name(struct fd_bo *bo, uint32_t *name) pthread_mutex_lock(&table_lock); set_name(bo, req.name); pthread_mutex_unlock(&table_lock); - bo->bo_reuse = 0; + bo->bo_reuse = FALSE; } *name = bo->name; @@ -273,7 +273,7 @@ int fd_bo_dmabuf(struct fd_bo *bo) return ret; } - bo->bo_reuse = 0; + bo->bo_reuse = FALSE; return prime_fd; } diff --git a/freedreno/freedreno_ringbuffer.c b/freedreno/freedreno_ringbuffer.c index be802965..ab5d31fc 100644 --- a/freedreno/freedreno_ringbuffer.c +++ b/freedreno/freedreno_ringbuffer.c @@ -97,10 +97,8 @@ void fd_ringbuffer_reloc(struct fd_ringbuffer *ring, ring->funcs->emit_reloc(ring, reloc); } -void -fd_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring, - struct fd_ringmarker *target, - struct fd_ringmarker *end) +void fd_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring, + struct fd_ringmarker *target, struct fd_ringmarker *end) { uint32_t submit_offset, size;