radeonsi: use postponed KILL only when derivatives are used
[mesa.git] / src / gallium / drivers / radeonsi / si_shader.c
index 8abacac8c8d3e1f6edaeb5a0b3144a38a914f823..c34304873075e00a7433144c70b79f15357b4c3a 100644 (file)
@@ -5846,8 +5846,7 @@ static bool si_compile_tgsi_main(struct si_shader_context *ctx,
                }
        }
 
-       if (ctx->type == PIPE_SHADER_FRAGMENT && sel->info.uses_kill &&
-           ctx->screen->b.debug_flags & DBG(FS_CORRECT_DERIVS_AFTER_KILL)) {
+       if (sel->force_correct_derivs_after_kill) {
                ctx->postponed_kill = lp_build_alloca_undef(&ctx->gallivm, ctx->i1, "");
                /* true = don't kill. */
                LLVMBuildStore(ctx->ac.builder, LLVMConstInt(ctx->i1, 1, 0),