mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-27 01:36:17 +00:00
lib/drmtest: fix logic fumble in gem_context_create
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68363 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
3e7dddc1d1
commit
e075e7b43c
@ -533,7 +533,7 @@ uint32_t gem_context_create(int fd)
|
||||
int ret;
|
||||
|
||||
ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_CONTEXT_CREATE, &create);
|
||||
igt_require(ret == 0 || (errno == ENODEV || errno == EINVAL));
|
||||
igt_require(ret == 0 || (errno != ENODEV && errno != EINVAL));
|
||||
igt_assert(ret == 0);
|
||||
|
||||
return create.ctx_id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user