Mesa (master): intel: expose dimensions and offsets of a miptree level in DRIImage
Chad Versace
chadversary at kemper.freedesktop.org
Fri Feb 1 20:03:02 UTC 2013
Module: Mesa
Branch: master
Commit: f9e4e5f9f968fa9b40b40fd4f24622556019b80a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9e4e5f9f968fa9b40b40fd4f24622556019b80a
Author: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
Date: Thu Jan 17 17:04:27 2013 +0200
intel: expose dimensions and offsets of a miptree level in DRIImage
v8: - Append has_depthstencil field in DRIImage structure.
Reviewed-by: Eric Anholt <eric at anholt.net> (v6)
Reviewed-by: Chad Versace <chad.versace at linux.intel.com> (v8)
Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
src/mesa/drivers/dri/intel/intel_regions.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel/intel_regions.h
index 1aff5d9..28d581c 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;
+ GLuint tile_x;
+ GLuint tile_y;
+ bool has_depthstencil;
+
void *data;
};
More information about the mesa-commit
mailing list