mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-06 20:10:24 +01:00
modetest: simplify "dump all" logic
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com> Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
This commit is contained in:
parent
c997baf590
commit
9ffcbf5cd9
1 changed files with 5 additions and 1 deletions
|
|
@ -1950,12 +1950,15 @@ int main(int argc, char **argv)
|
|||
switch (c) {
|
||||
case 'a':
|
||||
use_atomic = 1;
|
||||
/* Preserve the default behaviour of dumping all information. */
|
||||
args--;
|
||||
break;
|
||||
case 'c':
|
||||
connectors = 1;
|
||||
break;
|
||||
case 'D':
|
||||
device = optarg;
|
||||
/* Preserve the default behaviour of dumping all information. */
|
||||
args--;
|
||||
break;
|
||||
case 'd':
|
||||
|
|
@ -2033,7 +2036,8 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (!args || (args == 1 && use_atomic))
|
||||
/* Dump all the details when no* arguments are provided. */
|
||||
if (!args)
|
||||
encoders = connectors = crtcs = planes = framebuffers = 1;
|
||||
|
||||
dev.fd = util_open(device, module);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue