modetest: don't error out of final AtomicCommit

The very final drmModeAtommicCommit tears down the existing mode/plane
setup. Following it we clean up other misc state laying around.

Chances are that it will not fail, but in the extremely unlikely case it
does, there's nothing one can do.

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-15 10:28:36 +01:00 committed by Emil Velikov
parent 3d88c993a4
commit e341176d9f
1 changed files with 1 additions and 3 deletions

View File

@ -2078,10 +2078,8 @@ int main(int argc, char **argv)
atomic_clear_mode(&dev, pipe_args, count);
atomic_clear_planes(&dev, plane_args, plane_count);
ret = drmModeAtomicCommit(dev.fd, dev.req, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
if (ret) {
if (ret)
fprintf(stderr, "Atomic Commit failed\n");
return 1;
}
atomic_clear_FB(&dev, plane_args, plane_count);
}