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>
This commit is contained in:
parent
5a5f9b2812
commit
2c67e9da5f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue