[PATCH igt 5/6] kms_frontbuffer_tracking: destroy all FBs from all formats

Paulo Zanoni
2016-12-22T20:42:20Z

Don't just destroy the ones from the default format.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
---
tests/kms_frontbuffer_tracking.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 8aa6362..b85f56b 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1399,7 +1399,10 @@ static void setup_modeset(void)

static void teardown_modeset(void)
{
- destroy_fbs(FORMAT_DEFAULT);
+ enum pixel_format f;
+
+ for (f = 0; f < FORMAT_COUNT; f++)
+ destroy_fbs(f);
}

static void setup_sink_crc(void)