sna: Add a debug option to disable caching

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-09-24 19:26:31 +01:00
parent 6bbb88af09
commit c79e90da71
1 changed files with 5 additions and 0 deletions

View File

@ -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;