diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-16 20:34:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-16 20:34:33 +0100 |
commit | d743c456db11bd3c0d21948dc3a2eb4b33e46342 (patch) | |
tree | e13e2a18ea03766dbd5dffb2084ca940458ab2cc | |
parent | 8c35df4493c910ef62c66a411c14e5be3b26bcf0 (diff) |
sna: Debug option to disable tiling
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 82c5cf1c..f179d200 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -62,6 +62,7 @@ static inline void list_replace(struct list *old, #define DBG_NO_HW 0 +#define DBG_NO_TILING 0 #define DBG_NO_VMAP 0 #define DBG_NO_RELAXED_FENCING 0 #define DBG_DUMP 0 @@ -107,6 +108,9 @@ static int gem_set_tiling(int fd, uint32_t handle, int tiling, int stride) struct drm_i915_gem_set_tiling set_tiling; int ret; + if (DBG_NO_TILING) + return I915_TILING_NONE; + do { set_tiling.handle = handle; set_tiling.tiling_mode = tiling; @@ -1247,6 +1251,9 @@ struct kgem_bo *kgem_create_linear(struct kgem *kgem, int size) int kgem_choose_tiling(struct kgem *kgem, int tiling, int width, int height, int bpp) { + if (DBG_NO_TILING) + return I915_TILING_NONE; + if (kgem->gen < 40) { if (tiling) { if (width * bpp > 8192 * 8) { |