summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-09-28 10:13:25 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-09-28 10:15:03 +0100
commit2c67e9da5fc4c47f3f67082bd4adaf80d9e7399f (patch)
tree7be5c4151bad828bb383e074f3cc2d2ef99717e8 /src
parent5a5f9b2812a04721f9dbd67552a39c278cdde18b (diff)
sna: Avoid reads from a GTT mmapped upload buffer
We now allow LLC machines to also use GTT upload buffers, so we need to be cache when scanning the cache to look for suitable buffers. 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 2a5820c8..4bd12f6b 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -5658,7 +5658,7 @@ struct kgem_bo *kgem_create_buffer(struct kgem *kgem,
assert(bo->mmapped);
assert(bo->mmapped == MMAPPED_GTT || kgem->has_llc || bo->base.snoop);
- if (!kgem->has_llc && (bo->write & ~flags) & KGEM_BUFFER_INPLACE) {
+ if ((bo->write & ~flags) & KGEM_BUFFER_INPLACE && !bo->base.snoop) {
DBG(("%s: skip write %x buffer, need %x\n",
__FUNCTION__, bo->write, flags));
continue;