diff options
author | Anuj Phogat <[email protected]> | 2015-05-01 00:05:18 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2015-06-15 09:07:28 -0700 |
commit | ba2b1f8668811eade97a4f134f6df900ff36c8aa (patch) | |
tree | cffec0996c9e9253d24204de180a6fd454211a36 /src/mesa/main/readpix.h | |
parent | 0b13adcd0802d1ad60f625e7e557d2090a7c143e (diff) |
mesa: Turn need_rgb_to_luminance_conversion() in to a global function
This will be used by _mesa_meta_pbo_GetTexSubImage() in a later patch.
Signed-off-by: Anuj Phogat <[email protected]>
Cc: <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.h')
-rw-r--r-- | src/mesa/main/readpix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/readpix.h b/src/mesa/main/readpix.h index 4bb35e17e4d..1636dd9ce3e 100644 --- a/src/mesa/main/readpix.h +++ b/src/mesa/main/readpix.h @@ -37,6 +37,9 @@ extern GLboolean _mesa_readpixels_needs_slow_path(const struct gl_context *ctx, GLenum format, GLenum type, GLboolean uses_blit); +extern GLboolean +_mesa_need_rgb_to_luminance_conversion(mesa_format texFormat, GLenum format); + extern void _mesa_readpixels(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, |