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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user