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
parent
9ffcbf5cd9
commit
24c0c44c8d
|
@ -1865,33 +1865,6 @@ static void usage(char *name)
|
||||||
exit(0);
|
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)
|
static int pipe_resolve_connectors(struct device *dev, struct pipe_arg *pipe)
|
||||||
{
|
{
|
||||||
drmModeConnector *connector;
|
drmModeConnector *connector;
|
||||||
|
@ -2053,21 +2026,11 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
dev.use_atomic = use_atomic;
|
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) {
|
if (test_vsync && !count) {
|
||||||
fprintf(stderr, "page flipping requires at least one -s option.\n");
|
fprintf(stderr, "page flipping requires at least one -s option.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (test_cursor && !cursor_supported()) {
|
|
||||||
fprintf(stderr, "hw cursor not supported by drm.\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
dev.resources = get_resources(&dev);
|
dev.resources = get_resources(&dev);
|
||||||
if (!dev.resources) {
|
if (!dev.resources) {
|
||||||
drmClose(dev.fd);
|
drmClose(dev.fd);
|
||||||
|
|
Loading…
Reference in New Issue