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:
parent
0c15824a81
commit
cbbe7727e7
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue