diff options
author | Ben Widawsky <[email protected]> | 2017-05-30 17:23:50 +0530 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-08-14 10:43:30 -0700 |
commit | f6fbeaf1c46ce1d7fd73664022cfff43e40e46b7 (patch) | |
tree | 290b8e81b80dc72d6137b9554403149dc9fe006e /src | |
parent | cf2e92262b48223b6be0e12a64083770281c15c8 (diff) |
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 <[email protected]>
Acked-by: Daniel Stone <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_image.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_image.h b/src/mesa/drivers/dri/i965/intel_image.h index 5e83bbd0608..78d689a11a3 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. * \{ |