[igt-dev] [PATCH i-g-t v2 2/3] lib: Update surface state to set MOCS and coherency.
Tomasz Lis
tomasz.lis at intel.com
Fri Oct 5 18:04:35 UTC 2018
From: "Lis, Tomasz" <tomasz.lis at intel.com>
Having LLC cache enabled by MOCS is required to perform coherency tests.
Surface coherency type needs to be set as well for that test.
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Michal Winiarski <michal.winiarski at intel.com>
Signed-off-by: Tomasz Lis <tomasz.lis at intel.com>
---
lib/gpu_cmds.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/gpu_cmds.c b/lib/gpu_cmds.c
index 556a94c..d9c6fa1 100644
--- a/lib/gpu_cmds.c
+++ b/lib/gpu_cmds.c
@@ -376,6 +376,9 @@ gen8_fill_surface_state(struct intel_batchbuffer *batch,
ss->ss2.width = igt_buf_width(buf) - 1;
ss->ss3.pitch = buf->stride - 1;
+ ss->ss1.memory_object_control = 2;
+ ss->ss5.coherency_type = 1;
+
ss->ss7.shader_chanel_select_r = 4;
ss->ss7.shader_chanel_select_g = 5;
ss->ss7.shader_chanel_select_b = 6;
--
2.7.4
More information about the igt-dev
mailing list