summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen8_state.c
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2016-01-21 19:21:35 -0800
committerJason Ekstrand <[email protected]>2016-01-22 11:12:09 -0800
commit448285ebf202d7975a92ac01e1e70e683103c24a (patch)
treed13ef407efcf5fb92ee4ad02f3a2636b2de786ac /src/vulkan/gen8_state.c
parentd533c3796d0cfcd05ad13ecae9b0740be6fa8833 (diff)
anv/state: Add missing clflushes for storage image surface state.
Diffstat (limited to 'src/vulkan/gen8_state.c')
-rw-r--r--src/vulkan/gen8_state.c2
1 files changed, 2 insertions, 0 deletions
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;
}