summaryrefslogtreecommitdiff
path: root/tests/kms_ccs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms_ccs.c')
-rw-r--r--tests/kms_ccs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index 63298f13..e1ee5880 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -280,6 +280,8 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
int ret;
uint32_t ccs_handle;
+ memset(fb, 0, sizeof(*fb));
+
/* Use either compressed or Y-tiled to test. However, given the lack of
* available bandwidth, we use linear for the primary plane when
* testing sprites, since we cannot fit two CCS planes into the