summaryrefslogtreecommitdiff
path: root/tests/perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/perf.c')
-rw-r--r--tests/perf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/perf.c b/tests/perf.c
index 2736918f..25a6bf19 100644
--- a/tests/perf.c
+++ b/tests/perf.c
@@ -495,6 +495,8 @@ scratch_buf_init(drm_intel_bufmgr *bufmgr,
scratch_buf_memset(bo, width, height, color);
+ memset(buf, 0, sizeof(*buf));
+
buf->bo = bo;
buf->stride = stride;
buf->tiling = I915_TILING_NONE;