vk: Expose two memory types for non-LLC GPUs
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 4 Dec 2015 07:09:09 +0000 (23:09 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 4 Dec 2015 17:51:47 +0000 (09:51 -0800)
commitc3c61d210f0929a71e031dfb3830bf39cee583a4
tree1cd31476e8c6292fffb8064a3f0bd027db9929d0
parent773592051be92f3f8c3ac11492b22d2bf4e96020
vk: Expose two memory types for non-LLC GPUs

We're required to expose a host-visible, coherent memory type. On big
core GPUs that share, LLC, we can expose one such memory type that's
also cached.  However, on non-LLC GPUs we can't both be cached and
coherent. Thus, we expose both the required coherent type and the cached
but non-coherent combination.
src/vulkan/anv_device.c
src/vulkan/anv_private.h