anv: Add an invalidate_range helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 20 Feb 2017 18:18:57 +0000 (10:18 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 21 Feb 2017 20:26:35 +0000 (12:26 -0800)
commit8582ab2d6eff1d8fc1964ba0f353037af212bdfe
tree16682b817545d07666f55dead69886922b007c61
parente8d600710cf7c1a646a36947ee7752c89860bf11
anv: Add an invalidate_range helper

This is similar to clflush_range except that it puts the mfence on the
other side to ensure caches are flushed prior to reading.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: "13.0 17.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_private.h