sna/gen6+: Simplify prefer_blt_bo

As we already check the tiling state, so all we need to then check is
that the pitch is within the BLT constraint.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-26 14:43:47 +01:00
parent 0c15824a81
commit cbbe7727e7
2 changed files with 2 additions and 2 deletions

View File

@ -2387,7 +2387,7 @@ static inline bool untiled_tlb_miss(struct kgem_bo *bo)
static bool prefer_blt_bo(struct sna *sna, struct kgem_bo *bo)
{
return untiled_tlb_miss(bo) && kgem_bo_can_blt(&sna->kgem, bo);
return untiled_tlb_miss(bo) && bo->pitch < MAXSHORT;
}
static bool

View File

@ -2476,7 +2476,7 @@ static inline bool untiled_tlb_miss(struct kgem_bo *bo)
static bool prefer_blt_bo(struct sna *sna, struct kgem_bo *bo)
{
return untiled_tlb_miss(bo) && kgem_bo_can_blt(&sna->kgem, bo);
return untiled_tlb_miss(bo) && bo->pitch < MAXSHORT;
}
inline static bool prefer_blt_ring(struct sna *sna)