[Mesa-dev] [PATCH V7 2/8] intel: expose dimensions and offsets of a miptree level in DRIImage

Abdiel Janulgue abdiel.janulgue at linux.intel.com
Wed Jan 30 05:40:20 PST 2013


Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
 src/mesa/drivers/dri/intel/intel_regions.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel/intel_regions.h
index 1aff5d9..84cf08b 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.h
+++ b/src/mesa/drivers/dri/intel/intel_regions.h
@@ -174,6 +174,12 @@ struct __DRIimageRec {
    uint32_t offsets[3];
    struct intel_image_format *planar_format;
 
+   /* particular miptree level */
+   GLuint width;
+   GLuint height;
+   GLuint tile_x;
+   GLuint tile_y;
+
    void *data;
 };
 
-- 
1.7.9.5



More information about the mesa-dev mailing list