diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-15 18:14:24 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-15 18:14:24 +0000 |
commit | 6f7bc35d7f956f7c2507eabc874ead1a83c85ddb (patch) | |
tree | c3ab5ccaa24e43ff71eeec563e419dd5d3da41ae /src/sna/sna_io.c | |
parent | 475fa67ed320f94df37ec86fe6c5dda886923751 (diff) |
sna: Use indirect uploads rather than teardown existing CPU maps
Allow the snoopable CPU mapping to be used inplace of the GTT map for
untiled bo.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_io.c')
-rw-r--r-- | src/sna/sna_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c index 5d3e9e5e..6b085322 100644 --- a/src/sna/sna_io.c +++ b/src/sna/sna_io.c @@ -906,7 +906,7 @@ struct kgem_bo *sna_replace(struct sna *sna, pixmap->drawable.bitsPerPixel, bo->tiling)); - if ((!bo->map || bo->rq) && + if ((!kgem_bo_mapped(bo) || bo->rq) && indirect_replace(sna, pixmap, bo, src, stride)) return bo; |