[Mesa-dev] [PATCH 47/47] glsl: Add a lowering pass for 64-bit float div()
Elie Tournier
tournier.elie at gmail.com
Wed Aug 23 11:08:17 UTC 2017
This is probably not the correct way to lower the division.
The lowering should be enable only for r600g and not in the parser.
The division don't pass the piglit test due to the rcp implementation.
Signed-off-by: Elie Tournier <elie.tournier at collabora.com>
---
src/compiler/glsl/glsl_parser_extras.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp
index cfb214e440..ac50737986 100644
--- a/src/compiler/glsl/glsl_parser_extras.cpp
+++ b/src/compiler/glsl/glsl_parser_extras.cpp
@@ -2169,6 +2169,7 @@ do_common_optimization(exec_list *ir, bool linked,
} while (false)
OPT(lower_instructions, ir, SUB_TO_ADD_NEG);
+ OPT(lower_instructions, ir, DDIV_TO_MUL_RCP);
if (linked) {
OPT(do_function_inlining, ir);
--
2.14.1
More information about the mesa-dev
mailing list