mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
panfrost: Ignore discards in dead branch analysis
Fixes regressions in dEQP-GLES2.functional.shaders.discard.dynamic_loop_* Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
e9316fdfd4
commit
e9703fb416
1 changed files with 5 additions and 0 deletions
|
|
@ -1731,6 +1731,11 @@ midgard_opt_cull_dead_branch(compiler_context *ctx, midgard_block *block)
|
|||
* just generally special */
|
||||
if (ins->prepacked_branch) continue;
|
||||
|
||||
/* Discards are similarly special and may not correspond to the
|
||||
* end of a block */
|
||||
|
||||
if (ins->branch.target_type == TARGET_DISCARD) continue;
|
||||
|
||||
if (branched) {
|
||||
/* We already branched, so this is dead */
|
||||
mir_remove_instruction(ins);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue