util: Updated util_format_is_array to be more accurate.
authorJames Benton <jbenton@vmware.com>
Wed, 11 Jul 2012 14:32:47 +0000 (15:32 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 28 Nov 2012 19:14:36 +0000 (19:14 +0000)
commitd03d29a0442e8c1bfb1567f33abc83373a203220
tree5cf6b7e889fa14262ebe83ee2616cdc143f41249
parente66ec7c46b310f6b309aa90c1e0e2edd53de3479
util: Updated util_format_is_array to be more accurate.

Will allow formats with padding, e.g. RGBX.
Will now allow swizzled formats as long as the alpha is channel 3.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_format.c
src/gallium/auxiliary/util/u_format.h