summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.h
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 /lib/intel_batchbuffer.h
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 'lib/intel_batchbuffer.h')
-rw-r--r--lib/intel_batchbuffer.h18
1 files changed, 11 insertions, 7 deletions
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);