summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErico Nunes <[email protected]>2019-07-18 21:13:19 +0200
committerErico Nunes <[email protected]>2019-07-31 23:06:26 +0200
commit82bf5a8aac3425701cbf7e15063967d53f8b452f (patch)
treee032efc67fa458261081f1d23d31e8eb49a7b823 /src
parentb3676a65488e4d47596000c260f7872cfed78688 (diff)
lima: enable lower_bitops in ppir
The mali pp doesn't support integers and some nir_algebraic optimizations may result in ops that are not easily lowerable to floats, so disable optimizations resulting in bitops. Signed-off-by: Erico Nunes <[email protected]> Reviewed-by: Jonathan Marek <[email protected]>
Diffstat (limited to 'src')
-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 efd870251fb..51cd180cf47 100644
--- a/src/gallium/drivers/lima/lima_program.c
+++ b/src/gallium/drivers/lima/lima_program.c
@@ -67,6 +67,7 @@ static const nir_shader_compiler_options fs_nir_options = {
.lower_fsign = true,
.lower_rotate = true,
.lower_fdot = true,
+ .lower_bitops = true,
};
static const struct nir_lower_tex_options tex_options = {