Lines Matching refs:blend
257 struct panfrost_blend_state *blend,
275 if (state->cbufs[i] && !blend->info[i].no_colour)
284 /* Get pointers to the blend shaders bound to each active render target. Used
285 * to emit the blend descriptors, as well as the fragment renderer state
330 const struct panfrost_blend_state *so = ctx->blend;
350 const struct panfrost_blend_state *so = ctx->blend;
379 cfg.alpha_to_one = ctx->blend->base.alpha_to_one;
404 /* Words 2 and 3: Internal blend */
406 /* The blend shader's address needs to be at
419 unsigned ret_offset = fs->info.bifrost.blend[i].return_offset;
439 fs->info.bifrost.blend[i].format;
463 bool blend_reads_dest = (ctx->blend->load_dest_mask & rt_mask);
464 bool alpha_to_coverage = ctx->blend->base.alpha_to_coverage;
521 struct panfrost_blend_state *so = ctx->blend;
522 bool alpha_to_coverage = ctx->blend->base.alpha_to_coverage;
541 ctx->blend->base.alpha_to_coverage,
609 /* MSAA blend shaders need to pass their sample ID to
611 * need per-sample shading for the blend shader, accomplished
665 rsd.opaque[14] = ctx->blend->equation[0];
670 if (panfrost_fs_required(fs, ctx->blend, &ctx->pipe_framebuffer, zsa)) {
839 * Emit Valhall blend descriptor at draw-time. The descriptor itself is shared
2918 * depth/stencil, blend, polygon offset, and multisampling state. These pieces
3010 batch->blend = panfrost_emit_blend_valhall(batch);
3243 * blend shader is used with multisampling, as this is handled
3244 * by a single ST_TILE in the blend shader with the current
3266 ctx->blend->base.alpha_to_coverage,
3278 * doesn't actually exist, the blend descriptor will be
3297 ctx->blend->base.alpha_to_coverage;
3302 * blend descriptors.
3304 cfg.blend = batch->blend;
3306 cfg.alpha_to_coverage = ctx->blend->base.alpha_to_coverage;
3321 /* No shader and no blend => no shader or blend
3324 * without blend.
3376 bool fs_required = panfrost_fs_required(fs, ctx->blend,
4423 /* A given Gallium blend state can be encoded to the hardware in numerous,
4427 * - Fixed-function blending (for suitable framebuffer formats, suitable blend
4428 * state, and suitable blend constant)
4432 * A given Gallium blend configuration will compile to exactly one
4433 * fixed-function blend state, if it compiles to any, although the constant
4436 * However, that same blend configuration will compile to many different blend
4438 * blend shaders override not just fixed-function blending but also
4439 * fixed-function format conversion, so blend shaders are keyed to a particular
4442 * blend shaders.
4448 /* Create a blend CSO. Essentially, try to compile a fixed-function
4449 * expression and initialize blend shaders */
4453 const struct pipe_blend_state *blend)
4456 so->base = *blend;
4458 so->pan.logicop_enable = blend->logicop_enable;
4459 so->pan.logicop_func = blend->logicop_func;
4460 so->pan.rt_count = blend->max_rt + 1;
4463 unsigned g = blend->independent_blend_enable ? c : 0;
4464 const struct pipe_rt_blend_state pipe = blend->rt[g];
4492 .load_dest = blend->logicop_enable ||
4496 .fixed_function = !blend->logicop_enable &&