util: simplify PIPE_TEXTURE_CUBE case in util_max_layer()
authorBrian Paul <brianp@vmware.com>
Mon, 29 Sep 2014 22:10:18 +0000 (16:10 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Sep 2014 18:08:49 +0000 (12:08 -0600)
commit0fb1e6b7b41da22406d61d0a1fc7988384a45c8b
tree2f4a890b41e15826229d964b34358b46877192b7
parent59562e9ba5330cb2033757a582fe7f449140af46
util: simplify PIPE_TEXTURE_CUBE case in util_max_layer()

For cube resources, the array_size value should be 6.  So handle
that case as we do for array texture resources.  But assert that
array_size==6 just to be safe.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_inlines.h