summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.h
diff options
context:
space:
mode:
authorAnuj Phogat <anuj.phogat@gmail.com>2015-05-19 17:44:52 -0700
committerAnuj Phogat <anuj.phogat@gmail.com>2015-07-24 10:48:58 -0700
commit7974e23be9ff7586e5250cff321b6ec7749ecc44 (patch)
tree91bd7463725208d53ea4f4cada4648ca3255ea48 /src/mesa/main/readpix.h
parent013d731a67538a2eb8f508fa54bb86191f0e5491 (diff)
downloadexternal_mesa3d-7974e23be9ff7586e5250cff321b6ec7749ecc44.zip
external_mesa3d-7974e23be9ff7586e5250cff321b6ec7749ecc44.tar.gz
external_mesa3d-7974e23be9ff7586e5250cff321b6ec7749ecc44.tar.bz2
mesa: Turn get_readpixels_transfer_ops() in to a global function
This utility function is utilized in a later patch. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/main/readpix.h')
-rw-r--r--src/mesa/main/readpix.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/readpix.h b/src/mesa/main/readpix.h
index 1636dd9..f894036 100644
--- a/src/mesa/main/readpix.h
+++ b/src/mesa/main/readpix.h
@@ -40,6 +40,12 @@ _mesa_readpixels_needs_slow_path(const struct gl_context *ctx, GLenum format,
extern GLboolean
_mesa_need_rgb_to_luminance_conversion(mesa_format texFormat, GLenum format);
+extern GLbitfield
+_mesa_get_readpixels_transfer_ops(const struct gl_context *ctx,
+ mesa_format texFormat,
+ GLenum format, GLenum type,
+ GLboolean uses_blit);
+
extern void
_mesa_readpixels(struct gl_context *ctx,
GLint x, GLint y, GLsizei width, GLsizei height,