mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
tests/gem_mmap_wc: don't fail if the Kernel is too old for the getparam flag
Just don't check the drmIoctl() return code: the "if (val)" should be enough to prevent any problems. v2: Don't SKIP, just proceed (Chris). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89739 Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
5f9bc98a55
commit
cd33b47a47
@ -104,7 +104,7 @@ test_invalid_flags(int fd)
|
||||
gp.value = &val;
|
||||
|
||||
/* Do we have the new mmap_ioctl? */
|
||||
do_ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
||||
drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
||||
|
||||
if (val >= 1) {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user