OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Jan 2017 02:20:31 +0000 (02:20 +0000)
commite4cf4690d1b20a8eab7296c79051ad05a9a5cc25
tree2b61f03065696f3d4e0c9cc7c74388c8b99506d9
parent7f6c6b910156629f988277ef0c177a2e97ca17e0
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>
(cherry picked from commit cfabbbcfd778cc404813c9f05a9ef79efe531980)
src/mesa/state_tracker/st_glsl_to_tgsi.cpp