sna/gen[67]: Prefer to not force BLT paths for large pixmaps
The sampler can in fact handler subregions of large pixmaps quite well, and so we prefer to keep using the 3D pipeline so long as the operation fits in. If not, then switch to the BLT in order to avoid the temporary surface dance. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
38f06a351f
commit
b238f64e8a
|
|
@ -3237,9 +3237,7 @@ static bool prefer_blt_bo(struct sna *sna,
|
|||
PixmapPtr pixmap,
|
||||
struct kgem_bo *bo)
|
||||
{
|
||||
return (too_large(pixmap->drawable.width, pixmap->drawable.height) ||
|
||||
untiled_tlb_miss(bo)) &&
|
||||
kgem_bo_can_blt(&sna->kgem, bo);
|
||||
return untiled_tlb_miss(bo) && kgem_bo_can_blt(&sna->kgem, bo);
|
||||
}
|
||||
|
||||
static inline bool prefer_blt_copy(struct sna *sna,
|
||||
|
|
|
|||
|
|
@ -3316,9 +3316,7 @@ static bool prefer_blt_bo(struct sna *sna,
|
|||
PixmapPtr pixmap,
|
||||
struct kgem_bo *bo)
|
||||
{
|
||||
return (too_large(pixmap->drawable.width, pixmap->drawable.height) ||
|
||||
untiled_tlb_miss(bo)) &&
|
||||
kgem_bo_can_blt(&sna->kgem, bo);
|
||||
return untiled_tlb_miss(bo) && kgem_bo_can_blt(&sna->kgem, bo);
|
||||
}
|
||||
|
||||
static inline bool prefer_blt_copy(struct sna *sna,
|
||||
|
|
|
|||
Loading…
Reference in New Issue