nir,ac/nir: fix cube_face_coord
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 12 Apr 2019 10:07:53 +0000 (11:07 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 15 Apr 2019 16:22:47 +0000 (17:22 +0100)
commit8671cfe2a203f2d5492eb22eeb2694e0e37239d9
treedcec9bd7c67057bfdbc20cd35d39f3913a48b6d9
parent90108deb277d33d192339c2481a09b1a8a40929d
nir,ac/nir: fix cube_face_coord

Seems it was missing the "/ ma + 0.5" and the order was swapped.

Fixes: a1a2a8dfda7b9cac7e ('nir: add AMD_gcn_shader extended instructions')
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_nir_to_llvm.c
src/compiler/nir/nir_opcodes.py