summaryrefslogtreecommitdiff
path: root/src/sna/kgem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r--src/sna/kgem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 643771fd..6801c597 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2883,6 +2883,9 @@ struct kgem_bo *kgem_create_buffer(struct kgem *kgem,
return NULL;
}
+ if (write)
+ kgem_bo_sync__cpu(kgem, &bo->base);
+
bo->need_io = false;
bo->base.io = true;