mesa/texgetimage: fix missing stencil check
authorDave Airlie <airlied@redhat.com>
Sun, 23 Aug 2015 23:52:12 +0000 (09:52 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 26 Aug 2015 00:22:09 +0000 (10:22 +1000)
commitc1452983b44cc8ee238b8c7e2cfca1105c707487
tree24e1c9c6e1601ad8c08873f76b47bb59bbde7de3
parent1d2a844e7d55645ea3d24fb589bec03695b3d2b1
mesa/texgetimage: fix missing stencil check

GetTexImage can read to stencil8 but only from
a stencil or depthstencil textures.

This fixes a bunch of failures in CTS
GL33-CTS.gtf32.GL3Tests.packed_pixels

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "11.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/texgetimage.c