util: add util_resource_is_array_texture()
authorChia-I Wu <olvaffe@gmail.com>
Fri, 7 Jun 2013 06:52:48 +0000 (14:52 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 7 Jun 2013 17:37:40 +0000 (01:37 +0800)
commitd6c2708e1eb319e577f61ea137471a1966d231ab
tree84f96eb572e7fa95df8428c3d8aa0e131a2ade11
parent90fa71b277e9d4be71a1edf5bc2f2caf7eed0b23
util: add util_resource_is_array_texture()

Checking if array_size is greater than 1 is not enough for single-layered
array textures.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_resource.h