nine: fix incorrect calculation of layer count for 3D textures
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Fri, 26 Jun 2020 10:40:43 +0000 (13:40 +0300)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Jul 2020 13:48:10 +0000 (13:48 +0000)
commit845a50ee2525c6cc4e6160eda1826c0670e0daaf
tree0fbc2ceb515e4865a473df8e9b960b5da0294eab
parentd136fa17acaa079d8499548ddaf12211a4ca62e7
nine: fix incorrect calculation of layer count for 3D textures

Volume textures don't have a concept of "layers"

v1: set last_layer to zero for 3D textures (Axel Davy)

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Axel Davy <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5808>
src/gallium/frontends/nine/basetexture9.c