Mesa (master): lima: enable nir fsign lowering in ppir

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 19 15:43:11 UTC 2019


Module: Mesa
Branch: master
Commit: 2288b59ddc4925aaa09b416bdd6d95f4f24199db
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2288b59ddc4925aaa09b416bdd6d95f4f24199db

Author: Erico Nunes <nunes.erico at gmail.com>
Date:   Tue Apr 16 22:49:51 2019 +0200

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 <nunes.erico at gmail.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/gallium/drivers/lima/lima_program.c | 1 +
 1 file changed, 1 insertion(+)

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 *




More information about the mesa-commit mailing list