From: Francisco Jerez Date: Fri, 22 Jan 2016 03:21:35 +0000 (-0800) Subject: anv/state: Add missing clflushes for storage image surface state. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=448285ebf202d7975a92ac01e1e70e683103c24a;p=mesa.git anv/state: Add missing clflushes for storage image surface state. --- diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c index c722ff06f9f..aecdfe2fe4d 100644 --- a/src/vulkan/gen7_state.c +++ b/src/vulkan/gen7_state.c @@ -302,6 +302,8 @@ genX(image_view_init)(struct anv_image_view *iview, GENX(RENDER_SURFACE_STATE_pack)(NULL, iview->storage_surface_state.map, &surface_state); + if (!device->info.has_llc) + anv_state_clflush(iview->storage_surface_state); } else { iview->storage_surface_state.alloc_size = 0; } diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index c71193b7cd6..9fad7961b3f 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -372,6 +372,8 @@ genX(image_view_init)(struct anv_image_view *iview, GENX(RENDER_SURFACE_STATE_pack)(NULL, iview->storage_surface_state.map, &surface_state); + if (!device->info.has_llc) + anv_state_clflush(iview->storage_surface_state); } else { iview->storage_surface_state.alloc_size = 0; }