summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common/meta.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-01-05 18:17:04 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2015-01-22 10:36:24 -0800
commit7f396189f073d626c5f7a2c232dac92b65f5a23f (patch)
tree313b3463cd09b4db9a48f4b6d4c04195f470dc70 /src/mesa/drivers/common/meta.h
parente24d17e08cb19bbecadb22ed43b25eeec26cde27 (diff)
downloadexternal_mesa3d-7f396189f073d626c5f7a2c232dac92b65f5a23f.zip
external_mesa3d-7f396189f073d626c5f7a2c232dac92b65f5a23f.tar.gz
external_mesa3d-7f396189f073d626c5f7a2c232dac92b65f5a23f.tar.bz2
meta: Add a BlitFramebuffers-based implementation of TexSubImage
This meta path, designed for use with PBO's, creates a temporary texture out of the PBO and uses BlitFramebuffers to do the actual texture upload. v2 Jason Ekstrand <jason.ekstrand@intel.com>: - Add support for handling simple packing options v3 Jason Ekstrand <jason.ekstrand@intel.com>: - Refactor to split out the texture-from-pbo code - Rename to _mesa_meta_pbo_TexSubImage Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
-rw-r--r--src/mesa/drivers/common/meta.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h
index c6aef01..87e9cc9 100644
--- a/src/mesa/drivers/common/meta.h
+++ b/src/mesa/drivers/common/meta.h
@@ -522,6 +522,15 @@ extern void
_mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target,
struct gl_texture_object *texObj);
+extern bool
+_mesa_meta_pbo_TexSubImage(struct gl_context *ctx, GLuint dims,
+ struct gl_texture_image *tex_image,
+ int xoffset, int yoffset, int zoffset,
+ int width, int height, int depth,
+ GLenum format, GLenum type, const void *pixels,
+ bool allocate_storage, bool create_pbo,
+ const struct gl_pixelstore_attrib *packing);
+
extern void
_mesa_meta_CopyTexSubImage(struct gl_context *ctx, GLuint dims,
struct gl_texture_image *texImage,