<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 3/1/2024 6:16 PM, Matthew Auld
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20240301171618.395851-1-matthew.auld@intel.com">
<pre class="moz-quote-pre" wrap="">UC looks to be the sensible default here, since it will work with
display engine if rendering onto scanout surface. Use the matching
helper.
Signed-off-by: Matthew Auld <a class="moz-txt-link-rfc2396E" href="mailto:matthew.auld@intel.com"><matthew.auld@intel.com></a>
Cc: Zbigniew KempczyĆski <a class="moz-txt-link-rfc2396E" href="mailto:zbigniew.kempczynski@intel.com"><zbigniew.kempczynski@intel.com></a></pre>
</blockquote>
Reviewed-by: <span style="white-space: pre-wrap">Nirmoy Das <a class="moz-txt-link-rfc2396E" href="mailto:nirmoy.das@intel.com"><nirmoy.das@intel.com></a></span>
<blockquote type="cite"
cite="mid:20240301171618.395851-1-matthew.auld@intel.com">
<pre class="moz-quote-pre" wrap="">
---
lib/rendercopy_gen9.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index efd7cb37c..404406e5f 100644
--- a/lib/rendercopy_gen9.c
+++ b/lib/rendercopy_gen9.c
@@ -180,10 +180,7 @@ gen9_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst,
ss->ss0.horizontal_alignment = 1; /* align 4 or HALIGN_32 on display ver >= 13*/
if (HAS_4TILE(ibb->devid)) {
- /*
- * mocs table version 1 index 3 groub wb use l3
- */
- ss->ss1.mocs_index = 3;
+ ss->ss1.mocs_index = intel_get_uc_mocs_index(i915);
ss->ss5.mip_tail_start_lod = 0;
} else {
ss->ss0.render_cache_read_write = 1;
</pre>
</blockquote>
</body>
</html>