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 --- lib/intel_batchbuffer.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'lib/intel_batchbuffer.h') diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index 8acfdbbf..2dcb09ce 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -223,13 +223,17 @@ void intel_copy_bo(struct intel_batchbuffer *batch, * fill functions. */ struct igt_buf { - drm_intel_bo *bo; - uint32_t stride; - uint32_t tiling; - uint32_t *data; - uint32_t size; - /*< private >*/ - unsigned num_tiles; + drm_intel_bo *bo; + uint32_t stride; + uint32_t tiling; + uint32_t *data; + uint32_t size; + struct { + uint32_t offset; + uint32_t stride; + } aux; + /*< private >*/ + unsigned num_tiles; }; unsigned igt_buf_width(const struct igt_buf *buf); -- cgit v1.2.3