diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-26 11:52:30 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-30 10:35:09 -0700 |
commit | c45487b7705ab5176bab4f46537e6fcb61c9442e (patch) | |
tree | 9452863a704b8be9d7bef11e25b35814b51122ad /src/panfrost/midgard/midgard_compile.c | |
parent | 2d2abb08d0eaeb7bf25655bdff4ea8dccee9a504 (diff) |
pan/midgard: Extract simple source mod check
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_compile.c')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index ae526e89eff..f3842820f3d 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -1877,8 +1877,7 @@ embedded_to_inline_constant(compiler_context *ctx) /* We don't know how to handle these with a constant */ - bool is_int = midgard_is_integer_op(ins->alu.op); - if (mir_nontrivial_raw_mod(*src, is_int) || src->half || src->rep_low || src->rep_high) { + if (mir_nontrivial_source2_mod_simple(ins) || src->rep_low || src->rep_high) { DBG("Bailing inline constant...\n"); continue; } |