Commit 76a626e1 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Fix alpha test, maybe

parent 3cd449c1
......@@ -2582,7 +2582,7 @@ inline_alu_constants(compiler_context *ctx)
alu->ssa_args.src1 = 4096 + alu->ssa_args.src1;
/* Inject us -before- the last instruction which set r31 */
mir_insert_instruction_before(mir_prev_op(alu), ins);
//mir_insert_instruction_before(mir_prev_op(alu), ins);
}
}
}
......
......@@ -45,7 +45,7 @@ panfrost_shader_compile(struct panfrost_context *ctx, struct mali_shader_meta *m
struct pipe_shader_state *cso = state->base;
if (cso->type == PIPE_SHADER_IR_NIR) {
s = cso->ir.nir;
s = nir_shader_clone(NULL, cso->ir.nir);
} else {
assert (cso->type == PIPE_SHADER_IR_TGSI);
//tgsi_dump(cso->tokens, 0);
......
......@@ -2046,10 +2046,12 @@ panfrost_bind_fs_state(
struct panfrost_shader_state *shader_state = &variants->variants[variant];
assert(panfrost_variant_matches(ctx, shader_state));
printf("Okay.. %d\n", variants->active_variant);
/* Now we have a variant selected, so compile and go */
if (!shader_state->compiled) {
printf("Compiling more?!\n");
panfrost_shader_compile(ctx, &shader_state->tripipe, NULL, JOB_TYPE_TILER, shader_state);
shader_state->compiled = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment