From 448285ebf202d7975a92ac01e1e70e683103c24a Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Thu, 21 Jan 2016 19:21:35 -0800 Subject: [PATCH] anv/state: Add missing clflushes for storage image surface state. --- src/vulkan/gen7_state.c | 2 ++ src/vulkan/gen8_state.c | 2 ++ 2 files changed, 4 insertions(+) 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; } -- 2.30.2