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
parent
3d88c993a4
commit
e341176d9f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue