iris: Use the BO cache even for coherent buffers on non-LLC.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 26 May 2019 20:03:20 +0000 (13:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 May 2019 02:40:18 +0000 (19:40 -0700)
commit43d835cb0f030f2ba8edc9c8dbe09038b6481e6a
treeee16bee6971224d7490626e2d10c86fede9295f6
parent78003014d03e77ed48d33f32de5d940e81917b6b
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>
src/gallium/drivers/iris/iris_bufmgr.c