OSDN Git Service

radeonsi: fix array textures layer coordinate
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 17 Sep 2017 14:00:38 +0000 (16:00 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 20 Sep 2017 20:54:12 +0000 (22:54 +0200)
commit0ec2f628d13fd86689c8575f6d4b5b5a0849cc7f
tree49a52e9b62cf6227d130fcc86dc52bf0876c30b6
parent96f815aeabbd07a57cd8abbe7a54558aa0144de3
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>
(cherry picked from commit 87f7c7bd6566dbd95214df9b058bca5e6573374e)
[Juan A. Suarez: apply patch over si_shader.c]
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Conflicts:
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
src/gallium/drivers/radeonsi/si_shader.c