meta: Don't do fragment color clamping in _mesa_meta_pbo_GetTexSubImage
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 6 May 2015 12:43:08 +0000 (05:43 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 24 Jul 2015 17:48:58 +0000 (10:48 -0700)
commitca4e17e03e9aeaa04fe6bb04bfe2d6f97991005b
tree6eb6796d871e342e8209f31e7b6da6e09fea3c08
parent0d207905e675b778739236072e7a4dfba7cd7959
meta: Don't do fragment color clamping in _mesa_meta_pbo_GetTexSubImage

_mesa_meta_pbo_GetTexSubImage() uses _mesa_meta_BlitFrameBuffer(),
which will do fragment clamping if enabled. But fragment clamping
doesn't affect ReadPixels and GetTexImage.

Without this patch, piglit test arb_color_buffer_float-clear fails,
when forced to use the meta pbo path.

v2: Apply this fix to both glReadPixels and glGetTexImage.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/common/meta_tex_subimage.c