From 24c0c44c8d2bad5d65990e86b66fd01f779fa7fe Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 10 Apr 2020 20:14:32 +0100 Subject: [PATCH] modetest: remove cursor/page_flipping_supported stubs The two functions have been stubs for ages. The alluded generic ioctls never came to be, assumingly because all new drivers support those. Signed-off-by: Emil Velikov Reviewed-by: Ezequiel Garcia Tested-by: Ezequiel Garcia --- tests/modetest/modetest.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index e04edd36..baea3858 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -1865,33 +1865,6 @@ static void usage(char *name) exit(0); } -static int page_flipping_supported(void) -{ - /*FIXME: generic ioctl needed? */ - return 1; -#if 0 - int ret, value; - struct drm_i915_getparam gp; - - gp.param = I915_PARAM_HAS_PAGEFLIPPING; - gp.value = &value; - - ret = drmCommandWriteRead(fd, DRM_I915_GETPARAM, &gp, sizeof(gp)); - if (ret) { - fprintf(stderr, "drm_i915_getparam: %m\n"); - return 0; - } - - return *gp.value; -#endif -} - -static int cursor_supported(void) -{ - /*FIXME: generic ioctl needed? */ - return 1; -} - static int pipe_resolve_connectors(struct device *dev, struct pipe_arg *pipe) { drmModeConnector *connector; @@ -2053,21 +2026,11 @@ int main(int argc, char **argv) dev.use_atomic = use_atomic; - if (test_vsync && !page_flipping_supported()) { - fprintf(stderr, "page flipping not supported by drm.\n"); - return -1; - } - if (test_vsync && !count) { fprintf(stderr, "page flipping requires at least one -s option.\n"); return -1; } - if (test_cursor && !cursor_supported()) { - fprintf(stderr, "hw cursor not supported by drm.\n"); - return -1; - } - dev.resources = get_resources(&dev); if (!dev.resources) { drmClose(dev.fd);