mesa: fix issues with texture border and array textures
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 15 Feb 2012 23:40:51 +0000 (15:40 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 21 Feb 2012 18:46:55 +0000 (10:46 -0800)
commitb5c409363cfd144b1caad50b77ccc7591de42af2
treea5aace80747d0b04b4be3fadeeca55264c3c2260
parente372e53ee0ed57072322003e508b3ca4c58076be
mesa: fix issues with texture border and array textures

For a 1D texture array, the border only applies to the width.  For a 2D
texture array the border applies to the width and height but not the depth.
Sucha cases were  not handled correctly in _mesa_init_teximage_fields().

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/main/teximage.c