Skip to contentSkip to conversation

meson: add missing HAVE_RADEON

PATCH In review Eric Engestrom 3 participants 16 messages Jan 26, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/13 meson: add missing HAVE_RADEON

---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
index 1bccdb2c03d7846e7bfb..73058e7d772b7744a359 100644
@@ -255,7 +255,7 @@ foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_nouveau, 'NOUVEAU'], [with_omap, 'OMAP'],
              [with_exynos, 'EXYNOS'], [with_freedreno, 'FREEDRENO'],
              [with_tegra, 'TEGRA'], [with_vc4, 'VC4'],
-             [with_etnaviv, 'ETNAVIV']]
+             [with_etnaviv, 'ETNAVIV'], [with_radeon, 'RADEON']]
   if t[0]
     config.set10('HAVE_@0@'.format(t[1]), true)
   endif
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/13 configure: remove unused HAVE_CUNIT define

---
 configure.ac | 2 --
 1 file changed, 2 deletions(-)
configure.ac +0 -2
index 031e849bd0fc97d8762b..53432a2fbcdb72c8a767 100644
@@ -428,8 +428,6 @@ AM_CONDITIONAL(HAVE_AMDGPU, [test "x$AMDGPU" = xyes])
 if test "x$AMDGPU" = xyes; then
 	AC_DEFINE(HAVE_AMDGPU, 1, [Have amdgpu support])
 
-	AC_DEFINE(HAVE_CUNIT, [test "x$have_cunit" != "xno"], [Enable CUNIT Have amdgpu support])
-
 	if test "x$have_cunit" = "xno"; then
 		AC_MSG_WARN([Could not find cunit library. Disabling amdgpu tests])
 	fi
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

PATCH 3/13 configure: remove unused HAVE_INSTALL_TESTS define

In reply to Eric Engestrom
---
 configure.ac | 3 ---
 1 file changed, 3 deletions(-)
configure.ac +0 -3
index 53432a2fbcdb72c8a767..97613ce257297a77a245 100644
@@ -449,9 +449,6 @@ if test "x$ETNAVIV" = xyes; then
 fi
 
 AM_CONDITIONAL(HAVE_INSTALL_TESTS, [test "x$INSTALL_TESTS" = xyes])
-if test "x$INSTALL_TESTS" = xyes; then
-	AC_DEFINE(HAVE_INSTALL_TESTS, 1, [Install test programs])
-fi
 
 AC_ARG_ENABLE([cairo-tests],
               [AS_HELP_STRING([--enable-cairo-tests],
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

PATCH 4/13 meson,configure: remove unused HAVE_OMAP define

In reply to Eric Engestrom
---
 configure.ac | 3 ---
 meson.build  | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
configure.ac +0 -3
index 97613ce257297a77a245..523ab4fc983c9c7ab737 100644
@@ -375,9 +375,6 @@ if test "x$NOUVEAU" = xyes; then
 fi
 
 AM_CONDITIONAL(HAVE_OMAP, [test "x$OMAP" = xyes])
-if test "x$OMAP" = xyes; then
-	AC_DEFINE(HAVE_OMAP, 1, [Have OMAP support])
-fi
 
 AM_CONDITIONAL(HAVE_EXYNOS, [test "x$EXYNOS" = xyes])
 if test "x$EXYNOS" = xyes; then
meson.build +1 -1
index 73058e7d772b7744a359..f81670aa10ce3981e3d3 100644
@@ -252,7 +252,7 @@ if cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));'
 endif
 
 foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
-             [with_nouveau, 'NOUVEAU'], [with_omap, 'OMAP'],
+             [with_nouveau, 'NOUVEAU'],
              [with_exynos, 'EXYNOS'], [with_freedreno, 'FREEDRENO'],
              [with_tegra, 'TEGRA'], [with_vc4, 'VC4'],
              [with_etnaviv, 'ETNAVIV'], [with_radeon, 'RADEON']]
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

PATCH 5/13 meson, configure: remove unused HAVE_TEGRA define

In reply to Eric Engestrom
---
 configure.ac | 3 ---
 meson.build  | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
configure.ac +0 -3
index 523ab4fc983c9c7ab737..8b3cd7cccb21989cc548 100644
@@ -431,9 +431,6 @@ if test "x$AMDGPU" = xyes; then
 fi
 
 AM_CONDITIONAL(HAVE_TEGRA, [test "x$TEGRA" = xyes])
-if test "x$TEGRA" = xyes; then
-	AC_DEFINE(HAVE_TEGRA, 1, [Have Tegra support])
-fi
 
 AM_CONDITIONAL(HAVE_VC4, [test "x$VC4" = xyes])
 if test "x$VC4" = xyes; then
meson.build +1 -1
index f81670aa10ce3981e3d3..94eb1c6a7ba9c0506493 100644
@@ -254,7 +254,7 @@ endif
 foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_nouveau, 'NOUVEAU'],
              [with_exynos, 'EXYNOS'], [with_freedreno, 'FREEDRENO'],
-             [with_tegra, 'TEGRA'], [with_vc4, 'VC4'],
+             [with_vc4, 'VC4'],
              [with_etnaviv, 'ETNAVIV'], [with_radeon, 'RADEON']]
   if t[0]
     config.set10('HAVE_@0@'.format(t[1]), true)
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

PATCH 6/13 meson, configure: remove unused HAVE_FREEDRENO define

In reply to Eric Engestrom
---
 configure.ac | 3 ---
 meson.build  | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
configure.ac +0 -3
index 8b3cd7cccb21989cc548..09dc359a11d0855b9d93 100644
@@ -382,9 +382,6 @@ if test "x$EXYNOS" = xyes; then
 fi
 
 AM_CONDITIONAL(HAVE_FREEDRENO, [test "x$FREEDRENO" = xyes])
-if test "x$FREEDRENO" = xyes; then
-	AC_DEFINE(HAVE_FREEDRENO, 1, [Have freedreno support])
-fi
 
 if test "x$FREEDRENO_KGSL" = xyes; then
 	if test "x$FREEDRENO" != xyes; then
meson.build +1 -1
index 94eb1c6a7ba9c0506493..b2027df7e2e2ccc8795c 100644
@@ -253,7 +253,7 @@ endif
 
 foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_nouveau, 'NOUVEAU'],
-             [with_exynos, 'EXYNOS'], [with_freedreno, 'FREEDRENO'],
+             [with_exynos, 'EXYNOS'],
              [with_vc4, 'VC4'],
              [with_etnaviv, 'ETNAVIV'], [with_radeon, 'RADEON']]
   if t[0]
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

PATCH 7/13 meson, configure: remove unused HAVE_ETNAVIV define

In reply to Eric Engestrom
---
 configure.ac | 3 ---
 meson.build  | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
configure.ac +0 -3
index 09dc359a11d0855b9d93..a0449404eaddfd347d60 100644
@@ -435,9 +435,6 @@ if test "x$VC4" = xyes; then
 fi
 
 AM_CONDITIONAL(HAVE_ETNAVIV, [test "x$ETNAVIV" = xyes])
-if test "x$ETNAVIV" = xyes; then
-	AC_DEFINE(HAVE_ETNAVIV, 1, [Have etnaviv support])
-fi
 
 AM_CONDITIONAL(HAVE_INSTALL_TESTS, [test "x$INSTALL_TESTS" = xyes])
 
meson.build +1 -1
index b2027df7e2e2ccc8795c..15a9f523a498c137e369 100644
@@ -255,7 +255,7 @@ foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_nouveau, 'NOUVEAU'],
              [with_exynos, 'EXYNOS'],
              [with_vc4, 'VC4'],
-             [with_etnaviv, 'ETNAVIV'], [with_radeon, 'RADEON']]
+             [with_radeon, 'RADEON']]
   if t[0]
     config.set10('HAVE_@0@'.format(t[1]), true)
   endif
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

PATCH 8/13 meson, configure: always define HAVE_{INTE, VMWGFX, NOUVEAU, EXYNOS, VC4, RADEON}

In reply to Eric Engestrom
---
 configure.ac   | 14 ++++++++++++++
 libkms/linux.c | 10 +++++-----
 meson.build    |  4 +---
 3 files changed, 20 insertions(+), 8 deletions(-)
configure.ac +14 -0
index a0449404eaddfd347d60..e09eded5884da7891862 100644
@@ -362,16 +362,22 @@ AM_CONDITIONAL(HAVE_LIBKMS, [test "x$LIBKMS" = xyes])
 AM_CONDITIONAL(HAVE_INTEL, [test "x$INTEL" = xyes])
 if test "x$INTEL" = xyes; then
 	AC_DEFINE(HAVE_INTEL, 1, [Have intel support])
+else
+	AC_DEFINE(HAVE_INTEL, 0)
 fi
 
 AM_CONDITIONAL(HAVE_VMWGFX, [test "x$VMWGFX" = xyes])
 if test "x$VMWGFX" = xyes; then
 	AC_DEFINE(HAVE_VMWGFX, 1, [Have vmwgfx kernel headers])
+else
+	AC_DEFINE(HAVE_VMWGFX, 0)
 fi
 
 AM_CONDITIONAL(HAVE_NOUVEAU, [test "x$NOUVEAU" = xyes])
 if test "x$NOUVEAU" = xyes; then
 	AC_DEFINE(HAVE_NOUVEAU, 1, [Have nouveau (nvidia) support])
+else
+	AC_DEFINE(HAVE_NOUVEAU, 0)
 fi
 
 AM_CONDITIONAL(HAVE_OMAP, [test "x$OMAP" = xyes])
@@ -379,6 +385,8 @@ AM_CONDITIONAL(HAVE_OMAP, [test "x$OMAP" = xyes])
 AM_CONDITIONAL(HAVE_EXYNOS, [test "x$EXYNOS" = xyes])
 if test "x$EXYNOS" = xyes; then
 	AC_DEFINE(HAVE_EXYNOS, 1, [Have EXYNOS support])
+else
+	AC_DEFINE(HAVE_EXYNOS, 0)
 fi
 
 AM_CONDITIONAL(HAVE_FREEDRENO, [test "x$FREEDRENO" = xyes])
@@ -396,6 +404,8 @@ fi
 AM_CONDITIONAL(HAVE_RADEON, [test "x$RADEON" = xyes])
 if test "x$RADEON" = xyes; then
 	AC_DEFINE(HAVE_RADEON, 1, [Have radeon support])
+else
+	AC_DEFINE(HAVE_RADEON, 0)
 fi
 
 if test "x$AMDGPU" != xno; then
@@ -425,6 +435,8 @@ if test "x$AMDGPU" = xyes; then
 	if test "x$have_cunit" = "xno"; then
 		AC_MSG_WARN([Could not find cunit library. Disabling amdgpu tests])
 	fi
+else
+	AC_DEFINE(HAVE_AMDGPU, 0)
 fi
 
 AM_CONDITIONAL(HAVE_TEGRA, [test "x$TEGRA" = xyes])
@@ -432,6 +444,8 @@ AM_CONDITIONAL(HAVE_TEGRA, [test "x$TEGRA" = xyes])
 AM_CONDITIONAL(HAVE_VC4, [test "x$VC4" = xyes])
 if test "x$VC4" = xyes; then
 	AC_DEFINE(HAVE_VC4, 1, [Have VC4 support])
+else
+	AC_DEFINE(HAVE_VC4, 0)
 fi
 
 AM_CONDITIONAL(HAVE_ETNAVIV, [test "x$ETNAVIV" = xyes])
libkms/linux.c +5 -5
index 0b50777efbc8ae3ba66d..1431eb1078307ecebe54 100644
@@ -110,27 +110,27 @@ linux_from_sysfs(int fd, struct kms_driver **out)
 	if (ret)
 		return ret;
 
-#ifdef HAVE_INTEL
+#if HAVE_INTEL
 	if (!strcmp(name, "intel"))
 		ret = intel_create(fd, out);
 	else
 #endif
-#ifdef HAVE_VMWGFX
+#if HAVE_VMWGFX
 	if (!strcmp(name, "vmwgfx"))
 		ret = vmwgfx_create(fd, out);
 	else
 #endif
-#ifdef HAVE_NOUVEAU
+#if HAVE_NOUVEAU
 	if (!strcmp(name, "nouveau"))
 		ret = nouveau_create(fd, out);
 	else
 #endif
-#ifdef HAVE_RADEON
+#if HAVE_RADEON
 	if (!strcmp(name, "radeon"))
 		ret = radeon_create(fd, out);
 	else
 #endif
-#ifdef HAVE_EXYNOS
+#if HAVE_EXYNOS
 	if (!strcmp(name, "exynos"))
 		ret = exynos_create(fd, out);
 	else
meson.build +1 -3
index 15a9f523a498c137e369..6ed080ece9c3dff1a1e1 100644
@@ -256,9 +256,7 @@ foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_exynos, 'EXYNOS'],
              [with_vc4, 'VC4'],
              [with_radeon, 'RADEON']]
-  if t[0]
-    config.set10('HAVE_@0@'.format(t[1]), true)
-  endif
+  config.set10('HAVE_@0@'.format(t[1]), t[0])
 endforeach
 if with_freedreno_kgsl
   if not with_freedreno
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

PATCH 9/13 always define HAVE_FREEDRENO_KGSL

In reply to Eric Engestrom
---
 configure.ac                 | 2 ++
 freedreno/freedreno_bo.c     | 2 +-
 freedreno/freedreno_device.c | 2 +-
 meson.build                  | 8 +++-----
 4 files changed, 7 insertions(+), 7 deletions(-)
configure.ac +2 -0
index e09eded5884da7891862..a745d694a3bb2e8b9761 100644
@@ -399,6 +399,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])
freedreno/freedreno_bo.c +1 -1
index 7f8ea59c2a2433404f62..df35c36a2dacdd2c6fdc 100644
@@ -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;
freedreno/freedreno_device.c +1 -1
index 12b95fd0223e39b6b7f9..a0334bf4764e009f6c32 100644
@@ -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);
meson.build +3 -5
index 6ed080ece9c3dff1a1e1..b7dbe07949b3957e2523 100644
@@ -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
-    error('cannot enable freedreno-kgsl without freedreno support')
-  endif
-  config.set10('HAVE_FREEDRENO_KGSL', true)
+if with_freedreno_kgsl and not with_freedreno
+  error('cannot enable freedreno-kgsl without freedreno support')
 endif
 if dep_cairo.found()
   config.set10('HAVE_CAIRO', true)
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

PATCH 10/13 always define HAVE_CAIRO

In reply to Eric Engestrom
---
 configure.ac         | 2 ++
 meson.build          | 4 +---
 tests/util/pattern.c | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
configure.ac +2 -0
index a745d694a3bb2e8b9761..4ebebb4feb8073771ef9 100644
@@ -470,6 +470,8 @@ if test "x$CAIRO" = xyes; then
 		AC_MSG_ERROR([Cairo support required but not present])
 	fi
 	AC_DEFINE(HAVE_CAIRO, 1, [Have Cairo support])
+else
+	AC_DEFINE(HAVE_CAIRO, 0)
 fi
 AC_MSG_RESULT([$CAIRO])
 AM_CONDITIONAL(HAVE_CAIRO, [test "x$CAIRO" = xyes])
meson.build +1 -3
index b7dbe07949b3957e2523..31a7990bb3ee140c4de1 100644
@@ -256,15 +256,13 @@ foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_exynos, 'EXYNOS'],
              [with_vc4, 'VC4'],
              [with_freedreno_kgsl, 'FREEDRENO_KGSL'],
+             [dep_cairo.found(), 'CAIRO'],
              [with_radeon, 'RADEON']]
   config.set10('HAVE_@0@'.format(t[1]), t[0])
 endforeach
 if with_freedreno_kgsl and not with_freedreno
   error('cannot enable freedreno-kgsl without freedreno support')
 endif
-if dep_cairo.found()
-  config.set10('HAVE_CAIRO', true)
-endif
 if dep_valgrind.found()
   config.set10('HAVE_VALGRIND', true)
 endif
tests/util/pattern.c +2 -2
index 2366b00613a7f1c63cde..75a458d4b7ce78204991 100644
@@ -34,7 +34,7 @@
 
 #include <drm_fourcc.h>
 
-#ifdef HAVE_CAIRO
+#if HAVE_CAIRO
 #include <cairo.h>
 #include <math.h>
 #endif
@@ -546,7 +546,7 @@ static void fill_smpte(const struct util_format_info *info, void *planes[3],
 static void make_pwetty(void *data, unsigned int width, unsigned int height,
 			unsigned int stride, uint32_t format)
 {
-#ifdef HAVE_CAIRO
+#if HAVE_CAIRO
 	cairo_surface_t *surface;
 	cairo_t *cr;
 	cairo_format_t cairo_format;
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw

PATCH 11/13 always define HAVE_VALGRIND

In reply to Eric Engestrom
---
 configure.ac               | 2 ++
 freedreno/freedreno_priv.h | 2 +-
 intel/intel_bufmgr_gem.c   | 4 ++--
 meson.build                | 5 +----
 4 files changed, 6 insertions(+), 7 deletions(-)
configure.ac +2 -0
index 4ebebb4feb8073771ef9..321ab2c0fb4f18dad002 100644
@@ -513,6 +513,8 @@ if test "x$VALGRIND" = "xyes"; then
 		AC_MSG_ERROR([Valgrind support required but not present])
 	fi
 	AC_DEFINE([HAVE_VALGRIND], 1, [Use valgrind intrinsics to suppress false warnings])
+else
+	AC_DEFINE([HAVE_VALGRIND], 0)
 fi
 
 AC_MSG_RESULT([$VALGRIND])
freedreno/freedreno_priv.h +1 -1
index 273074727375c7d6ff01..3be5767d2ebd2566734f 100644
@@ -200,7 +200,7 @@ offset_bytes(void *end, void *start)
 	return ((char *)end) - ((char *)start);
 }
 
-#ifdef HAVE_VALGRIND
+#if HAVE_VALGRIND
 #  include <memcheck.h>
 
 /*
intel/intel_bufmgr_gem.c +2 -2
index 71f140f54dd0e6116261..386da30e230627242be2 100644
@@ -66,7 +66,7 @@
 #include "i915_drm.h"
 #include "uthash.h"
 
-#ifdef HAVE_VALGRIND
+#if HAVE_VALGRIND
 #include <valgrind.h>
 #include <memcheck.h>
 #define VG(x) x
@@ -1629,7 +1629,7 @@ int
 drm_intel_gem_bo_map_unsynchronized(drm_intel_bo *bo)
 {
 	drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *) bo->bufmgr;
-#ifdef HAVE_VALGRIND
+#if HAVE_VALGRIND
 	drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
 #endif
 	int ret;
meson.build +1 -4
index 31a7990bb3ee140c4de1..19413632464da9816ca1 100644
@@ -257,16 +257,13 @@ foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_vc4, 'VC4'],
              [with_freedreno_kgsl, 'FREEDRENO_KGSL'],
              [dep_cairo.found(), 'CAIRO'],
+             [dep_valgrind.found(), 'VALGRIND'],
              [with_radeon, 'RADEON']]
   config.set10('HAVE_@0@'.format(t[1]), t[0])
 endforeach
 if with_freedreno_kgsl and not with_freedreno
   error('cannot enable freedreno-kgsl without freedreno support')
 endif
-if dep_valgrind.found()
-  config.set10('HAVE_VALGRIND', true)
-endif
-
 config.set10('_GNU_SOURCE', true)
 config_file = configure_file(
   configuration : config,
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

PATCH 12/13 meson: sort HAVE_* defines

In reply to Eric Engestrom
---
 meson.build | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
meson.build +7 -4
index 19413632464da9816ca1..1342a5b3115abc26ce05 100644
@@ -251,14 +251,17 @@ if cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));'
   config.set10('HAVE_VISIBILITY', true)
 endif
 
-foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
-             [with_nouveau, 'NOUVEAU'],
+foreach t : [
              [with_exynos, 'EXYNOS'],
-             [with_vc4, 'VC4'],
              [with_freedreno_kgsl, 'FREEDRENO_KGSL'],
+             [with_intel, 'INTEL'],
+             [with_nouveau, 'NOUVEAU'],
+             [with_radeon, 'RADEON'],
+             [with_vc4, 'VC4'],
+             [with_vmwgfx, 'VMWGFX'],
              [dep_cairo.found(), 'CAIRO'],
              [dep_valgrind.found(), 'VALGRIND'],
-             [with_radeon, 'RADEON']]
+            ]
   config.set10('HAVE_@0@'.format(t[1]), t[0])
 endforeach
 if with_freedreno_kgsl and not with_freedreno
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#12 lore raw

PATCH 13/13 xf86atomic: fix -Wundef error

In reply to Eric Engestrom
---
 xf86atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xf86atomic.h +1 -1
index 922b37da62517bc1ee2f..70e918663c3b015f2881 100644
@@ -101,7 +101,7 @@ typedef struct { LIBDRM_ATOMIC_TYPE atomic; } atomic_t;
 
 #endif
 
-#if ! HAS_ATOMIC_OPS
+#if !defined(HAS_ATOMIC_OPS)
 #error libdrm requires atomic operations, please define them for your CPU/compiler.
 #endif
 
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 13/13
#13 lore raw

Re: [PATCH libdrm 13/13] xf86atomic: fix -Wundef error

Quoted 10 lines · Eric Engestrom
---
 xf86atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xf86atomic.h +0 -0
index 922b37da62517bc1ee2f..70e918663c3b015f2881 100644

xf86atomic.h typedef struct { LIBDRM_ATOMIC_TYPE atomic; } atomic_t; · line 107

Quoted 8 lines
xf86atomic.h +1 -1
@@ -101,7 +101,7 @@ typedef struct { LIBDRM_ATOMIC_TYPE atomic; } atomic_t;
 
 #endif
 
-#if ! HAS_ATOMIC_OPS
+#if !defined(HAS_ATOMIC_OPS)
 #error libdrm requires atomic operations, please define them for your CPU/compiler.
 #endif
 

The series is

Unrelated: I've been wondering if/how many libkms users there are and if we could nuke it.
It will drop a fair bit of build magic ;-)

-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/13
#14 lore raw
In reply to Eric Engestrom

Quoting Eric Engestrom (2018-01-26 08:45:40)

Quoted 26 lines
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
index 1bccdb2c03d7846e7bfb..73058e7d772b7744a359 100644
@@ -255,7 +255,7 @@ foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_nouveau, 'NOUVEAU'], [with_omap, 'OMAP'],
              [with_exynos, 'EXYNOS'], [with_freedreno, 'FREEDRENO'],
              [with_tegra, 'TEGRA'], [with_vc4, 'VC4'],
-             [with_etnaviv, 'ETNAVIV']]
+             [with_etnaviv, 'ETNAVIV'], [with_radeon, 'RADEON']]
   if t[0]
     config.set10('HAVE_@0@'.format(t[1]), true)
   endif
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/13
#15 lore raw
In reply to Eric Engestrom

For the series:

Quoting Eric Engestrom (2018-01-26 08:45:40)

Quoted 26 lines
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
index 1bccdb2c03d7846e7bfb..73058e7d772b7744a359 100644
@@ -255,7 +255,7 @@ foreach t : [[with_intel, 'INTEL'], [with_vmwgfx, 'VMWGFX'],
              [with_nouveau, 'NOUVEAU'], [with_omap, 'OMAP'],
              [with_exynos, 'EXYNOS'], [with_freedreno, 'FREEDRENO'],
              [with_tegra, 'TEGRA'], [with_vc4, 'VC4'],
-             [with_etnaviv, 'ETNAVIV']]
+             [with_etnaviv, 'ETNAVIV'], [with_radeon, 'RADEON']]
   if t[0]
     config.set10('HAVE_@0@'.format(t[1]), true)
   endif
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel