aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark2016-06-01 14:42:55 -0500
committerRob Clark2016-07-20 18:42:21 -0500
commit9e697c74991bd265a549bedfc7cd4a0267e234df (patch)
tree6a888ec3db97a2e859c653b928aa7e2ee8de9177 /freedreno
parent8a6a8512d4ac6db5e85911de81f156d325dcc343 (diff)
downloadexternal-libgbm-9e697c74991bd265a549bedfc7cd4a0267e234df.tar.gz
external-libgbm-9e697c74991bd265a549bedfc7cd4a0267e234df.tar.xz
external-libgbm-9e697c74991bd265a549bedfc7cd4a0267e234df.zip
freedreno: ocd
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno')
-rw-r--r--freedreno/freedreno_bo.c6
-rw-r--r--freedreno/freedreno_ringbuffer.c6
2 files changed, 5 insertions, 7 deletions
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)
99 99
100 pthread_mutex_lock(&table_lock); 100 pthread_mutex_lock(&table_lock);
101 bo = bo_from_handle(dev, size, handle); 101 bo = bo_from_handle(dev, size, handle);
102 bo->bo_reuse = 1; 102 bo->bo_reuse = TRUE;
103 pthread_mutex_unlock(&table_lock); 103 pthread_mutex_unlock(&table_lock);
104 104
105 return bo; 105 return bo;
@@ -249,7 +249,7 @@ int fd_bo_get_name(struct fd_bo *bo, uint32_t *name)
249 pthread_mutex_lock(&table_lock); 249 pthread_mutex_lock(&table_lock);
250 set_name(bo, req.name); 250 set_name(bo, req.name);
251 pthread_mutex_unlock(&table_lock); 251 pthread_mutex_unlock(&table_lock);
252 bo->bo_reuse = 0; 252 bo->bo_reuse = FALSE;
253 } 253 }
254 254
255 *name = bo->name; 255 *name = bo->name;
@@ -273,7 +273,7 @@ int fd_bo_dmabuf(struct fd_bo *bo)
273 return ret; 273 return ret;
274 } 274 }
275 275
276 bo->bo_reuse = 0; 276 bo->bo_reuse = FALSE;
277 277
278 return prime_fd; 278 return prime_fd;
279} 279}
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,
97 ring->funcs->emit_reloc(ring, reloc); 97 ring->funcs->emit_reloc(ring, reloc);
98} 98}
99 99
100void 100void fd_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring,
101fd_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring, 101 struct fd_ringmarker *target, struct fd_ringmarker *end)
102 struct fd_ringmarker *target,
103 struct fd_ringmarker *end)
104{ 102{
105 uint32_t submit_offset, size; 103 uint32_t submit_offset, size;
106 104