summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/lima_program.c
diff options
context:
space:
mode:
authorErico Nunes <[email protected]>2019-07-27 18:10:46 +0200
committerErico Nunes <[email protected]>2019-07-31 21:35:58 +0200
commit99c956fb470637304c092855520697e08b598356 (patch)
treee6a8418f3b3738f9c130b6007829868fe2e28cc1 /src/gallium/drivers/lima/lima_program.c
parent4a407df68297b434c4489e6d28c2dd18e9eec326 (diff)
lima/ppir: lower fdot in nir_opt_algebraic
Now that we have fsum in nir, we can move fdot lowering there. This helps reduce ppir complexity and enables the lowered ops to be part of other nir optimizations in the optimization loop. Signed-off-by: Erico Nunes <[email protected]> Reviewed-by: Qiang Yu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_program.c')
-rw-r--r--src/gallium/drivers/lima/lima_program.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c
index 0a9e522ba36..610782306e9 100644
--- a/src/gallium/drivers/lima/lima_program.c
+++ b/src/gallium/drivers/lima/lima_program.c
@@ -66,6 +66,7 @@ static const nir_shader_compiler_options fs_nir_options = {
.lower_flrp64 = true,
.lower_fsign = true,
.lower_rotate = true,
+ .lower_fdot = true,
};
static const struct nir_lower_tex_options tex_options = {