diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-30 17:07:25 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-31 09:39:16 -0700 |
commit | 7f75b2b5af0944d060cff8ee66eb138ba937d3bd (patch) | |
tree | bcff9f11e174bd7a41e38dcc9ef6b93a231ec52d /src | |
parent | 27524d1462c388162830bad38a8e2a2f4cf46ea8 (diff) |
pan/midgard: Simplify discard logic
The "branch offset" is, in fact, ignored.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 1efc5538b42..a03740acf7d 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -2409,23 +2409,7 @@ midgard_compile_shader_nir(struct midgard_screen *screen, nir_shader *nir, midga int quadword_offset = 0; if (is_discard) { - /* Jump to the end of the shader. We - * need to include not only the - * following blocks, but also the - * contents of our current block (since - * discard can come in the middle of - * the block) */ - - midgard_block *blk = mir_get_block(ctx, br_block_idx + 1); - - for (midgard_bundle *bun = bundle + 1; bun < (midgard_bundle *)((char*) block->bundles.data + block->bundles.size); ++bun) { - quadword_offset += quadword_size(bun->tag); - } - - mir_foreach_block_from(ctx, blk, b) { - quadword_offset += b->quadword_count; - } - + /* Ignored */ } else if (target_number > br_block_idx) { /* Jump forward */ |