i965: Integrate precise trig into configuration infrastructure
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 11 May 2016 20:32:09 +0000 (13:32 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Jun 2016 22:42:21 +0000 (15:42 -0700)
commitd9546b0c5d1a5136a92276cdd7c14883f0c62737
tree70aea5ac5a1d7d7ad43fe91b7d2ac604c8a8ae24
parentf39439d1666481bd1316e865eb3507a2a397f346
i965: Integrate precise trig into configuration infrastructure

With this change, to enable precise SIN and COS instructions
on Intel hardware, one can put

<option name="precise_trig" value="true"/>

in the proper drirc file.

V2: Make option name more generic

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Stephane Marchesin <stephane.marchesin@gmail.com>
src/mesa/drivers/dri/common/xmlpool/t_options.h
src/mesa/drivers/dri/i965/brw_compiler.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_screen.c