summaryrefslogtreecommitdiff
path: root/src/sna/sna_io.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-18 22:18:02 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-18 23:00:46 +0000
commit15a769a66fa1afbcffc642ef980387cffefc6bef (patch)
tree26733b403293a7e57abcaa7214fbd598d924e5c3 /src/sna/sna_io.c
parentd0ee695ef091671e2cc69b773f517030ebe961b2 (diff)
sna: Distinguish between GTT and CPU maps when searching for VMA
Similarly try to avoid borrowing any vma when all we intend to do is pwrite. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index 767824fa..48418456 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -441,7 +441,8 @@ struct kgem_bo *sna_replace(struct sna *sna,
pixmap->drawable.width,
pixmap->drawable.height,
pixmap->drawable.bitsPerPixel,
- bo->tiling, CREATE_INACTIVE);
+ bo->tiling,
+ CREATE_GTT_MAP | CREATE_INACTIVE);
if (new_bo) {
kgem_bo_destroy(kgem, bo);
bo = new_bo;