diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-21 09:15:56 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-21 10:38:31 -0700 |
commit | 6189274f5751ed3595e42f044f4f8ce386f5a272 (patch) | |
tree | 64c7c203e3bd74d5fcfd7d740a6df3ca59eb1ecc /src/panfrost/midgard/midgard_opt_perspective.c | |
parent | cda0ec67e6a615c10ac75e7345c8982637526d8c (diff) |
pan/midgard: Represent unused nodes by ~0
This allows nodes to be unsigned and prevents a class of weird
signedness bugs identified by Coverity.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_opt_perspective.c')
-rw-r--r-- | src/panfrost/midgard/midgard_opt_perspective.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_opt_perspective.c b/src/panfrost/midgard/midgard_opt_perspective.c index f5e483e68d0..22b7736a379 100644 --- a/src/panfrost/midgard/midgard_opt_perspective.c +++ b/src/panfrost/midgard/midgard_opt_perspective.c @@ -116,7 +116,7 @@ midgard_opt_combine_projection(compiler_context *ctx, midgard_block *block) .mask = ins->mask, .ssa_args = { .dest = to, - .src = { frcp_from, -1, -1 }, + .src = { frcp_from, ~0, ~0 }, }, .load_store = { .op = frcp_component == COMPONENT_W ? |