meta: Add pixel store/pack operations in decompress_texture_image
authorAnuj Phogat <anuj.phogat@gmail.com>
Sat, 11 Feb 2012 00:27:19 +0000 (16:27 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Mon, 13 Feb 2012 19:07:48 +0000 (11:07 -0800)
commit40427025916e003cfd380c2e30df78ad2bc8fe10
tree4592f742b26c980e29901745d8250ec8ca6d230b
parentdf1cd55ebf362948788c04d2fa7da55c80991605
meta: Add pixel store/pack operations in decompress_texture_image

This patch adds the pixel store operations in decompress_texture_image().
decompress_texture_image() is used in glGetTexImage() for compressed
textures with unsigned, normalized values.

It also fixes the failures in intel oglconform pxstore-gettex due to
following sub test cases:

 - Test all mipmaps with byte swapping enabled
 - Test all small mipmaps with all allowable alignment values
 - Test subimage packing for all mipmap levels

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40864

Note: This is a candidate for stable branches

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/common/meta.c