summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-24 19:26:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-24 19:47:41 +0100
commitc79e90da71ae58cb3804f8abaf0541350e47eb14 (patch)
treee93c409660a9224693f926804ead00dfc9d3877d
parent6bbb88af096e054877409a54d0e0a4ccf5ee317e (diff)
sna: Add a debug option to disable caching
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index b5c342dd..dcfcbbd8 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -67,6 +67,8 @@ static inline void list_replace(struct list *old,
#define DBG_NO_RELAXED_FENCING 0
#define DBG_DUMP 0
+#define NO_CACHE 0
+
#if DEBUG_KGEM
#undef DBG
#define DBG(x) ErrorF x
@@ -542,6 +544,9 @@ static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo)
bo->src_bound = bo->dst_bound = 0;
+ if (NO_CACHE)
+ goto destroy;
+
if(!bo->reusable)
goto destroy;