.writemask = 0xF
};
+ assert(blend.blend_location < 8);
+ assert(ctx->blend_types);
+ ctx->blend_types[blend.blend_location] = blend.src_types[0];
+
bi_emit(ctx, blend);
bi_schedule_barrier(ctx);
}
panfrost_nir_assign_sysvals(&ctx->sysvals, nir);
program->sysval_count = ctx->sysvals.sysval_count;
memcpy(program->sysvals, ctx->sysvals.sysvals, sizeof(ctx->sysvals.sysvals[0]) * ctx->sysvals.sysval_count);
+ ctx->blend_types = program->blend_types;
nir_foreach_function(func, nir) {
if (!func->impl)
int work_register_count;
int uniform_cutoff;
+ /* For Bifrost - output type for each RT */
+ nir_alu_type blend_types[8];
+
/* Prepended before uniforms, mapping to SYSVAL_ names for the
* sysval */