summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-02 10:01:07 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-02 10:01:07 +0000
commit29ec36ff063472e0744af99aa81ed5ad8e291a36 (patch)
treebc88c04f139f7df1237415bc3a78d3db49f77db2
parentf039ccf9587eb07528034c3247a6e700c87a5500 (diff)
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 <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
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 */