meta/GetTexSubImage: Account for GL_PACK_SKIP_IMAGES on compressed textures
authorEduardo Lima Mitev <elima@igalia.com>
Mon, 14 Nov 2016 23:25:14 +0000 (15:25 -0800)
committerEduardo Lima Mitev <elima@igalia.com>
Tue, 15 Nov 2016 11:26:13 +0000 (12:26 +0100)
commite73513f3c85f45a05a23dbdcda7901812fc4d4fa
tree5d3d70023c81997cc2598d57c480f9f2e6f1b525
parent277f868e6682b9ee398ed326425274c3d1898417
meta/GetTexSubImage: Account for GL_PACK_SKIP_IMAGES on compressed textures

This option was being ignored when packing compressed 3D and cube textures.

Fixes CTS test (on gen8+):
* GL45-CTS.gtf32.GL3Tests.packed_pixels.packed_pixels_pixelstore

v2: Drop API checks.
v3 (Ken): Just apply the existing code in more cases.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/common/meta.c