summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-04-11 16:50:23 +0200
committerRob Clark <robclark@freedesktop.org>2016-04-21 09:40:32 -0400
commit739b8886025b31f2f9d09a535c8ff3670bb1d036 (patch)
tree0b4e68ab92aab106a9cb979a0351471c89c4935f
parentcc9a53f076d4e958e595e1daaff2c286ce1b7bb1 (diff)
freedreno: add dummy fd_bo_from_fbdev implementation when KGSL is disabled
Make sure that this function is defined (even empty/dummy) when KGSL support is disabled, since it's part of the driver i/f and it was reported to cause symbols issues when building against musl libc implementation. Reported-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Rob Clark <robclark@freedesktop.org>
-rw-r--r--freedreno/freedreno_bo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c
index a23c65d0..82c1f152 100644
--- a/freedreno/freedreno_bo.c
+++ b/freedreno/freedreno_bo.c
@@ -431,3 +431,10 @@ void fd_bo_cpu_fini(struct fd_bo *bo)
{
bo->funcs->cpu_fini(bo);
}
+
+#ifndef HAVE_FREEDRENO_KGSL
+struct fd_bo * fd_bo_from_fbdev(struct fd_pipe *pipe, int fbfd, uint32_t size)
+{
+ return NULL;
+}
+#endif