freedreno: ocd

Signed-off-by: Rob Clark <robclark@freedesktop.org>
main
Rob Clark 2016-06-01 15:42:55 -04:00
parent 8a6a8512d4
commit 9e697c7499
2 changed files with 5 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;