intel: expose dimensions and offsets of a miptree level in DRIImage
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Thu, 17 Jan 2013 15:04:27 +0000 (17:04 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 1 Feb 2013 19:58:12 +0000 (11:58 -0800)
v8: - Append has_depthstencil field in DRIImage structure.

Reviewed-by: Eric Anholt <eric@anholt.net> (v6)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (v8)
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/drivers/dri/intel/intel_regions.h

index 1aff5d9f3b01cac1a601be140092f1c8702c8889..28d581c800c4d1d7d41f3aed3324fc57a00d0805 100644 (file)
@@ -174,6 +174,13 @@ 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;
+   bool has_depthstencil;
+
    void *data;
 };