summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-13 15:28:37 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-14 12:07:47 +0000
commit97e684ab3c887c1992733d0031f0256e9692d452 (patch)
tree95eefbc80440a3bddc6f9a4ee9ab00821e64a65b /src
parent7358ba83a3d4ab37459b4e510704bd0be4438dcd (diff)
sna/gen6+: Improve debug PREFER_RENDER to cover all decision points
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/gen6_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sna/gen6_common.h b/src/sna/gen6_common.h
index 4957a33e..39e6150b 100644
--- a/src/sna/gen6_common.h
+++ b/src/sna/gen6_common.h
@@ -89,6 +89,9 @@ static inline bool untiled_tlb_miss(struct kgem_bo *bo)
static int prefer_blt_bo(struct sna *sna, struct kgem_bo *bo)
{
+ if (PREFER_RENDER)
+ return PREFER_RENDER < 0;
+
if (bo->rq)
return RQ_IS_BLT(bo->rq);
@@ -116,6 +119,9 @@ inline static bool prefer_blt_ring(struct sna *sna,
struct kgem_bo *bo,
unsigned flags)
{
+ if (PREFER_RENDER)
+ return PREFER_RENDER < 0;
+
assert(!force_blt_ring(sna));
assert(!kgem_bo_is_render(bo));
@@ -137,6 +143,9 @@ inline static bool prefer_render_ring(struct sna *sna,
inline static bool
prefer_blt_composite(struct sna *sna, struct sna_composite_op *tmp)
{
+ if (PREFER_RENDER)
+ return PREFER_RENDER < 0;
+
if (untiled_tlb_miss(tmp->dst.bo) ||
untiled_tlb_miss(tmp->src.bo))
return true;