diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-03 20:42:52 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-06 15:59:25 +0300 |
commit | a4393c3951ec6eb20901b4883c6549ea36affc33 (patch) | |
tree | d406a6f4b9b24d13140d4a794dddcdd78b23b862 /tests/gem_ring_sync_copy.c | |
parent | ae539ba6553144d9345672ddc991c17563d850b7 (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_ring_sync_copy.c')
-rw-r--r-- | tests/gem_ring_sync_copy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_ring_sync_copy.c b/tests/gem_ring_sync_copy.c index a949753d..8d372355 100644 --- a/tests/gem_ring_sync_copy.c +++ b/tests/gem_ring_sync_copy.c @@ -131,6 +131,8 @@ static void bo_check(data_t *data, drm_intel_bo *bo, uint32_t val) static void scratch_buf_init_from_bo(struct igt_buf *buf, drm_intel_bo *bo) { + memset(buf, 0, sizeof(*buf)); + buf->bo = bo; buf->stride = 4 * WIDTH; buf->tiling = I915_TILING_NONE; |