[Mesa-dev] [PATCH V5 2/7] intel: expose dimensions and offsets of a miptree level in DRIImage
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Thu Jan 17 07:48:56 PST 2013
Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
src/mesa/drivers/dri/intel/intel_regions.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel/intel_regions.h
index 8737a6d..95b65de 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.h
+++ b/src/mesa/drivers/dri/intel/intel_regions.h
@@ -174,6 +174,13 @@ struct __DRIimageRec {
uint32_t offsets[3];
struct intel_image_format *planar_format;
+ /* particular miptree level */
+ GLuint width;
+ GLuint height;
+ /* Offset of image from miptree's base address */
+ GLuint draw_x;
+ GLuint draw_y;
+
void *data;
};
--
1.7.9.5
More information about the mesa-dev
mailing list