drm-tests: Init secondary format with invalid value
null_platform_test can test pageflipping between different formats.
This CL initializes the secondary pageflip format to invalid, in this
way the primary format is used for all the buffers when a secondary
format is not specified via command line.
BUG=chromium:776093
TEST='null_platform_test -f XR30' on eve (with crrev.com/c/747509).
Change-Id: Iac650756b691782615f7407e5fc77cc28abb2796
Reviewed-on: https://chromium-review.googlesource.com/750382
Commit-Ready: Daniele Castagna <dcastagna@chromium.org>
Tested-by: Daniele Castagna <dcastagna@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
diff --git a/null_platform_test.c b/null_platform_test.c
index fb2da66..63233c2 100644
--- a/null_platform_test.c
+++ b/null_platform_test.c
@@ -122,7 +122,7 @@
int fd = -1;
bool help_flag = false;
uint32_t format = GBM_FORMAT_XRGB8888;
- uint32_t test_page_flip_format_change = GBM_FORMAT_XRGB8888;
+ uint32_t test_page_flip_format_change = 0;
int c = -1;
while ((c = getopt_long(argc, argv, "hp:f:", longopts, NULL)) != -1) {