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>
This commit is contained in:
Chris Wilson 2012-03-02 10:01:07 +00:00
parent f039ccf958
commit 29ec36ff06
1 changed files with 1 additions and 1 deletions

View File

@ -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 */