summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-09 16:37:29 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-09 16:37:29 +0100
commitde379943b49b94cc065fd55ad7ca1067e1802a31 (patch)
tree068e17f0ed8701b7e1ef80c49eff6b9c89b2cdd9 /src
parent821b34f5db2936394e8969b15c1cdd5144acf6e3 (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')
-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 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;