Home
last modified time | relevance | path

Searched refs:blend (Results 76 - 100 of 357) sorted by relevance

12345678910>>...15

/third_party/mesa3d/src/gallium/tests/graw/
H A Dgraw_util.h151 struct pipe_blend_state blend; in graw_util_default_state() local
153 memset(&blend, 0, sizeof blend); in graw_util_default_state()
154 blend.rt[0].colormask = PIPE_MASK_RGBA; in graw_util_default_state()
155 handle = info->ctx->create_blend_state(info->ctx, &blend); in graw_util_default_state()
H A Dquad-sample.c358 struct pipe_blend_state blend; in init() local
360 memset(&blend, 0, sizeof blend); in init()
361 blend.rt[0].colormask = PIPE_MASK_RGBA; in init()
362 handle = ctx->create_blend_state(ctx, &blend); in init()
H A Dtri-instanced.c293 struct pipe_blend_state blend; in init() local
295 memset(&blend, 0, sizeof blend); in init()
296 blend.rt[0].colormask = PIPE_MASK_RGBA; in init()
297 handle = ctx->create_blend_state(ctx, &blend); in init()
/third_party/ffmpeg/libavfilter/
H A Dvf_hsvkey.c36 float blend; member
59 const float blend = s->blend; in do_hsvkey_pixel() local
80 } else if (blend > FLT_MIN) { in do_hsvkey_pixel()
81 return av_clipf((diff - similarity) / blend, 0.f, 1.f) * max; in do_hsvkey_pixel()
296 { "blend", "set the hsvkey blend value", OFFSET(blend), AV_OPT_TYPE_FLOAT, { .dbl = 0.0 }, 0.0, 1.0, FLAGS },
338 { "blend", "set the hsvhold blend valu
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DRenderPipelineD3D12.cpp180 // When a blend factor is defined for the alpha channel, any of the factors that don't
194 // Other blend factors translate to the same D3D12 enum as the color blend factors. in D3D12AlphaBlend()
233 blendDesc.BlendEnable = state->blend != nullptr; in ComputeColorDesc()
235 blendDesc.SrcBlend = D3D12Blend(state->blend->color.srcFactor); in ComputeColorDesc()
236 blendDesc.DestBlend = D3D12Blend(state->blend->color.dstFactor); in ComputeColorDesc()
237 blendDesc.BlendOp = D3D12BlendOperation(state->blend->color.operation); in ComputeColorDesc()
238 blendDesc.SrcBlendAlpha = D3D12AlphaBlend(state->blend->alpha.srcFactor); in ComputeColorDesc()
239 blendDesc.DestBlendAlpha = D3D12AlphaBlend(state->blend->alpha.dstFactor); in ComputeColorDesc()
240 blendDesc.BlendOpAlpha = D3D12BlendOperation(state->blend in ComputeColorDesc()
[all...]
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/
H A DDelayLineEffect.h33 DelayLineEffect(float blend, float feedForward, float feedBack, int delay, int depth, std::function<float()> &&mod) : in DelayLineEffect() argument
34 kBlend(blend), in DelayLineEffect()
/third_party/mesa3d/src/panfrost/vulkan/
H A Dpanvk_vX_cs.c600 unreachable("Unsupported blend shader type for NIR alu type"); in bifrost_blend_type_from_nir()
609 const struct pan_blend_state *blend = &pipeline->blend.state; in emit_blend() local
610 const struct pan_blend_rt_state *rts = &blend->rts[rt]; in emit_blend()
614 if (!blend->rt_count || !rts->equation.color_mask) { in emit_blend()
621 cfg.load_destination = pan_blend_reads_dest(blend->rts[rt].equation); in emit_blend()
631 pan_blend_to_fixed_function_equation(blend->rts[rt].equation, in emit_blend()
636 pan_blend_get_constant(pan_blend_constant_mask(blend->rts[rt].equation), in emit_blend()
637 blend->constants); in emit_blend()
642 if (pan_blend_is_opaque(blend in emit_blend()
[all...]
/third_party/mesa3d/src/gallium/drivers/panfrost/
H A Dpan_helpers.c202 * Draw time helper to set batch->{read, draws, resolve} based on current blend
203 * and depth-stencil state. To be called when blend or depth/stencil dirty state
210 struct panfrost_blend_state *blend = ctx->blend; in panfrost_set_batch_masks_blend() local
213 if (!blend->info[i].no_colour && batch->key.cbufs[i]) in panfrost_set_batch_masks_blend()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_state_validate.c300 PUSH_SPACE(push, nv30->blend->size); in nv30_validate_blend()
301 PUSH_DATAp(push, nv30->blend->data, nv30->blend->size); in nv30_validate_blend()
326 struct pipe_blend_state *blend = &nv30->blend->pipe; in nv30_validate_multisample() local
330 if (blend->alpha_to_one) in nv30_validate_multisample()
332 if (blend->alpha_to_coverage) in nv30_validate_multisample()
452 if (!nv30->blend) in nv30_state_context_switch()
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_blitter.c114 void *blend[PIPE_MASK_RGBA+1][2]; /**< blend state with writemask */ member
166 struct pipe_blend_state blend; in util_blitter_create() local
225 /* blend state objects */ in util_blitter_create()
226 memset(&blend, 0, sizeof(blend)); in util_blitter_create()
230 memset(&blend.rt[0], 0, sizeof(blend.rt[0])); in util_blitter_create()
231 blend.rt[0].colormask = i; in util_blitter_create()
233 blend in util_blitter_create()
1493 struct pipe_blend_state blend = {0}; get_clear_blend_state() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/sprd/
H A Dsprd_dpu.c294 u32 blend = 0; in drm_blend_to_dpu() local
299 blend |= BIT_DPU_LAY_COMBO_ALPHA; in drm_blend_to_dpu()
301 blend |= BIT_DPU_LAY_MODE_BLEND_NORMAL; in drm_blend_to_dpu()
305 blend |= BIT_DPU_LAY_COMBO_ALPHA; in drm_blend_to_dpu()
307 blend |= BIT_DPU_LAY_MODE_BLEND_PREMULT; in drm_blend_to_dpu()
313 blend |= BIT_DPU_LAY_LAYER_ALPHA; in drm_blend_to_dpu()
317 return blend; in drm_blend_to_dpu()
325 u32 addr, size, offset, pitch, blend, format, rotation; in sprd_dpu_layer() local
367 blend = drm_blend_to_dpu(state); in sprd_dpu_layer()
372 blend | in sprd_dpu_layer()
[all...]
/third_party/skia/src/codec/
H A DSkFrameHolder.h137 void setBlend(SkCodecAnimation::Blend blend) { in setBlend() argument
138 fBlend = blend; in setBlend()
/third_party/skia/third_party/externals/freetype/src/cff/
H A Dcffload.h87 cff_blend_check_vector( CFF_Blend blend,
93 cff_blend_build_vector( CFF_Blend blend,
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/
H A Dwndwc37e.c110 NVVAL(NVC37E, SET_COMPOSITION_CONTROL, DEPTH, asyw->blend.depth), in wndwc37e_blend_set()
113 NVVAL(NVC37E, SET_COMPOSITION_CONSTANT_ALPHA, K1, asyw->blend.k1) | in wndwc37e_blend_set()
118 asyw->blend.src_color) | in wndwc37e_blend_set()
120 asyw->blend.src_color) | in wndwc37e_blend_set()
122 asyw->blend.dst_color) | in wndwc37e_blend_set()
124 asyw->blend.dst_color), in wndwc37e_blend_set()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/
H A Dwndwc37e.c105 NVVAL(NVC37E, SET_COMPOSITION_CONTROL, DEPTH, asyw->blend.depth), in wndwc37e_blend_set()
108 NVVAL(NVC37E, SET_COMPOSITION_CONSTANT_ALPHA, K1, asyw->blend.k1) | in wndwc37e_blend_set()
113 asyw->blend.src_color) | in wndwc37e_blend_set()
115 asyw->blend.src_color) | in wndwc37e_blend_set()
117 asyw->blend.dst_color) | in wndwc37e_blend_set()
119 asyw->blend.dst_color), in wndwc37e_blend_set()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_state.c74 struct si_state_blend *blend = sctx->queued.named.blend; in si_emit_cb_render_state() local
77 uint32_t cb_target_mask = sctx->framebuffer.colorbuf_enabled_4bit & blend->cb_target_mask; in si_emit_cb_render_state()
86 if (blend->dual_src_blend && sctx->shader.ps.cso && in si_emit_cb_render_state()
112 blend->dcc_msaa_corruption_4bit & cb_target_mask && sctx->framebuffer.nr_samples >= 2; in si_emit_cb_render_state()
293 PRINT_ERR("Unknown blend function %d\n", blend_func); in si_translate_blend_function()
350 PRINT_ERR("Bad blend factor %d not supported!\n", blend_fact); in si_translate_blend_factor()
400 static void si_blend_check_commutativity(struct si_screen *sscreen, struct si_state_blend *blend, in si_blend_check_commutativity() argument
417 blend->commutative_4bit |= chanmask; in si_blend_check_commutativity()
421 * Get rid of DST in the blend factor
443 struct si_state_blend *blend = CALLOC_STRUCT(si_state_blend); si_create_blend_state_mode() local
732 struct si_state_blend *blend = (struct si_state_blend *)state; si_bind_blend_state() local
3682 struct si_state_blend *blend = sctx->queued.named.blend; si_out_of_order_rasterization() local
5391 struct pipe_blend_state blend; si_create_blend_custom() local
[all...]
H A Dsi_state_binning.c445 struct si_state_blend *blend = sctx->queued.named.blend; in si_emit_dpbb_state() local
459 G_02880C_COVERAGE_TO_MASK_ENABLE(db_shader_control) || blend->alpha_to_coverage; in si_emit_dpbb_state()
475 sctx->framebuffer.colorbuf_enabled_4bit & blend->cb_target_enabled_4bit; in si_emit_dpbb_state()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_context.c75 if (softpipe->quad.blend) in softpipe_destroy()
76 softpipe->quad.blend->destroy( softpipe->quad.blend ); in softpipe_destroy()
268 softpipe->quad.blend = sp_quad_blend_stage(softpipe); in softpipe_create_context()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_bld_blend_aos.c293 * @param blend the blend state of the shader variant
297 * @param src blend src
298 * @param src_alpha blend src alpha (if not included in src)
299 * @param src1 second blend src (for dual source blend)
300 * @param src1_alpha second blend src alpha (if not included in src1)
301 * @param dst blend dst
303 * @param const_ const blend color
304 * @param const_alpha const blend colo
310 lp_build_blend_aos(struct gallivm_state *gallivm, const struct pipe_blend_state *blend, enum pipe_format cbuf_format, struct lp_type type, unsigned rt, LLVMValueRef src, LLVMValueRef src_alpha, LLVMValueRef src1, LLVMValueRef src1_alpha, LLVMValueRef dst, LLVMValueRef mask, LLVMValueRef const_, LLVMValueRef const_alpha, const unsigned char swizzle[4], int nr_channels) lp_build_blend_aos() argument
[all...]
H A Dlp_state_fs.c658 const boolean dual_source_blend = key->blend.rt[0].blend_enable && in generate_fs_loop()
659 util_blend_state_is_dual(&key->blend, 0); in generate_fs_loop()
687 key->blend.alpha_to_coverage || in generate_fs_loop()
1070 if (key->blend.alpha_to_coverage) { in generate_fs_loop()
1090 if (key->blend.alpha_to_one) { in generate_fs_loop()
1923 * can't be fixed. Should really have some SoA blend path for these kind of in convert_to_blend_type()
2091 * can't be fixed. Should really have some SoA blend path for these kind of in convert_from_blend_type()
2263 * Convert alpha to same blend type as src
2357 * Generates the blend function for unswizzled colour buffers
2416 const boolean dual_source_blend = variant->key.blend in generate_unswizzled_blend()
[all...]
/third_party/skia/third_party/externals/freetype/src/psaux/
H A Dpsfont.c293 if ( cffload->blend_check_vector( &subFont->blend, in cf2_font_setup()
298 /* blend has changed, reparse */ in cf2_font_setup()
308 font->blend.font = subFont->blend.font; in cf2_font_setup()
310 /* clear state of charstring blend */ in cf2_font_setup()
311 font->blend.usedBV = FALSE; in cf2_font_setup()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DRenderPipelineVk.cpp236 attachment.blendEnable = state->blend != nullptr ? VK_TRUE : VK_FALSE; in ComputeColorDesc()
238 attachment.srcColorBlendFactor = VulkanBlendFactor(state->blend->color.srcFactor); in ComputeColorDesc()
239 attachment.dstColorBlendFactor = VulkanBlendFactor(state->blend->color.dstFactor); in ComputeColorDesc()
240 attachment.colorBlendOp = VulkanBlendOperation(state->blend->color.operation); in ComputeColorDesc()
241 attachment.srcAlphaBlendFactor = VulkanBlendFactor(state->blend->alpha.srcFactor); in ComputeColorDesc()
242 attachment.dstAlphaBlendFactor = VulkanBlendFactor(state->blend->alpha.dstFactor); in ComputeColorDesc()
243 attachment.alphaBlendOp = VulkanBlendOperation(state->blend->alpha.operation); in ComputeColorDesc()
462 // Initialize the "blend state info" that will be chained in the "create info" from the in Initialize()
479 // The blend constant is always dynamic so we fill in a dummy value in Initialize()
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_pipeline.c417 * Get rid of DST in the blend factors by commuting the operands:
493 return formats.blend; in radv_choose_spi_color_format()
534 struct radv_blend_state *blend, in radv_pipeline_compute_spi_color_formats()
544 if (fmt == VK_FORMAT_UNDEFINED || !(blend->cb_target_mask & (0xfu << (i * 4)))) { in radv_pipeline_compute_spi_color_formats()
547 bool blend_enable = blend->blend_enable_4bit & (0xfu << (i * 4)); in radv_pipeline_compute_spi_color_formats()
550 blend->need_src_alpha & (1 << i)); in radv_pipeline_compute_spi_color_formats()
563 if (!(col_format & 0xf) && blend->need_src_alpha & (1 << 0)) { in radv_pipeline_compute_spi_color_formats()
584 if (blend->mrt0_is_dual_src) { in radv_pipeline_compute_spi_color_formats()
589 blend->cb_shader_mask = ac_get_cb_shader_mask(col_format); in radv_pipeline_compute_spi_color_formats()
590 blend in radv_pipeline_compute_spi_color_formats()
532 radv_pipeline_compute_spi_color_formats(const struct radv_graphics_pipeline *pipeline, const VkGraphicsPipelineCreateInfo *pCreateInfo, struct radv_blend_state *blend, const struct radv_graphics_pipeline_info *info) radv_pipeline_compute_spi_color_formats() argument
642 radv_blend_check_commutativity(enum amd_gfx_level gfx_level, struct radv_blend_state *blend, unsigned op, unsigned src, unsigned dst, unsigned chanmask) radv_blend_check_commutativity() argument
698 struct radv_blend_state blend = {0}; radv_pipeline_init_blend_state() local
980 radv_pipeline_out_of_order_rast(struct radv_graphics_pipeline *pipeline, const struct radv_blend_state *blend, const struct radv_graphics_pipeline_info *info) radv_pipeline_out_of_order_rast() argument
1074 radv_pipeline_init_multisample_state(struct radv_graphics_pipeline *pipeline, const struct radv_blend_state *blend, const struct radv_graphics_pipeline_info *info, unsigned rast_prim) radv_pipeline_init_multisample_state() argument
3303 radv_generate_graphics_pipeline_key(const struct radv_graphics_pipeline *pipeline, const VkGraphicsPipelineCreateInfo *pCreateInfo, const struct radv_graphics_pipeline_info *info, const struct radv_blend_state *blend) radv_generate_graphics_pipeline_key() argument
5488 radv_pipeline_init_binning_state(struct radv_graphics_pipeline *pipeline, const struct radv_blend_state *blend, const struct radv_graphics_pipeline_info *info) radv_pipeline_init_binning_state() argument
5535 radv_pipeline_emit_blend_state(struct radeon_cmdbuf *ctx_cs, const struct radv_graphics_pipeline *pipeline, const struct radv_blend_state *blend) radv_pipeline_emit_blend_state() argument
6684 radv_pipeline_emit_pm4(struct radv_graphics_pipeline *pipeline, const struct radv_blend_state *blend, const struct radv_depth_stencil_state *ds_state, uint32_t vgt_gs_out_prim_type, const struct radv_graphics_pipeline_info *info) radv_pipeline_emit_pm4() argument
6942 struct radv_blend_state blend = radv_pipeline_init_blend_state(pipeline, pCreateInfo, &info); radv_graphics_pipeline_init() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/driver_ddebug/
H A Ddd_pipe.h210 struct pipe_blend_state blend; member
246 struct dd_state *blend; member
275 struct dd_state blend; member
/third_party/skia/experimental/sorttoy/
H A DFake.cpp58 // Linearly blend between c0 & c1:
61 static SkColor blend(float t, SkColor c0, SkColor c1) { in blend() function
91 return blend(t, fColor0, fColor1); in evalColor()
100 return blend(dist, fColor0, fColor1); in evalColor()

Completed in 29 milliseconds

12345678910>>...15