anv/state: Add missing clflushes for storage image surface state.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 22 Jan 2016 03:21:35 +0000 (19:21 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jan 2016 19:12:09 +0000 (11:12 -0800)
src/vulkan/gen7_state.c
src/vulkan/gen8_state.c

index c722ff0..aecdfe2 100644 (file)
@@ -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;
    }
index c71193b..9fad796 100644 (file)
@@ -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;
    }