diff options
author | Rhys Perry <pendingchaos02@gmail.com> | 2019-09-26 10:33:43 +0100 |
---|---|---|
committer | Rhys Perry <pendingchaos02@gmail.com> | 2019-09-27 10:57:03 +0100 |
commit | b711e62e615095524a1af8dc4a6665bf1514a56c (patch) | |
tree | be1d6ce8e05327cbe69b7c80faa8a16136cb65ff /src/amd/compiler/aco_instruction_selection.cpp | |
parent | 237c7636ca4c429d4dbfce95b6e3281a8309eac7 (diff) |
aco: set loop_info::has_discard for demotes
We need the loop header phis for the outer exec masks. Needed for
dEQP-VK.glsl.demote.dynamic_loop_texture
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Diffstat (limited to 'src/amd/compiler/aco_instruction_selection.cpp')
-rw-r--r-- | src/amd/compiler/aco_instruction_selection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 7405b1142f9..7b5dc7f7426 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -5831,7 +5831,7 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr) } case nir_intrinsic_demote: bld.pseudo(aco_opcode::p_demote_to_helper); - ctx->block->kind |= block_kind_needs_lowering; + ctx->block->kind |= block_kind_uses_demote; ctx->program->needs_exact = true; break; case nir_intrinsic_demote_if: { @@ -5839,7 +5839,7 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr) as_divergent_bool(ctx, get_ssa_temp(ctx, instr->src[0].ssa), false), Operand(exec, s2)); bld.pseudo(aco_opcode::p_demote_to_helper, cond); - ctx->block->kind |= block_kind_needs_lowering; + ctx->block->kind |= block_kind_uses_demote; ctx->program->needs_exact = true; break; } |