diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-09 16:37:29 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-09 16:37:29 +0100 |
commit | de379943b49b94cc065fd55ad7ca1067e1802a31 (patch) | |
tree | 068e17f0ed8701b7e1ef80c49eff6b9c89b2cdd9 /src/sna | |
parent | 821b34f5db2936394e8969b15c1cdd5144acf6e3 (diff) |
sna: Allow LLC to reuse any active write buffer
The inplace write distinction is not important on LLC, so pick any
buffer that is on the GPU and available for reuse.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/kgem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index fea7dcbf..429699f8 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -5675,7 +5675,7 @@ struct kgem_bo *kgem_create_buffer(struct kgem *kgem, assert(bo->mmapped); assert(!IS_CPU_MAP(bo->base.map) || kgem->has_llc || bo->base.snoop); - if ((bo->write & ~flags) & KGEM_BUFFER_INPLACE) { + if (!kgem->has_llc && (bo->write & ~flags) & KGEM_BUFFER_INPLACE) { DBG(("%s: skip write %x buffer, need %x\n", __FUNCTION__, bo->write, flags)); continue; |