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 c722ff06f9fd8e0debce7212340156c6f4b557d0..aecdfe2fe4d36692732cd675b1aee2998ea0f1b2 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 c71193b7cd6a799fafc9120854761bb5d40b7da8..9fad7961b3fe2fc8e2c971e7fd6cff298b46acf5 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;
    }