public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib: Remove incomplete assert from igt_require_fb_modifiers()
@ 2018-10-03 19:56 Chris Wilson
  2018-10-03 21:01 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2018-10-04  9:56 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2018-10-03 19:56 UTC (permalink / raw)
  To: igt-dev

Since the igt_assert is far from complete and does not enumerate all the
possible valid values, restrict the function to do only what it says it
will do, check for the required fb modifiers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 lib/ioctl_wrappers.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 5ad682f5..529eae36 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -1667,7 +1667,6 @@ void igt_require_fb_modifiers(int fd)
 		int ret;
 
 		ret = drmGetCap(fd, DRM_CAP_ADDFB2_MODIFIERS, &cap_modifiers);
-		igt_assert(ret == 0 || errno == EINVAL);
 		has_modifiers = ret == 0 && cap_modifiers == 1;
 		cap_modifiers_tested = true;
 	}
-- 
2.19.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-04  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-03 19:56 [igt-dev] [PATCH i-g-t] lib: Remove incomplete assert from igt_require_fb_modifiers() Chris Wilson
2018-10-03 21:01 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-04  9:56 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox