[Mesa-dev] [PATCH] intel/isl: Align clear color buffer to full cacheline
Topi Pohjolainen
topi.pohjolainen at gmail.com
Wed Apr 17 14:16:28 UTC 2019
From: Rafael Antognolli <rafael.antognolli at intel.com>
Fixes MCS fast clear gpu hangs with Vulkan CTS on ICL in CI.
CC: Anuj Phogat <anuj.phogat at gmail.com>
CC: Kenneth Graunke <kenneth at whitecape.org>
Tested-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Signed-off-by: Rafael Antognolli <rafael.antognolli at intel.com>
---
src/intel/isl/isl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 6b9e6c9e0f0..acfed5119ba 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -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;
--
2.17.1
More information about the mesa-dev
mailing list