projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e8cbc57
)
freedreno/kgsl: fix crash introduced w/ bo-cache
author
Rob Clark
<robclark@freedesktop.org>
Sun, 5 Jan 2014 17:19:12 +0000
(12:19 -0500)
committer
Rob Clark
<robclark@freedesktop.org>
Tue, 7 Jan 2014 16:33:54 +0000
(11:33 -0500)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno/kgsl/kgsl_bo.c
patch
|
blob
|
history
diff --git
a/freedreno/kgsl/kgsl_bo.c
b/freedreno/kgsl/kgsl_bo.c
index
585851c
..
76d1f27
100644
(file)
--- a/
freedreno/kgsl/kgsl_bo.c
+++ b/
freedreno/kgsl/kgsl_bo.c
@@
-85,6
+85,13
@@
static int kgsl_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op)
uint32_t current;
int ret;
+ /* special case for is_idle().. we can't really handle that
+ * properly in kgsl (perhaps we need a way to just disable
+ * the bo-cache for kgsl?)
+ */
+ if (!pipe)
+ return -EBUSY;
+
ret = kgsl_pipe_timestamp(to_kgsl_pipe(pipe), ¤t);
if (ret)
return ret;