mesa/meta: check for signed/unsigned int conversion for pbo getteximage
authorDave Airlie <airlied@redhat.com>
Tue, 10 May 2016 05:41:46 +0000 (15:41 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 10 May 2016 20:52:20 +0000 (06:52 +1000)
commitb230d51a181aae0982d167e227d1833154133a5c
tree72434110ecfb2611673fe1076c947876b2a5ddd5
parent8bb156a261e866af2e0b4c59e2e29efd65bc0645
mesa/meta: check for signed/unsigned int conversion for pbo getteximage

When doing GetTexSubImage using a PBO, we should check if it involves
a signed/unsigned conversion and bail if it does, just like in the
other cases.

This fixes:
GL33-CTS.gtf32.GL3Tests.packed_pixels.packed_pixels_pbo
on Haswell at least.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95324
Reviewed-by: Matt Turer <mattst88@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/common/meta_tex_subimage.c