always define HAVE_FREEDRENO_KGSL
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>main
parent
ee47329bef
commit
ec53f4808c
|
@ -395,6 +395,8 @@ fi
|
|||
AM_CONDITIONAL(HAVE_FREEDRENO_KGSL, [test "x$FREEDRENO_KGSL" = xyes])
|
||||
if test "x$FREEDRENO_KGSL" = xyes; then
|
||||
AC_DEFINE(HAVE_FREEDRENO_KGSL, 1, [Have freedreno support for KGSL kernel interface])
|
||||
else
|
||||
AC_DEFINE(HAVE_FREEDRENO_KGSL, 0)
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_RADEON, [test "x$RADEON" = xyes])
|
||||
|
|
|
@ -326,7 +326,7 @@ void fd_bo_cpu_fini(struct fd_bo *bo)
|
|||
bo->funcs->cpu_fini(bo);
|
||||
}
|
||||
|
||||
#ifndef HAVE_FREEDRENO_KGSL
|
||||
#if !HAVE_FREEDRENO_KGSL
|
||||
struct fd_bo * fd_bo_from_fbdev(struct fd_pipe *pipe, int fbfd, uint32_t size)
|
||||
{
|
||||
return NULL;
|
||||
|
|
|
@ -65,7 +65,7 @@ struct fd_device * fd_device_new(int fd)
|
|||
|
||||
dev = msm_device_new(fd);
|
||||
dev->version = version->version_minor;
|
||||
#ifdef HAVE_FREEDRENO_KGSL
|
||||
#if HAVE_FREEDRENO_KGSL
|
||||
} else if (!strcmp(version->name, "kgsl")) {
|
||||
DEBUG_MSG("kgsl DRM device");
|
||||
dev = kgsl_device_new(fd);
|
||||
|
|
|
@ -255,14 +255,12 @@ foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
|
|||
[with_nouveau, 'NOUVEAU'],
|
||||
[with_exynos, 'EXYNOS'],
|
||||
[with_vc4, 'VC4'],
|
||||
[with_freedreno_kgsl, 'FREEDRENO_KGSL'],
|
||||
[with_radeon, 'RADEON']]
|
||||
config.set10('HAVE_@0@'.format(t[1]), t[0])
|
||||
endforeach
|
||||
if with_freedreno_kgsl
|
||||
if not with_freedreno
|
||||
if with_freedreno_kgsl and not with_freedreno
|
||||
error('cannot enable freedreno-kgsl without freedreno support')
|
||||
endif
|
||||
config.set10('HAVE_FREEDRENO_KGSL', true)
|
||||
endif
|
||||
if dep_cairo.found()
|
||||
config.set10('HAVE_CAIRO', true)
|
||||
|
|
Loading…
Reference in New Issue