diff options
author | Jason Ekstrand <[email protected]> | 2016-06-03 14:32:12 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-07-15 15:53:48 -0700 |
commit | f665a3da7213818ca1cebe364500c4b190a491ce (patch) | |
tree | fe2b8cfc1adf7f222858d0b2ad47e8a082afca6e /src/mesa/drivers/dri/i965/intel_mipmap_tree.h | |
parent | e2dd3ce976c5cfcd41d040fc37c6be5b8373c3e9 (diff) |
i965/miptree: Add a helper for getting an isl_surf from a miptree
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
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 9543b33b8ce..cf5d1a6528d 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); |