aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-05-08 10:26:49 -0400
committerJonathan Marek <[email protected]>2019-07-24 17:36:21 -0400
commitbc3b6168bac39a16326c730a9d0ae97b45c7df23 (patch)
tree58816c0efaa72880f75d457c725ff8b417ecf188 /src/gallium
parent5a4e71c082886810504ecfa329fb57050acc623f (diff)
nir: replace lower_sincos with algebraic opt
This version has less ops for the same precision. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Vasily Khoruzhick <[email protected]> Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/lima/lima_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c
index cd056fb067d..61889d02ddf 100644
--- a/src/gallium/drivers/lima/lima_program.c
+++ b/src/gallium/drivers/lima/lima_program.c
@@ -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;