glsl: lower sqrt(abs()) and inversesqrt(abs()) if requested

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Samuel Pitoiset
2017-03-17 14:58:22 +01:00
parent 448f4c0c89
commit 737c734cd4
2 changed files with 15 additions and 0 deletions

View File

@@ -53,6 +53,7 @@
#define IMUL_HIGH_TO_MUL 0x80000
#define DDIV_TO_MUL_RCP 0x100000
#define DIV_TO_MUL_RCP (FDIV_TO_MUL_RCP | DDIV_TO_MUL_RCP)
#define SQRT_TO_ABS_SQRT 0x200000
/* Opertaions for lower_64bit_integer_instructions() */
#define MUL64 (1U << 0)