amd/common: round cube array slice in ac_prepare_cube_coords
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 13 Sep 2017 08:47:02 +0000 (10:47 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 18 Sep 2017 09:25:18 +0000 (11:25 +0200)
commite0af3bed2cb52b5d8cf1da08b42cf28bae131c76
tree5cd637e85621cc56e764eed5bb8566144c15259c
parent6fb0c1013b3578c5bd264efaa99a6d68418ccfb1
amd/common: round cube array slice in ac_prepare_cube_coords

The NIR-to-LLVM pass already does this; now the same fix covers
radeonsi as well.

Fixes various tests of
dEQP-GLES31.functional.texture.filtering.cube_array.combinations.*

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_llvm_build.c
src/amd/common/ac_llvm_build.h
src/amd/common/ac_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c