meta->varying_count = program.varying_count;
meta->midgard1.work_count = program.work_register_count;
- state->can_discard = program.can_discard;
+ state->can_discard = s->info.fs.uses_discard;
state->writes_point_size = program.writes_point_size;
state->reads_point_coord = false;
state->helper_invocations = s->info.fs.needs_helper_invocations;
/* Mapping of texture register -> SSA index for unaliasing */
int texture_index[2];
- /* If any path hits a discard instruction */
- bool can_discard;
-
/* The number of uniforms allowable for the fast path */
int uniform_cutoff;
struct midgard_instruction discard = v_branch(conditional, false);
discard.branch.target_type = TARGET_DISCARD;
emit_mir_instruction(ctx, discard);
-
- ctx->can_discard = true;
break;
}
/* Deal with off-by-one related to the fencepost problem */
program->work_register_count = ctx->work_registers + 1;
-
- program->can_discard = ctx->can_discard;
program->uniform_cutoff = ctx->uniform_cutoff;
program->blend_patch_offset = ctx->blend_constant_offset;