summaryrefslogtreecommitdiff
path: root/tests/gem_exec_nop.c
diff options
context:
space:
mode:
authorZhong Li <zhong.li@intel.com>2013-04-23 15:06:45 +0800
committerBen Widawsky <ben@bwidawsk.net>2013-04-27 11:57:37 -0700
commitbafbbf1cc8663fa192c57152f2c13a81e68f9089 (patch)
tree9abf55aa08a1772129569f6c0659bb8ce9bb076a /tests/gem_exec_nop.c
parent21e7e342c14a69d62a24a9bce89b66c3ef0fd208 (diff)
gem_exec_nop.c: add vebox test case
v2 (Ben): Fixed whitespace, s/HAS_BLT_RING/gem_has_vebox/ s/I915_EXEC_VEBOX/LOCAL_I915_EXEC_VEBOX Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tests/gem_exec_nop.c')
-rw-r--r--tests/gem_exec_nop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
index 8608592a..58884324 100644
--- a/tests/gem_exec_nop.c
+++ b/tests/gem_exec_nop.c
@@ -43,6 +43,7 @@
#include "drmtest.h"
#include "intel_gpu_tools.h"
+#define LOCAL_I915_EXEC_VEBOX (4<<0)
bool skipped_all = true;
static double elapsed(const struct timeval *start,
@@ -134,6 +135,9 @@ int main(int argc, char **argv)
if (HAS_BLT_RING(devid))
loop(fd, handle, I915_EXEC_BLT, "blt");
+ if (drmtest_run_subtest("vebox"))
+ if (gem_has_vebox(fd))
+ loop(fd, handle, LOCAL_I915_EXEC_VEBOX, "vebox");
gem_close(fd, handle);