mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user