Home
last modified time | relevance | path

Searched refs:blend (Results 26 - 50 of 319) sorted by relevance

12345678910>>...13

/third_party/skia/src/core/
H A DSkBlenderBase.h22 * Encapsulates a blend function, including non-public APIs.
34 /** Creates the blend program in SkVM. */
44 * Returns a GrFragmentProcessor that implements this blend for the GPU backend.
66 inline SkBlenderBase* as_BB(SkBlender* blend) { in as_BB() argument
67 return static_cast<SkBlenderBase*>(blend); in as_BB()
70 inline const SkBlenderBase* as_BB(const SkBlender* blend) { in as_BB() argument
71 return static_cast<const SkBlenderBase*>(blend); in as_BB()
74 inline const SkBlenderBase* as_BB(const sk_sp<SkBlender>& blend) { in as_BB() argument
75 return static_cast<SkBlenderBase*>(blend.get()); in as_BB()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_blend.c54 DBG("invalid blend func: %x", func); in blend_func()
60 __fd6_setup_blend_variant(struct fd6_blend_stateobj *blend, in __fd6_setup_blend_variant() argument
63 const struct pipe_blend_state *cso = &blend->base; in __fd6_setup_blend_variant()
74 so = rzalloc_size(blend, sizeof(*so)); in __fd6_setup_blend_variant()
79 blend->ctx->pipe, ((A6XX_MAX_RENDER_TARGETS * 4) + 6) * 4); in __fd6_setup_blend_variant()
102 .blend = rt->blend_enable, in __fd6_setup_blend_variant()
131 blend->use_dual_src_blend, )); in __fd6_setup_blend_variant()
139 .dual_color_in_enable = blend->use_dual_src_blend, )); in __fd6_setup_blend_variant()
143 util_dynarray_append(&blend->variants, struct fd6_blend_variant *, so); in __fd6_setup_blend_variant()
175 * the same as having blend enable in fd6_blend_state_create()
[all...]
/third_party/mesa3d/src/gallium/frontends/vdpau/
H A Doutput.c598 struct pipe_blend_state blend; in BlenderToPipe() local
600 memset(&blend, 0, sizeof blend); in BlenderToPipe()
601 blend.independent_blend_enable = 0; in BlenderToPipe()
604 blend.rt[0].blend_enable = 1; in BlenderToPipe()
605 blend.rt[0].rgb_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_color); in BlenderToPipe()
606 blend.rt[0].rgb_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_color); in BlenderToPipe()
607 blend.rt[0].alpha_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_alpha); in BlenderToPipe()
608 blend.rt[0].alpha_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_alpha); in BlenderToPipe()
609 blend in BlenderToPipe()
668 void *blend; vlVdpOutputSurfaceRenderOutputSurface() local
738 void *blend; vlVdpOutputSurfaceRenderBitmapSurface() local
[all...]
/third_party/mesa3d/src/gallium/drivers/i915/
H A Di915_state.c150 const struct pipe_blend_state *blend) in i915_create_blend_state()
155 unsigned eqRGB = blend->rt[0].rgb_func; in i915_create_blend_state()
156 unsigned srcRGB = blend->rt[0].rgb_src_factor; in i915_create_blend_state()
157 unsigned dstRGB = blend->rt[0].rgb_dst_factor; in i915_create_blend_state()
159 unsigned eqA = blend->rt[0].alpha_func; in i915_create_blend_state()
160 unsigned srcA = blend->rt[0].alpha_src_factor; in i915_create_blend_state()
161 unsigned dstA = blend->rt[0].alpha_dst_factor; in i915_create_blend_state()
183 LOGIC_OP_FUNC(i915_translate_logic_op(blend->logicop_func))); in i915_create_blend_state()
185 if (blend->logicop_enable) in i915_create_blend_state()
188 if (blend in i915_create_blend_state()
149 i915_create_blend_state(struct pipe_context *pipe, const struct pipe_blend_state *blend) i915_create_blend_state() argument
230 i915_bind_blend_state(struct pipe_context *pipe, void *blend) i915_bind_blend_state() argument
243 i915_delete_blend_state(struct pipe_context *pipe, void *blend) i915_delete_blend_state() argument
[all...]
H A Di915_state_immediate.c130 LIS5 |= i915->blend->LIS5; in upload_S5()
161 if (i915->blend) { in upload_S6()
164 LIS6 |= i915->blend->LIS6_alpha_in_g; in upload_S6()
166 LIS6 |= i915->blend->LIS6_alpha_is_x; in upload_S6()
168 LIS6 |= i915->blend->LIS6; in upload_S6()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DRenderPipeline.cpp343 if (descriptor->blend) { in ValidateColorTargetState()
344 DAWN_TRY_CONTEXT(ValidateBlendState(device, descriptor->blend), in ValidateColorTargetState()
345 "validating blend state."); in ValidateColorTargetState()
356 descriptor->blend && !(format->GetAspectInfo(Aspect::Color).supportedSampleTypes & in ValidateColorTargetState()
375 if (descriptor->blend) { in ValidateColorTargetState()
380 BlendFactorContainsSrcAlpha(descriptor->blend->color.srcFactor) || in ValidateColorTargetState()
381 BlendFactorContainsSrcAlpha(descriptor->blend->color.dstFactor), in ValidateColorTargetState()
384 descriptor->blend->color.srcFactor, descriptor->blend->color.dstFactor); in ValidateColorTargetState()
674 if (target->blend ! in RenderPipelineBase()
[all...]
/third_party/ffmpeg/libavfilter/x86/
H A Dvf_framerate_init.c33 s->blend = ff_blend_frames_avx2; in ff_framerate_init_x86()
35 s->blend = ff_blend_frames_ssse3; in ff_framerate_init_x86()
38 s->blend = ff_blend_frames16_avx2; in ff_framerate_init_x86()
40 s->blend = ff_blend_frames16_sse4; in ff_framerate_init_x86()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_blend.c177 switch (softpipe->blend->logicop_func) { in logicop_quad()
260 * \param const_blend_color the constant blend color
280 switch (softpipe->blend->rt[blend_index].rgb_src_factor) { in blend_quad()
451 switch (softpipe->blend->rt[blend_index].alpha_src_factor) { in blend_quad()
543 switch (softpipe->blend->rt[blend_index].rgb_dst_factor) { in blend_quad()
703 switch (softpipe->blend->rt[blend_index].alpha_dst_factor) { in blend_quad()
780 switch (softpipe->blend->rt[blend_index].rgb_func) { in blend_quad()
807 assert(0 && "invalid rgb blend func"); in blend_quad()
813 switch (softpipe->blend->rt[blend_index].alpha_func) { in blend_quad()
830 assert(0 && "invalid alpha blend fun in blend_quad()
926 const struct pipe_blend_state *blend = softpipe->blend; blend_fallback() local
1224 const struct pipe_blend_state *blend = softpipe->blend; choose_blend_quad() local
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_rast_debug.c112 return variant->key.blend.rt[0].blend_enable; in is_blend()
194 boolean blend) in plot()
217 boolean blend = tile->state->variant->key.blend.rt[0].blend_enable; in debug_rectangle() local
237 plot(tile, i, j, val, blend); in debug_rectangle()
273 boolean blend; in debug_shade_tile() local
279 blend = tile->state->variant->key.blend.rt[0].blend_enable; in debug_shade_tile()
286 plot(tile, i, j, val, blend); in debug_shade_tile()
321 boolean blend in debug_triangle() local
191 plot(struct tile *tile, int x, int y, char val, boolean blend) plot() argument
383 boolean blend = is_blend(tile->state, block, k); do_debug_bin() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_mc.c379 struct pipe_blend_state blend; in init_pipe_state() local
400 memset(&blend, 0, sizeof blend); in init_pipe_state()
401 blend.independent_blend_enable = 0; in init_pipe_state()
402 blend.rt[0].blend_enable = 1; in init_pipe_state()
403 blend.rt[0].rgb_func = PIPE_BLEND_ADD; in init_pipe_state()
404 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_SRC_ALPHA; in init_pipe_state()
405 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO; in init_pipe_state()
406 blend.rt[0].alpha_func = PIPE_BLEND_ADD; in init_pipe_state()
407 blend in init_pipe_state()
[all...]
H A Dvl_bicubic_filter.c251 struct pipe_blend_state blend; in vl_bicubic_filter_init() local
273 memset(&blend, 0, sizeof blend); in vl_bicubic_filter_init()
274 blend.rt[0].rgb_func = PIPE_BLEND_ADD; in vl_bicubic_filter_init()
275 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE; in vl_bicubic_filter_init()
276 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ONE; in vl_bicubic_filter_init()
277 blend.rt[0].alpha_func = PIPE_BLEND_ADD; in vl_bicubic_filter_init()
278 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE; in vl_bicubic_filter_init()
279 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ONE; in vl_bicubic_filter_init()
280 blend in vl_bicubic_filter_init()
[all...]
H A Dvl_compositor.c132 struct pipe_blend_state blend; in init_pipe_state() local
159 memset(&blend, 0, sizeof blend); in init_pipe_state()
160 blend.independent_blend_enable = 0; in init_pipe_state()
161 blend.rt[0].blend_enable = 0; in init_pipe_state()
162 blend.logicop_enable = 0; in init_pipe_state()
163 blend.logicop_func = PIPE_LOGICOP_CLEAR; in init_pipe_state()
164 blend.rt[0].colormask = PIPE_MASK_RGBA; in init_pipe_state()
165 blend.dither = 0; in init_pipe_state()
166 c->blend_clear = c->pipe->create_blend_state(c->pipe, &blend); in init_pipe_state()
515 vl_compositor_set_layer_blend(struct vl_compositor_state *s, unsigned layer, void *blend, bool is_clearing) vl_compositor_set_layer_blend() argument
[all...]
H A Dvl_idct.c508 struct pipe_blend_state blend; in init_state() local
526 memset(&blend, 0, sizeof blend); in init_state()
528 blend.independent_blend_enable = 0; in init_state()
529 blend.rt[0].blend_enable = 0; in init_state()
530 blend.rt[0].rgb_func = PIPE_BLEND_ADD; in init_state()
531 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE; in init_state()
532 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ONE; in init_state()
533 blend.rt[0].alpha_func = PIPE_BLEND_ADD; in init_state()
534 blend in init_state()
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_state.c44 uint32_t blend[2], cmask[2]; in nv30_blend_state_create() local
64 blend[0] = cso->rt[0].blend_enable; in nv30_blend_state_create()
70 blend[1] = 0; in nv30_blend_state_create()
73 blend[1] |= cso->rt[i].blend_enable << i; in nv30_blend_state_create()
80 blend[1] = 0x0000000e * (blend[0] & 0x00000001); in nv30_blend_state_create()
89 SB_DATA (so, blend[1]); in nv30_blend_state_create()
93 if (blend[0] || blend[1]) { in nv30_blend_state_create()
95 SB_DATA (so, blend[ in nv30_blend_state_create()
[all...]
/third_party/mesa3d/src/gallium/auxiliary/postprocess/
H A Dpp_program.c86 p->blend.rt[0].colormask = PIPE_MASK_RGBA; in pp_init_prog()
87 p->blend.rt[0].rgb_src_factor = p->blend.rt[0].alpha_src_factor = in pp_init_prog()
89 p->blend.rt[0].rgb_dst_factor = p->blend.rt[0].alpha_dst_factor = in pp_init_prog()
/third_party/ffmpeg/libavfilter/
H A Dvf_chromakey.c36 float blend; member
64 if (ctx->blend > 0.0001) { in do_chromakey_pixel()
65 return av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0) * 255.0; in do_chromakey_pixel()
86 if (ctx->blend > 0.0001) { in do_chromakey_pixel16()
87 return av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0) * max; in do_chromakey_pixel16()
203 if (ctx->blend > 0.0001) { in do_chromahold_slice()
204 double f = 1. - av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0); in do_chromahold_slice()
242 if (ctx->blend > 0.0001) { in do_chromahold16_slice()
243 double f = 1. - av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0); in do_chromahold16_slice()
352 { "blend", "se
[all...]
H A Dvf_colorkey_opencl.c46 float blend; member
68 if (ctx->blend > 0.0001) { in colorkey_opencl_init()
139 if (colorkey_ctx->blend > 0.0001) { in filter_frame()
140 CL_SET_KERNEL_ARG(colorkey_ctx->kernel_colorkey, 4, float, &colorkey_ctx->blend); in filter_frame()
225 { "blend", "set the colorkey key blend value", OFFSET(blend), AV_OPT_TYPE_FLOAT, { .dbl = 0.0 }, 0.0, 1.0, FLAGS },
/third_party/mesa3d/src/broadcom/vulkan/
H A Dv3dvx_pipeline.c59 assert(!"Invalid blend factor: dual source blending not supported."); in blend_factor()
61 assert(!"Unknown blend factor."); in blend_factor()
67 unreachable("Unknown blend factor."); in blend_factor()
81 pipeline->blend.enables = 0; in pack_blend()
82 pipeline->blend.color_write_masks = 0; /* All channels enabled */ in pack_blend()
93 pipeline->blend.needs_color_constants = false; in pack_blend()
115 pipeline->blend.enables |= rt_mask; in pack_blend()
117 v3dvx_pack(pipeline->blend.cfg[i], BLEND_CFG, config) { in pack_blend()
123 &pipeline->blend.needs_color_constants); in pack_blend()
126 &pipeline->blend in pack_blend()
[all...]
/third_party/skia/third_party/externals/freetype/src/cff/
H A Dcffload.c1268 /* Clear blend stack (after blend values are consumed). */
1302 CFF_Blend blend = &subFont->blend; in FT_LOCAL_DEF() local
1304 FT_Memory memory = subFont->blend.font->memory; /* for FT_REALLOC */ in FT_LOCAL_DEF()
1307 /* compute expected number of operands for this blend */ in FT_LOCAL_DEF()
1308 FT_UInt numOperands = (FT_UInt)( numBlends * blend->lenBV ); in FT_LOCAL_DEF()
1358 base = count - numOperands; /* index of first blend arg */ in FT_LOCAL_DEF()
1363 const FT_Int32* weight = &blend->BV[1]; in FT_LOCAL_DEF()
1370 for ( j = 1; j < blend in FT_LOCAL_DEF()
[all...]
/third_party/skia/third_party/externals/freetype/src/psaux/
H A Dt1decode.c902 PS_Blend blend = decoder->blend; in FT_LOCAL_DEF() local
908 if ( !blend ) in FT_LOCAL_DEF()
916 if ( arg_cnt != (FT_Int)( num_points * blend->num_designs ) ) in FT_LOCAL_DEF()
946 for ( mm = 1; mm < blend->num_designs; mm++ ) in FT_LOCAL_DEF()
949 blend->weight_vector[mm] ) ); in FT_LOCAL_DEF()
964 PS_Blend blend = decoder->blend; in FT_LOCAL_DEF() local
967 if ( arg_cnt != 1 || !blend ) in FT_LOCAL_DEF()
973 (FT_UInt)idx + blend in FT_LOCAL_DEF()
1032 PS_Blend blend = decoder->blend; FT_LOCAL_DEF() local
1053 PS_Blend blend = decoder->blend; FT_LOCAL_DEF() local
[all...]
H A Dpsintrp.c418 cf2_doBlend( const CFF_Blend blend, in cf2_doBlend() argument
425 CF2_UInt numOperands = (CF2_UInt)( numBlends * blend->lenBV ); in cf2_doBlend()
433 const CF2_Fixed* weight = &blend->BV[1]; in cf2_doBlend()
439 for ( j = 1; j < blend->lenBV; j++ ) in cf2_doBlend()
716 if ( font->blend.usedBV ) in cf2_interpT2CharString()
718 /* vsindex not allowed after blend */ in cf2_interpT2CharString()
737 FT_TRACE4(( " blend\n" )); in cf2_interpT2CharString()
742 /* do we have a `blend' op in a non-variant font? */ in cf2_interpT2CharString()
743 if ( !font->blend.font ) in cf2_interpT2CharString()
749 /* check cached blend vecto in cf2_interpT2CharString()
1829 PS_Blend blend = decoder->blend; cf2_interpT2CharString() local
1903 PS_Blend blend = decoder->blend; cf2_interpT2CharString() local
2013 PS_Blend blend = decoder->blend; cf2_interpT2CharString() local
2035 PS_Blend blend = decoder->blend; cf2_interpT2CharString() local
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DColorStateTests.cpp60 // Set up basePipeline and testPipeline. testPipeline has the given blend state on the first
141 // expectations are true for the given blend operation
150 wgpu::BlendState blend; in CheckBlendOperation() local
151 blend.color = blendComponent; in CheckBlendOperation()
152 blend.alpha = blendComponent; in CheckBlendOperation()
155 descriptor.blend = &blend; in CheckBlendOperation()
166 // expectations are true for the given blend factors
183 wgpu::BlendState blend; in CheckBlendFactor() local
184 blend in CheckBlendFactor()
308 wgpu::BlendState blend; TEST_P() local
691 wgpu::BlendState blend; TEST_P() local
741 wgpu::BlendState blend; TEST_P() local
948 wgpu::BlendState blend; TEST_P() local
[all...]
/third_party/mesa3d/src/gallium/drivers/v3d/
H A Dv3dx_emit.c77 unreachable("Bad blend factor"); in v3d_factor()
263 struct pipe_blend_state *blend, int rt, uint8_t rt_mask, in emit_rt_blend()
266 struct pipe_rt_blend_state *rtblend = &blend->rt[rt]; in emit_rt_blend()
269 /* We don't need to emit blend state for disabled RTs. */ in emit_rt_blend()
512 config.blend_enable = v3d->blend->blend_enables; in emit_state()
600 struct v3d_blend_state *blend = v3d->blend; in emit_state() local
602 if (blend->blend_enables) { in emit_state()
605 enables.mask = blend->blend_enables; in emit_state()
609 if (blend in emit_state()
262 emit_rt_blend(struct v3d_context *v3d, struct v3d_job *job, struct pipe_blend_state *blend, int rt, uint8_t rt_mask, bool blend_dst_alpha_one) emit_rt_blend() argument
642 struct pipe_blend_state *blend = &v3d->blend->base; emit_state() local
[all...]
/third_party/mesa3d/src/panfrost/vulkan/
H A Dpanvk_vX_pipeline.c139 &pipeline->blend.state, in panvk_pipeline_builder_compile_shaders()
220 bo_size += pan_size(BLEND) * MAX2(pipeline->blend.state.rt_count, 1); in panvk_pipeline_builder_alloc_static_state_bo()
304 for (unsigned rt = 0; rt < pipeline->blend.state.rt_count; rt++) { in panvk_pipeline_builder_init_shaders()
312 for (unsigned rt = 0; rt < MAX2(pipeline->blend.state.rt_count, 1); rt++) { in panvk_pipeline_builder_init_shaders()
314 &pipeline->blend.bd_template[rt]); in panvk_pipeline_builder_init_shaders()
443 default: unreachable("Invalid blend op"); in translate_blend_op()
480 default: unreachable("Invalid blend factor"); in translate_blend_factor()
511 /* LogicOp requires a blend shader */ in blend_needs_lowering()
521 /* v6 doesn't support blend constants in FF blend equation in blend_needs_lowering()
710 const struct pan_blend_state *blend = &pipeline->blend.state; panvk_fs_required() local
[all...]
/third_party/mesa3d/src/gallium/frontends/xa/
H A Dxa_context.c282 struct pipe_blend_state blend; in bind_solid_blend_state() local
284 memset(&blend, 0, sizeof(struct pipe_blend_state)); in bind_solid_blend_state()
285 blend.rt[0].blend_enable = 0; in bind_solid_blend_state()
286 blend.rt[0].colormask = PIPE_MASK_RGBA; in bind_solid_blend_state()
288 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE; in bind_solid_blend_state()
289 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE; in bind_solid_blend_state()
290 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO; in bind_solid_blend_state()
291 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ZERO; in bind_solid_blend_state()
293 cso_set_blend(ctx->cso, &blend); in bind_solid_blend_state()

Completed in 20 milliseconds

12345678910>>...13