tests/gem_lut_handle: Limit testing LUT interface to recent kernels

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2013-01-17 15:07:50 +00:00
parent d5517a1301
commit fb7bc2e8d1
2 changed files with 7 additions and 3 deletions
+5 -2
View File
@@ -185,9 +185,12 @@ int main(int argc, char **argv)
gem_write(fd, handle, 0, batch, sizeof(batch));
do_or_die(exec(fd, handle, NORMAL));
do_or_die(exec(fd, handle, USE_LUT));
fail(exec(fd, handle, BROKEN));
if (exec(fd, handle, USE_LUT))
return 77;
do_or_die(exec(fd, handle, USE_LUT));
fail(exec(fd, handle, USE_LUT | BROKEN));
for (i = 2; i <= 65536; i *= 2) {