anv/state: Add missing clflushes for storage image surface state.

This commit is contained in:
Francisco Jerez
2016-01-21 19:21:35 -08:00
committed by Jason Ekstrand
parent d533c3796d
commit 448285ebf2
2 changed files with 4 additions and 0 deletions

View 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;
}

View 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;
}