summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErico Nunes <[email protected]>2019-04-16 22:49:51 +0200
committerEric Anholt <[email protected]>2019-04-19 15:42:23 +0000
commit2288b59ddc4925aaa09b416bdd6d95f4f24199db (patch)
tree318a6beee0a37d5a512475f98a38e7f096ce0a47
parent4577eb7b7cddb0a5dd2ee77682eab01a4d55676b (diff)
lima: enable nir fsign lowering in ppir
The mali utgard pp doesn't support a sign instruction. Use the nir lowering function for fsign to implement fsign in ppir. Signed-off-by: Erico Nunes <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
-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 b7f3658d521..72f3a6f10ad 100644
--- a/src/gallium/drivers/lima/lima_program.c
+++ b/src/gallium/drivers/lima/lima_program.c
@@ -57,6 +57,7 @@ static const nir_shader_compiler_options fs_nir_options = {
.lower_sub = true,
.lower_flrp32 = true,
.lower_flrp64 = true,
+ .lower_fsign = true,
};
const void *