From 29ec36ff063472e0744af99aa81ed5ad8e291a36 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 2 Mar 2012 10:01:07 +0000 Subject: sna: Only discard the inplace flag for LLC partial buffers KGEM_BUFFER_WRITE_INPLACE is WRITE | INPLACE and so the typo prevented uploading of partial data through the pwrite paths. Signed-off-by: Chris Wilson --- src/sna/kgem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/kgem.c b/src/sna/kgem.c index e4ff6a7d..5776a4fe 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -3356,7 +3356,7 @@ struct kgem_bo *kgem_create_buffer(struct kgem *kgem, assert(size <= kgem->max_object_size); if (kgem->has_llc) - flags &= ~KGEM_BUFFER_WRITE_INPLACE; + flags &= ~KGEM_BUFFER_INPLACE; list_for_each_entry(bo, &kgem->active_partials, base.list) { /* We can reuse any write buffer which we can fit */ -- cgit v1.2.3