summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-07-12 10:05:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-07-12 10:07:04 +0100
commitb37d89318de5b5e771ad065bb7b55102f6800391 (patch)
tree892fba92515a20ce95bc61f792608e2673c13f82 /tests
parent7dbc43f27af6731c8b8d92c1bdcc046466c27ab3 (diff)
tests/gem_write_ring_switch: Skip on pre-SNB
The test requires MI commands only introduced with SNB, and so causes GPU death on gm45 and ilk. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66838
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_write_read_ring_switch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_write_read_ring_switch.c b/tests/gem_write_read_ring_switch.c
index 4d3bb616..b7fedc6f 100644
--- a/tests/gem_write_read_ring_switch.c
+++ b/tests/gem_write_read_ring_switch.c
@@ -177,6 +177,10 @@ int main(int argc, char **argv)
fd = drm_open_any();
+ /* Test requires MI_FLUSH_DW and MI_COND_BATCH_BUFFER_END */
+ if (intel_gen(intel_get_drm_devid(fd)) < 6)
+ return 77;
+
bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
if (!bufmgr) {
fprintf(stderr, "failed to init libdrm\n");