summaryrefslogtreecommitdiff
path: root/tests/gem_ppgtt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_ppgtt.c')
-rw-r--r--tests/gem_ppgtt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_ppgtt.c b/tests/gem_ppgtt.c
index 575b0e9d..af5e3e07 100644
--- a/tests/gem_ppgtt.c
+++ b/tests/gem_ppgtt.c
@@ -66,6 +66,8 @@ static void scratch_buf_init(struct igt_buf *buf,
drm_intel_bufmgr *bufmgr,
uint32_t pixel)
{
+ memset(buf, 0, sizeof(*buf));
+
buf->bo = create_bo(bufmgr, pixel);
buf->stride = STRIDE;
buf->tiling = I915_TILING_NONE;
@@ -109,7 +111,7 @@ static void fork_rcs_copy(int target, drm_intel_bo **dst, int count, unsigned fl
igt_fork(child, count) {
struct intel_batchbuffer *batch;
- struct igt_buf buf;
+ struct igt_buf buf = {};
batch = intel_batchbuffer_alloc(dst[child]->bufmgr,
devid);