summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-04-03 18:03:21 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-04-03 18:03:21 +0200
commitd6362ce8a81a40bc30e1e7b34d14c27f7bfcd954 (patch)
tree062387f6db10aafa35fe37b5aacb789983f71de7 /tests
parente8869c4bc439de941be399d156323620a2d6ecda (diff)
tests/gem_cmd_parse: restrict to gen7
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76982 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_exec_parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_exec_parse.c b/tests/gem_exec_parse.c
index 34d097d7..eb489634 100644
--- a/tests/gem_exec_parse.c
+++ b/tests/gem_exec_parse.c
@@ -31,6 +31,7 @@
#include "drmtest.h"
#include "ioctl_wrappers.h"
+#include "intel_chipset.h"
#ifndef I915_PARAM_CMD_PARSER_VERSION
#define I915_PARAM_CMD_PARSER_VERSION 28
@@ -219,6 +220,9 @@ igt_main
igt_require(!rc && parser_version > 0);
handle = gem_create(fd, 4096);
+
+ /* ATM cmd parser only exists on gen7. */
+ igt_require(intel_gen(intel_get_drm_devid(fd)) == 7);
}
igt_subtest("basic-allowed") {