etnaviv: fix 3d texture upload
authorJonathan Marek <jonathan@marek.ca>
Wed, 24 Jul 2019 14:30:08 +0000 (10:30 -0400)
committerJonathan Marek <jonathan@marek.ca>
Tue, 6 Aug 2019 14:37:36 +0000 (10:37 -0400)
commit3508f2fb185042aae31555321c9eff0ec47a9369
tree7f26d141d0bec10bd128d91c30a0b57f23d19249
parented7a27719a9fceb7271dfd97b2217c787356f21a
etnaviv: fix 3d texture upload

Fix uploading of 3D textures and 2D array textures:

* Remove asserts in BLT and RS checking z
* Use box->z/box->depth in etna_copy_resource_box and CPU tile/untile
* Track mip level depth and use it in etna_copy_resource

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_blt.c
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
src/gallium/drivers/etnaviv/etnaviv_resource.c
src/gallium/drivers/etnaviv/etnaviv_resource.h
src/gallium/drivers/etnaviv/etnaviv_rs.c
src/gallium/drivers/etnaviv/etnaviv_transfer.c