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:
Chris Wilson 2012-06-20 10:46:59 +01:00
parent 38f06a351f
commit b238f64e8a
2 changed files with 2 additions and 6 deletions

View File

@ -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,

View File

@ -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,