glsl: Parameterize asin_expr() on the fit coefficients.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Mar 2016 07:39:18 +0000 (23:39 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 4 Mar 2016 05:31:22 +0000 (21:31 -0800)
commit2795fbcae302cd8821b23821ebf8a2b256ff10d5
tree478d7ef23daae5d64ee9e15d357d78d8555cfb0c
parentaa37cbdff7bb1d2170f1603b02a8b8517255894f
glsl: Parameterize asin_expr() on the fit coefficients.

This will allow us to share the implementation while using different
polynomials for asin() and acos().

Francisco Jerez did this in the SPIR-V front-end; I'm merely porting
his idea to the GLSL world.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/compiler/glsl/builtin_functions.cpp