iris: Use the BO cache even for coherent buffers on non-LLC.

We mark snooped BOs as non-reusable, so we never return them to the
cache.  This means that we'd need to call I915_GEM_SET_CACHING to make
any BO we find in the cache snooped.  But then again, any BO we freshly
allocate from the kernel will also be non-snooped, so it has the same
issue.  There's really no reason to skip the cache - we may as well use
it to avoid the I915_GEM_CREATE overhead.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
Kenneth Graunke
2019-05-26 13:03:20 -07:00
parent 78003014d0
commit 43d835cb0f
-3
View File
@@ -383,9 +383,6 @@ bo_alloc_internal(struct iris_bufmgr *bufmgr,
/* Round the allocated size up to a power of two number of pages. */
bucket = bucket_for_size(bufmgr, size);
if ((flags & BO_ALLOC_COHERENT) && !bufmgr->has_llc)
bucket = NULL;
/* If we don't have caching at this size, don't actually round the
* allocation up.
*/