<!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 2/1/2024 1:14 PM, Zbigniew
Kempczyński wrote:<br>
</div>
<blockquote type="cite" cite="mid:20240201211441.b5yncl7w2pn6dwk4@zkempczy-mobl2">
<pre class="moz-quote-pre" wrap="">On Thu, Feb 01, 2024 at 10:30:16AM +0000, Matthew Auld wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On Xe2 compression is handled via PAT indexes and flat CCS, even on
igpu. Ensure the device has flat CCS support on such hardware, to
determine if these tests are valid.
v2: (Zbigniew)
- There is at least one uncompressed test also, which is valid
regardless of CCS. Move the skip deeper.
Signed-off-by: Matthew Auld <a class="moz-txt-link-rfc2396E" href="mailto:matthew.auld@intel.com"><matthew.auld@intel.com></a>
Cc: Akshata Jahagirdar <a class="moz-txt-link-rfc2396E" href="mailto:akshata.jahagirdar@intel.com"><akshata.jahagirdar@intel.com></a>
Cc: Zbigniew Kempczyński <a class="moz-txt-link-rfc2396E" href="mailto:zbigniew.kempczynski@intel.com"><zbigniew.kempczynski@intel.com></a>
---
tests/intel/xe_ccs.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/intel/xe_ccs.c b/tests/intel/xe_ccs.c
index 7d0e8ed7a..3430db2d2 100644
--- a/tests/intel/xe_ccs.c
+++ b/tests/intel/xe_ccs.c
@@ -532,6 +532,7 @@ static void block_copy_test(int xe,
struct igt_collection *set,
enum copy_func copy_function)
{
+ uint16_t dev_id = intel_get_drm_devid(xe);
struct drm_xe_engine_class_instance inst = {
.engine_class = DRM_XE_ENGINE_CLASS_COPY,
};
@@ -540,6 +541,9 @@ static void block_copy_test(int xe,
uint32_t vm, exec_queue;
int tiling;
+ if (AT_LEAST_GEN(dev_id, 20) && config->compression)
+ igt_require(HAS_FLATCCS(xe));
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Just to make sure - above will lead to skip on xe2 if there's
no flatccs.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">+
if (config->compression && !blt_block_copy_supports_compression(xe))
return;
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
This will check compression either, but indirectly via .cmds_info
set to xe2_cmds_info in which we use BLT_CMD_SUPPORTS_COMPRESSION
flag for block-copy command.
</pre>
</blockquote>
<p>on a side note, IIUC the <span style="white-space: pre-wrap">BLT_CMD_SUPPORTS_COMPRESSION flag doesn't make sense anymore due to xe2+ unified compression?</span></p>
<p><span style="white-space: pre-wrap">- Akshata
</span></p>
<blockquote type="cite" cite="mid:20240201211441.b5yncl7w2pn6dwk4@zkempczy-mobl2">
<pre class="moz-quote-pre" wrap="">
Do we have any Xe2 without compression on block-copy?
--
Zbigniew
</pre>
</blockquote>
<blockquote type="cite" cite="mid:20240201211441.b5yncl7w2pn6dwk4@zkempczy-mobl2">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
--
2.43.0
</pre>
</blockquote>
</blockquote>
</body>
</html>