radeonsi: fix array textures layer coordinate
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 17 Sep 2017 14:00:38 +0000 (16:00 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 20 Sep 2017 13:42:58 +0000 (15:42 +0200)
commit87f7c7bd6566dbd95214df9b058bca5e6573374e
tree8917eb234dddd41dab5b9efa6a4f6eaec6cc3d9b
parent15cae12804ef288c7fb4cb9a38f7e32e6d8c4dc1
radeonsi: fix array textures layer coordinate

Like for cube map (array) gather, we need to round to nearest on <= VI.

Fixes tests in dEQP-GLES3.functional.shaders.texture_functions.texture.*

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c