gallium/util: don't pass a pipe_resource to util_resource_is_array_texture()
authorBrian Paul <brianp@vmware.com>
Thu, 7 Dec 2017 22:00:49 +0000 (15:00 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Dec 2017 16:44:59 +0000 (09:44 -0700)
commit63b03dc924adf91ecb5da757edafa975878d7047
tree72dba06e5c6b01d809a9f6fd50cbdd86b572d9cc
parentdde8309cdea5c739983693650105b2f993c5a71c
gallium/util: don't pass a pipe_resource to util_resource_is_array_texture()

No need to pass a pipe_resource when we can just pass the target.
This makes the function potentially more usable.  Rename it too.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_resource.h
src/gallium/drivers/radeon/r600_texture.c