Mesa (master): i965: Support images with aux buffers

Jason Ekstrand jekstrand at kemper.freedesktop.org
Mon Aug 14 17:43:52 UTC 2017


Module: Mesa
Branch: master
Commit: f6fbeaf1c46ce1d7fd73664022cfff43e40e46b7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6fbeaf1c46ce1d7fd73664022cfff43e40e46b7

Author: Ben Widawsky <ben at bwidawsk.net>
Date:   Tue May 30 17:41:50 2017 +0530

i965: Support images with aux buffers

Previously images did not support any auxiliary compression surfaces
(CCS, MCS, or HiZ).  That's about to change.  This patch just adds the
fields to __DRIimageRec to make auxiliary surfaces possible.

v2 (Jason Ekstrand):
 - Add an aux_pitch parameter as well as aux_offset

Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
Acked-by: Daniel Stone <daniels at collabora.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Reviewed-by: Chad Versace <chadversary at chromium.org>

---

 src/mesa/drivers/dri/i965/intel_image.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_image.h b/src/mesa/drivers/dri/i965/intel_image.h
index 5e83bbd060..78d689a11a 100644
--- a/src/mesa/drivers/dri/i965/intel_image.h
+++ b/src/mesa/drivers/dri/i965/intel_image.h
@@ -92,6 +92,12 @@ struct __DRIimageRec {
    /** The image was created with EGL_EXT_image_dma_buf_import. */
    bool dma_buf_imported;
 
+   /** Offset of the auxiliary compression surface in the bo. */
+   uint32_t aux_offset;
+
+   /** Pitch of the auxiliary compression surface. */
+   uint32_t aux_pitch;
+
    /**
     * Provided by EGL_EXT_image_dma_buf_import.
     * \{




More information about the mesa-commit mailing list