diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2009-08-07 19:24:30 +0300 |
---|---|---|
committer | Pauli Nieminen <suokkos@gmail.com> | 2009-08-25 02:50:09 +0300 |
commit | d5c49132a79d3dc4a791e56d8476f1a5da42da61 (patch) | |
tree | 256b11521047228a0eda0d2bd90d8f1c6e334984 | |
parent | b76c71071b563058f133ad0372378ee5432e676f (diff) |
libdrm/radeon: Add configure option to enable bo tracking.clean_compiler_warnings
This will bo tracking also enabled in mesa if it is enabled in libdrm tough pkg-config.
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
-rw-r--r-- | configure.ac | 14 | ||||
-rw-r--r-- | libdrm/radeon/Makefile.am | 1 | ||||
-rw-r--r-- | libdrm/radeon/libdrm_radeon.pc.in | 3 |
3 files changed, 17 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b59b16d2..006ee89a 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,11 @@ AC_ARG_ENABLE(radeon-experimental-api, [Enable support for radeon's KMS API (default: disabled)]), [RADEON=$enableval], [RADEON=no]) +AC_ARG_ENABLE(radeon-track-bos, + AS_HELP_STRING([--enable-radeon-track-bos], + [Enable debugging of buffer object ussage in radeon (default:disabled)]), + [RADEON_BO_TRACK=$enableval], [RADEON_BO_TRACK=no]) + dnl =========================================================================== dnl check compiler flags AC_DEFUN([LIBDRM_CC_TRY_FLAG], [ @@ -136,6 +141,15 @@ fi AM_CONDITIONAL(HAVE_NOUVEAU, [test "x$NOUVEAU" = xyes]) AM_CONDITIONAL(HAVE_RADEON, [test "x$RADEON" = xyes]) +AM_CONDITIONAL(HAVE_RADEON_BO_TRACK, [test "x$RADEON_BO_TRACK" = xyes]) + + +if test "x$RADEON_BO_TRACK" = xyes; then + RADEON_BO_TRACK_DEFINE="-DRADEON_BO_TRACK=1" +else + RADEON_BO_TRACK_DEFINE= +fi +AC_SUBST(RADEON_BO_TRACK_DEFINE) PKG_CHECK_MODULES(CAIRO, cairo, [HAVE_CAIRO=yes], [HAVE_CAIRO=no]) if test "x$HAVE_CAIRO" = xyes; then diff --git a/libdrm/radeon/Makefile.am b/libdrm/radeon/Makefile.am index 2892267a..a2a57801 100644 --- a/libdrm/radeon/Makefile.am +++ b/libdrm/radeon/Makefile.am @@ -27,6 +27,7 @@ AM_CFLAGS = \ $(CWARNFLAGS) \ -I$(top_srcdir)/libdrm \ -I$(top_srcdir)/libdrm/radeon \ + $(RADEON_BO_TRACK_DEFINE) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/shared-core diff --git a/libdrm/radeon/libdrm_radeon.pc.in b/libdrm/radeon/libdrm_radeon.pc.in index 33068448..3dcf3aeb 100644 --- a/libdrm/radeon/libdrm_radeon.pc.in +++ b/libdrm/radeon/libdrm_radeon.pc.in @@ -2,9 +2,10 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ +track_debug=@RADEON_BO_TRACK_DEFINE@ Name: libdrm_radeon Description: Userspace interface to kernel DRM services for radeon Version: 1.0.1 Libs: -L${libdir} -ldrm_radeon -Cflags: -I${includedir} -I${includedir}/drm +Cflags: -I${includedir} -I${includedir}/drm ${track_debug} |