summaryrefslogtreecommitdiff
path: root/tests/perf.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-07-03 20:42:52 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-07-06 15:59:25 +0300
commita4393c3951ec6eb20901b4883c6549ea36affc33 (patch)
treed406a6f4b9b24d13140d4a794dddcdd78b23b862 /tests/perf.c
parentae539ba6553144d9345672ddc991c17563d850b7 (diff)
lib: Add aux surface state to igt_buf
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ä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
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;