aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/kmstest.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp
index 63b7d44..21309d6 100644
--- a/utils/kmstest.cpp
+++ b/utils/kmstest.cpp
@@ -392,7 +392,7 @@ static void usage()
392 puts(usage_str); 392 puts(usage_str);
393} 393}
394 394
395enum class ObjectType 395enum class ArgType
396{ 396{
397 Connector, 397 Connector,
398 Crtc, 398 Crtc,
@@ -403,7 +403,7 @@ enum class ObjectType
403 403
404struct Arg 404struct Arg
405{ 405{
406 ObjectType type; 406 ArgType type;
407 string arg; 407 string arg;
408}; 408};
409 409
@@ -422,23 +422,23 @@ static vector<Arg> parse_cmdline(int argc, char **argv)
422 Option("c|connector=", 422 Option("c|connector=",
423 [&](string s) 423 [&](string s)
424 { 424 {
425 args.push_back(Arg { ObjectType::Connector, s }); 425 args.push_back(Arg { ArgType::Connector, s });
426 }), 426 }),
427 Option("r|crtc=", [&](string s) 427 Option("r|crtc=", [&](string s)
428 { 428 {
429 args.push_back(Arg { ObjectType::Crtc, s }); 429 args.push_back(Arg { ArgType::Crtc, s });
430 }), 430 }),
431 Option("p|plane=", [&](string s) 431 Option("p|plane=", [&](string s)
432 { 432 {
433 args.push_back(Arg { ObjectType::Plane, s }); 433 args.push_back(Arg { ArgType::Plane, s });
434 }), 434 }),
435 Option("f|fb=", [&](string s) 435 Option("f|fb=", [&](string s)
436 { 436 {
437 args.push_back(Arg { ObjectType::Framebuffer, s }); 437 args.push_back(Arg { ArgType::Framebuffer, s });
438 }), 438 }),
439 Option("v|view=", [&](string s) 439 Option("v|view=", [&](string s)
440 { 440 {
441 args.push_back(Arg { ObjectType::View, s }); 441 args.push_back(Arg { ArgType::View, s });
442 }), 442 }),
443 Option("|dmt", []() 443 Option("|dmt", []()
444 { 444 {
@@ -519,7 +519,7 @@ static vector<OutputInfo> setups_to_outputs(Card& card, ResourceManager& resman,
519 519
520 for (auto& arg : output_args) { 520 for (auto& arg : output_args) {
521 switch (arg.type) { 521 switch (arg.type) {
522 case ObjectType::Connector: 522 case ArgType::Connector:
523 { 523 {
524 outputs.push_back(OutputInfo { }); 524 outputs.push_back(OutputInfo { });
525 current_output = &outputs.back(); 525 current_output = &outputs.back();
@@ -530,7 +530,7 @@ static vector<OutputInfo> setups_to_outputs(Card& card, ResourceManager& resman,
530 break; 530 break;
531 } 531 }
532 532
533 case ObjectType::Crtc: 533 case ArgType::Crtc:
534 { 534 {
535 if (!current_output) { 535 if (!current_output) {
536 outputs.push_back(OutputInfo { }); 536 outputs.push_back(OutputInfo { });
@@ -549,7 +549,7 @@ static vector<OutputInfo> setups_to_outputs(Card& card, ResourceManager& resman,
549 break; 549 break;
550 } 550 }
551 551
552 case ObjectType::Plane: 552 case ArgType::Plane:
553 { 553 {
554 if (!current_output) { 554 if (!current_output) {
555 outputs.push_back(OutputInfo { }); 555 outputs.push_back(OutputInfo { });
@@ -570,7 +570,7 @@ static vector<OutputInfo> setups_to_outputs(Card& card, ResourceManager& resman,
570 break; 570 break;
571 } 571 }
572 572
573 case ObjectType::Framebuffer: 573 case ArgType::Framebuffer:
574 { 574 {
575 if (!current_output) { 575 if (!current_output) {
576 outputs.push_back(OutputInfo { }); 576 outputs.push_back(OutputInfo { });
@@ -603,7 +603,7 @@ static vector<OutputInfo> setups_to_outputs(Card& card, ResourceManager& resman,
603 break; 603 break;
604 } 604 }
605 605
606 case ObjectType::View: 606 case ArgType::View:
607 { 607 {
608 if (!current_plane || current_plane->fbs.empty()) 608 if (!current_plane || current_plane->fbs.empty())
609 EXIT("'view' parameter requires a plane and a fb"); 609 EXIT("'view' parameter requires a plane and a fb");