summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-09-04 15:08:56 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-09-04 15:18:29 +0100
commitf906a4de62856df5b2536ce9704750c3530636fa (patch)
tree2a5353a85c5a5d7835e8158e246b173323b8189e
parent6f49a413aa812e6f41826d6d1099927e1164353b (diff)
sna: WriteThrough support is now upstream
Now that the WriteThrough ABI is upstream, we can rely on runtime detection of the current interface. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--configure.ac11
-rw-r--r--src/sna/kgem.c4
2 files changed, 0 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index 592605a5..29c5c0b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -419,17 +419,6 @@ if test "x$ASYNC_SWAP" = "xyes"; then
xp_msg="$xp_msg async-swap"
fi
-AC_ARG_ENABLE(wt,
- AS_HELP_STRING([--enable-wt],
- [Enable use of WT caching (experimental) [default=no]]),
- [WT="$enableval"],
- [WT="no"])
-AM_CONDITIONAL(USE_WT, test "x$WT" = "xyes")
-if test "x$WT" = "xyes"; then
- AC_DEFINE(USE_WT,1,[Assume WriteThrough caching support])
- xp_msg="$xp_msg wt-cache"
-fi
-
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
[Enables internal debugging [default=no]]),
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index e001b012..81431708 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -829,14 +829,10 @@ static bool test_has_handle_lut(struct kgem *kgem)
static bool test_has_wt(struct kgem *kgem)
{
-#if defined(USE_WT)
if (DBG_NO_WT)
return false;
return gem_param(kgem, LOCAL_I915_PARAM_HAS_WT) > 0;
-#else
- return false;
-#endif
}
static bool test_has_semaphores_enabled(struct kgem *kgem)