summaryrefslogtreecommitdiff
path: root/tests/gem_gpgpu_fill.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/gem_gpgpu_fill.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/gem_gpgpu_fill.c')
-rw-r--r--tests/gem_gpgpu_fill.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_gpgpu_fill.c b/tests/gem_gpgpu_fill.c
index df9e86f6..8ef05a3f 100644
--- a/tests/gem_gpgpu_fill.c
+++ b/tests/gem_gpgpu_fill.c
@@ -72,6 +72,8 @@ static void scratch_buf_init(data_t *data, struct igt_buf *buf,
gem_write(data->drm_fd, bo->handle, 0, data->linear,
sizeof(data->linear));
+ memset(buf, 0, sizeof(*buf));
+
buf->bo = bo;
buf->stride = stride;
buf->tiling = I915_TILING_NONE;