freedreno: fix staging resource size for arrays
authorRob Clark <robdclark@gmail.com>
Wed, 2 Jan 2019 18:24:31 +0000 (13:24 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 3 Jan 2019 13:11:40 +0000 (08:11 -0500)
commite869481ef30d0c3576d402816fa341ea1e21456a
treebf89c8f47233c491975d02ba00b5735e172cae18
parent67a7f6f24433beb5795bea5325700f50d845ed64
freedreno: fix staging resource size for arrays

A 2d-array texture (for example), should get the # of array elements
from box->depth, rather than depth0 which is minified.

Fixes dEQP-GLES3.functional.shaders.texture_functions.texture.sampler2darray_bias_float_fragment
with tiled textures.

Reported-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_resource.c