summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.h
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2015-06-12 14:42:57 -0700
committerAnuj Phogat <[email protected]>2015-07-24 10:48:58 -0700
commit4b8745680ff45cd7adc7896c06263e14b8d347ce (patch)
tree51f428050e5c6f2e64bcc4260082a30369c34272 /src/mesa/main/readpix.h
parentaa40546b2de4cd572af02d31fd5c7d4045505ea2 (diff)
mesa: Change the signature of _mesa_need_rgb_to_luminance_conversion()
This allows us to handle cases when texImage->_BaseFormat doesn't match _mesa_format_get_base_format(texImage->Format). _BaseFormat is what we care about in this function. Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.h')
-rw-r--r--src/mesa/main/readpix.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/readpix.h b/src/mesa/main/readpix.h
index 41116e430ec..481ad9d9c37 100644
--- a/src/mesa/main/readpix.h
+++ b/src/mesa/main/readpix.h
@@ -38,7 +38,8 @@ _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);
+_mesa_need_rgb_to_luminance_conversion(GLenum srcBaseFormat,
+ GLenum dstBaseFormat);
extern GLboolean
_mesa_need_luminance_to_rgb_conversion(GLenum srcBaseFormat,