meta: Abort meta pbo path if readpixels need signed-unsigned conversion
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 20 May 2015 17:22:45 +0000 (10:22 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 24 Jul 2015 17:48:58 +0000 (10:48 -0700)
commit0d207905e675b778739236072e7a4dfba7cd7959
tree5be68dafa20a60f8865f19ce06e798ac423f99e4
parent1252d53c19ec005c17ca666cecb7db072d77e5ce
meta: Abort meta pbo path if readpixels need signed-unsigned conversion

Meta pbo path for ReadPixels rely on BlitFramebuffer which doesn't support
signed to unsigned integer conversions and vice versa.

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

v2: Make need_signed_unsigned_int_conversion() a static function. (Iago)
    Bump up the comment and the commit message. (Jason)

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