nir: replace lower_sincos with algebraic opt

This version has less ops for the same precision.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Jonathan Marek
2019-05-08 10:26:49 -04:00
parent 5a4e71c082
commit bc3b6168ba
6 changed files with 13 additions and 144 deletions

View File

@@ -53,6 +53,7 @@ static const nir_shader_compiler_options vs_nir_options = {
.lower_fsat = true,
.lower_bitshift = true,
.lower_rotate = true,
.lower_sincos = true,
};
static const nir_shader_compiler_options fs_nir_options = {
@@ -98,7 +99,6 @@ lima_program_optimize_vs_nir(struct nir_shader *s)
NIR_PASS_V(s, lima_nir_lower_uniform_to_scalar);
NIR_PASS_V(s, nir_lower_io_to_scalar,
nir_var_shader_in|nir_var_shader_out);
NIR_PASS_V(s, nir_lower_sincos);
do {
progress = false;