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 <emil.velikov@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
main
Emil Velikov 2020-04-10 20:14:32 +01:00 committed by Emil Velikov
parent 9ffcbf5cd9
commit 24c0c44c8d
1 changed files with 0 additions and 37 deletions

View File

@ -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);