diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-06-03 14:32:12 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-07-15 15:53:48 -0700 |
commit | f665a3da7213818ca1cebe364500c4b190a491ce (patch) | |
tree | fe2b8cfc1adf7f222858d0b2ad47e8a082afca6e /src/mesa/drivers/dri/i965/intel_mipmap_tree.h | |
parent | e2dd3ce976c5cfcd41d040fc37c6be5b8373c3e9 (diff) | |
download | external_mesa3d-f665a3da7213818ca1cebe364500c4b190a491ce.zip external_mesa3d-f665a3da7213818ca1cebe364500c4b190a491ce.tar.gz external_mesa3d-f665a3da7213818ca1cebe364500c4b190a491ce.tar.bz2 |
i965/miptree: Add a helper for getting an isl_surf from a miptree
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h index 9543b33..cf5d1a6 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h @@ -47,6 +47,7 @@ #include <assert.h> #include "main/mtypes.h" +#include "isl/isl.h" #include "intel_bufmgr.h" #include "intel_resolve_map.h" #include <GL/internal/dri_interface.h> @@ -797,6 +798,11 @@ intel_miptree_get_image_offset(const struct intel_mipmap_tree *mt, GLuint *x, GLuint *y); void +intel_miptree_get_isl_surf(struct brw_context *brw, + const struct intel_mipmap_tree *mt, + struct isl_surf *surf); + +void intel_get_image_dims(struct gl_texture_image *image, int *width, int *height, int *depth); |