From: Gustavo Sousa <gustavo.sousa@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/i915_query: Add igt_debug() calls for geometry-subslices
Date: Tue, 13 Jun 2023 18:01:32 -0300 [thread overview]
Message-ID: <20230613210132.1059029-1-gustavo.sousa@intel.com> (raw)
Besides providing extra debug information, this also allows one to
simply use the test binary to quickly check values.
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
---
tests/i915/i915_query.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/i915/i915_query.c b/tests/i915/i915_query.c
index 62f7de428ec8..194f2e91b0ad 100644
--- a/tests/i915/i915_query.c
+++ b/tests/i915/i915_query.c
@@ -1249,6 +1249,10 @@ static void test_query_geometry_subslices(int fd)
item.flags = e->class | (e->instance << 16);
i915_query_items(fd, &item, 1);
+ igt_debug("%s is render engine: %s\n",
+ e->name,
+ e->class == I915_ENGINE_CLASS_RENDER ? "yes" : "no");
+
/* Non-render engines should return -EINVAL */
if (e->class != I915_ENGINE_CLASS_RENDER) {
igt_assert_eq(item.length, -EINVAL);
@@ -1262,6 +1266,14 @@ static void test_query_geometry_subslices(int fd)
item.data_ptr = to_user_pointer(topo_info);
i915_query_items(fd, &item, 1);
+ igt_debug(" max_slices=%hu max_subslices=%hu max_eus_per_subslice=%hu\n",
+ topo_info->max_slices, topo_info->max_subslices,
+ topo_info->max_eus_per_subslice);
+ igt_debug(" subslice_offset=%hu subslice_stride=%hu\n",
+ topo_info->subslice_offset, topo_info->subslice_stride);
+ igt_debug(" eu_offset=%hu eu_stride=%hu\n",
+ topo_info->eu_offset, topo_info->eu_stride);
+
igt_assert(topo_info->max_subslices > 0);
igt_assert(topo_info->max_eus_per_subslice > 0);
--
2.41.0
next reply other threads:[~2023-06-13 21:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-13 21:01 Gustavo Sousa [this message]
2023-06-13 22:33 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/i915_query: Add igt_debug() calls for geometry-subslices Patchwork
2023-06-14 1:59 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-06-14 11:19 ` [igt-dev] [PATCH i-g-t] " Kamil Konieczny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230613210132.1059029-1-gustavo.sousa@intel.com \
--to=gustavo.sousa@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox