intel/isl: Resize clear color buffer to full cacheline
authorRafael Antognolli <rafael.antognolli@intel.com>
Tue, 16 Apr 2019 13:31:06 +0000 (16:31 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 24 Apr 2019 05:56:42 +0000 (08:56 +0300)
Fixes MCS fast clear gpu hangs with Vulkan CTS on ICL in CI.

v2 (Nanley): In the title s/Align/Resize/

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Tested-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/isl/isl.c

index 6b9e6c9e0f02ed2e84e32f28cc7c868a61704101..acfed5119ba97bcfdcdfcbf23232dc9d8a4cb973 100644 (file)
@@ -122,7 +122,8 @@ isl_device_init(struct isl_device *dev,
    dev->ss.size = RENDER_SURFACE_STATE_length(info) * 4;
    dev->ss.align = isl_align(dev->ss.size, 32);
 
-   dev->ss.clear_color_state_size = CLEAR_COLOR_length(info) * 4;
+   dev->ss.clear_color_state_size =
+      isl_align(CLEAR_COLOR_length(info) * 4, 64);
    dev->ss.clear_color_state_offset =
       RENDER_SURFACE_STATE_ClearValueAddress_start(info) / 32 * 4;