From e474abea7cf761e78e777db07b41ec99c0b6f59f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 17 Dec 2012 15:38:04 +0000 Subject: [PATCH] sna: Promote pinned-batches to run-time detection Now that the feature has been committed upstream, we can rely on the runtime detection. Signed-off-by: Chris Wilson --- configure.ac | 9 --------- src/sna/kgem.c | 5 ----- 2 files changed, 14 deletions(-) diff --git a/configure.ac b/configure.ac index e1530195..93544372 100644 --- a/configure.ac +++ b/configure.ac @@ -282,15 +282,6 @@ if test "x$accel" = xnone -a "x$UMS_ONLY" != "xyes"; then AC_MSG_ERROR([No default acceleration option]) fi -AC_ARG_ENABLE(pinned-batches, - AS_HELP_STRING([--enable-pinned-batches], - [Enable use of "pinned batches" (experimental) [default=no]]), - [PINNED="$enableval"], - [PINNED=no]) -if test "x$PINNED" = xyes; then - AC_DEFINE(USE_PINNED_BATCHES,1,[Assume "pinned batches" support]) -fi - AC_ARG_ENABLE(userptr, AS_HELP_STRING([--enable-userptr], [Enable use of userptr (experimental) [default=no]]), diff --git a/src/sna/kgem.c b/src/sna/kgem.c index aab2abe1..67694ff6 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -77,11 +77,6 @@ search_snoop_cache(struct kgem *kgem, unsigned int num_pages, unsigned flags); #define SHOW_BATCH 0 -#ifndef USE_PINNED_BATCHES -#undef DBG_NO_PINNED_BATCHES -#define DBG_NO_PINNED_BATCHES 1 -#endif - #ifndef USE_FASTRELOC #undef DBG_NO_FAST_RELOC #define DBG_NO_FAST_RELOC 1