sna: Add a debug option to disable caching
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
6bbb88af09
commit
c79e90da71
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue