amd/common: fix build_cube_select
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 22 Sep 2017 17:05:52 +0000 (19:05 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 29 Sep 2017 09:43:04 +0000 (11:43 +0200)
commit5be5c1e0fa8d57606d85fa6afbfa2db5a9ca4c98
treefe7c810b9d5dc2be32c43aded15b4160a9fed717
parent8ea7d3a5c8ea0c530d7f66a9bdd0fb12c59418bc
amd/common: fix build_cube_select

Fix the custom cube coord selection sequence to be identical to
the hardware v_cubesc/tc and OpenGL spec. Affects texture sampling
with user-provided derivatives.

Fixes dEQP-GLES3.functional.shaders.texture_functions.texturegrad.*

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/amd/common/ac_llvm_build.c