st/glsl_to_tgsi: use DDIV instead of DRCP + DMUL
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 16 Jan 2017 15:43:54 +0000 (16:43 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 23 Jan 2017 15:17:26 +0000 (16:17 +0100)
commitcfabbbcfd778cc404813c9f05a9ef79efe531980
tree4007f3e9c72bd3c76ad13aaa3e7b9aa439ea5973
parentb71c415c3d288da4b5f533ece42f50f4f20a8c33
st/glsl_to_tgsi: use DDIV instead of DRCP + DMUL

Fixes GL45-CTS.gpu_shader_fp64.built_in_functions.

v2: use DDIV unconditionally (Roland)

Reviewed-by: Roland Scheidegger <sroland@vmware.com> (v1)
Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
Tested-by: Glenn Kennard <glenn.kennard@gmail.com>
Tested-by: James Harvey <lothmordor@gmail.com>
Cc: 17.0 <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp