softpipe: Fix cube arrays layer selection
authorGert Wollny <gert.wollny@collabora.com>
Thu, 18 Jul 2019 06:21:39 +0000 (08:21 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Mon, 29 Jul 2019 13:47:34 +0000 (15:47 +0200)
commit45ac0dfad4f614dda4c9e42ac5c3479096a16f9b
treeeac60d888e2abcf3bb19b04fb4a01bc9ab58ccb7
parent6659d11ff0c639c49823fdaa0cf23c7fef7f2582
softpipe: Fix cube arrays layer selection

To select the correct layer the z-coordinate must be rounded before it
is multiplied by six.

Fixes a number of tests out of
   dEQP-GLES31.functional.texture.filtering.cube_array.formats.*

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/softpipe/sp_tex_sample.c