From: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH] igt tests/gem_exec_params: Test for -EINVAL for invalid platform and ring when executing RS
Date: Wed, 7 May 2014 00:40:53 +0300 [thread overview]
Message-ID: <1399412453-28379-1-git-send-email-abdiel.janulgue@linux.intel.com> (raw)
Add test that makes sure RS bit only gets executed on BDW and
on the render ring.
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
---
tests/gem_exec_params.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c
index 769969d..a3f765b 100644
--- a/tests/gem_exec_params.c
+++ b/tests/gem_exec_params.c
@@ -193,6 +193,17 @@ igt_main
execbuf.num_cliprects = 0;
}
+ igt_subtest("rs-not-gen8") {
+ igt_require(intel_gen(devid) != 8);
+ execbuf.flags = I915_EXEC_RENDER | I915_EXEC_RESOURCE_STREAMER;
+ RUN_FAIL(EINVAL);
+ }
+
+ igt_subtest("invalid-rs-ring") {
+ execbuf.flags = I915_EXEC_RESOURCE_STREAMER;
+ RUN_FAIL(EINVAL);
+ }
+
#define DIRT(name) \
igt_subtest(#name "-dirt") { \
execbuf.flags = 0; \
--
1.7.9.5
next reply other threads:[~2014-05-06 21:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 21:40 Abdiel Janulgue [this message]
2014-05-06 22:40 ` [PATCH] igt tests/gem_exec_params: Test for -EINVAL for invalid platform and ring when executing RS Daniel Vetter
2014-05-06 22:42 ` Daniel Vetter
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=1399412453-28379-1-git-send-email-abdiel.janulgue@linux.intel.com \
--to=abdiel.janulgue@linux.intel.com \
--cc=intel-gfx@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