From a4393c3951ec6eb20901b4883c6549ea36affc33 Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Tue, 3 Jul 2018 20:42:52 +0300 Subject: lib: Add aux surface state to igt_buf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Store a bit of aux surface state in igt_buf. This will be needed for rendercopy AUX_CCS_E color compression. We also have to sprinkle memset()s and whatnot all over to make sure the current igt_buf users don't leave the aux stuff full of stack garbage. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- tests/perf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/perf.c') 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; -- cgit v1.2.3