Home
last modified time | relevance | path

Searched refs:Blend (Results 1 – 25 of 263) sorted by relevance

1234567891011

/third_party/mesa3d/src/mesa/main/
Dblend.c175 (blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcRGB) || in update_uses_dual_src()
176 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstRGB) || in update_uses_dual_src()
177 blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcA) || in update_uses_dual_src()
178 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstA)); in update_uses_dual_src()
215 if (ctx->Color.Blend[buf].SrcRGB != sfactorRGB || in skip_blend_state_update()
216 ctx->Color.Blend[buf].DstRGB != dfactorRGB || in skip_blend_state_update()
217 ctx->Color.Blend[buf].SrcA != sfactorA || in skip_blend_state_update()
218 ctx->Color.Blend[buf].DstA != dfactorA) { in skip_blend_state_update()
225 if (ctx->Color.Blend[0].SrcRGB != sfactorRGB || in skip_blend_state_update()
226 ctx->Color.Blend[0].DstRGB != dfactorRGB || in skip_blend_state_update()
[all …]
/third_party/mesa3d/src/mesa/swrast/
Ds_blend.c75 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); in blend_noop()
76 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); in blend_noop()
77 assert(ctx->Color.Blend[0].SrcRGB == GL_ZERO); in blend_noop()
78 assert(ctx->Color.Blend[0].DstRGB == GL_ONE); in blend_noop()
101 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); in blend_replace()
102 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); in blend_replace()
103 assert(ctx->Color.Blend[0].SrcRGB == GL_ONE); in blend_replace()
104 assert(ctx->Color.Blend[0].DstRGB == GL_ZERO); in blend_replace()
125 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); in blend_transparency_ubyte()
126 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); in blend_transparency_ubyte()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel.c71 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE || in intel_check_blit_fragment_ops()
72 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO || in intel_check_blit_fragment_ops()
73 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD || in intel_check_blit_fragment_ops()
74 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE || in intel_check_blit_fragment_ops()
75 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO || in intel_check_blit_fragment_ops()
76 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) { in intel_check_blit_fragment_ops()
Di915_state.c252 if (dw != i915->state.Blend[I915_BLENDREG_BLENDCOLOR1]) { in i915BlendColor()
253 i915->state.Blend[I915_BLENDREG_BLENDCOLOR1] = dw; in i915BlendColor()
289 GLuint iab = (i915->state.Blend[I915_BLENDREG_IAB] & in i915UpdateBlendState()
298 GLuint eqRGB = ctx->Color.Blend[0].EquationRGB; in i915UpdateBlendState()
299 GLuint eqA = ctx->Color.Blend[0].EquationA; in i915UpdateBlendState()
300 GLuint srcRGB = ctx->Color.Blend[0].SrcRGB; in i915UpdateBlendState()
301 GLuint dstRGB = ctx->Color.Blend[0].DstRGB; in i915UpdateBlendState()
302 GLuint srcA = ctx->Color.Blend[0].SrcA; in i915UpdateBlendState()
303 GLuint dstA = ctx->Color.Blend[0].DstA; in i915UpdateBlendState()
324 if (iab != i915->state.Blend[I915_BLENDREG_IAB]) { in i915UpdateBlendState()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_pixel.c68 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE || in brw_check_blit_fragment_ops()
69 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO || in brw_check_blit_fragment_ops()
70 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD || in brw_check_blit_fragment_ops()
71 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE || in brw_check_blit_fragment_ops()
72 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO || in brw_check_blit_fragment_ops()
73 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) { in brw_check_blit_fragment_ops()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_blend.c238 translate_blend(ctx->Color.Blend[j].EquationRGB); in st_update_blend()
240 if (ctx->Color.Blend[i].EquationRGB == GL_MIN || in st_update_blend()
241 ctx->Color.Blend[i].EquationRGB == GL_MAX) { in st_update_blend()
248 translate_blend(ctx->Color.Blend[j].SrcRGB); in st_update_blend()
250 translate_blend(ctx->Color.Blend[j].DstRGB); in st_update_blend()
254 translate_blend(ctx->Color.Blend[j].EquationA); in st_update_blend()
256 if (ctx->Color.Blend[i].EquationA == GL_MIN || in st_update_blend()
257 ctx->Color.Blend[i].EquationA == GL_MAX) { in st_update_blend()
264 translate_blend(ctx->Color.Blend[j].SrcA); in st_update_blend()
266 translate_blend(ctx->Color.Blend[j].DstA); in st_update_blend()
/third_party/skia/gm/
Dxfermodeimagefilter.cpp94 paint.setImageFilter(SkImageFilters::Blend(gModes[i], background)); in onDraw()
111 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kSrcOver, background)); in onDraw()
125 paint.setImageFilter(SkImageFilters::Blend( in onDraw()
134 paint.setImageFilter(SkImageFilters::Blend( in onDraw()
155 paint.setImageFilter(SkImageFilters::Blend(sampledModes[i], offsetBackground, in onDraw()
167 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kScreen, cropped, background)); in onDraw()
175 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kScreen, background, cropped)); in onDraw()
186 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kSrcIn, background, cropped, in onDraw()
Dimagefiltersgraph.cpp48 sk_sp<SkColorFilter> cf(SkColorFilters::Blend(SK_ColorRED, in onDraw()
73 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kSrcOver, in onDraw()
102 SkImageFilters::Blend(SkBlendMode::kSrcIn, std::move(blur), nullptr, &cropRect)); in onDraw()
131 sk_sp<SkColorFilter> cf1(SkColorFilters::Blend(SK_ColorBLUE, SkBlendMode::kSrcIn)); in onDraw()
132 sk_sp<SkColorFilter> cf2(SkColorFilters::Blend(SK_ColorGREEN, SkBlendMode::kSrcIn)); in onDraw()
Dcomposeshader.cpp49 return SkShaders::Blend(mode, std::move(shaderA), std::move(shaderB)); in make_shader()
199 SkShaders::Blend(mode, fLinearGradientShader, fColorBitmapShader), in onDraw()
201 SkShaders::Blend(mode, fLinearGradientShader, fAlpha8BitmapShader), in onDraw()
278 SkShaders::Blend(SkBlendMode::kSrcIn,
323 p.setShader(SkShaders::Blend(mode, dst, src)); in draw_composed()
/third_party/skia/bench/
DColorFilterBench.cpp167 []() { return SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc); }); ) in __anon2fba1d400302()
169 []() { return SkColorFilters::Blend(0x80808080, SkBlendMode::kSrcOver); }); ) in __anon2fba1d400402()
179 []() { return SkColorFilters::Compose(SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc), in __anon2fba1d400902()
180 SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc)); in __anon2fba1d400902()
184 SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc), in __anon2fba1d400a02()
185 SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc)); in __anon2fba1d400a02()
/third_party/skia/src/codec/
DSkFrameHolder.h32 , fBlend(SkCodecAnimation::Blend::kSrcOver) in SkFrame()
137 void setBlend(SkCodecAnimation::Blend blend) { in setBlend()
141 SkCodecAnimation::Blend getBlend() const { in getBlend()
162 SkCodecAnimation::Blend fBlend;
/third_party/flutter/skia/src/codec/
DSkFrameHolder.h32 , fBlend(SkCodecAnimation::Blend::kPriorFrame) in SkFrame()
137 void setBlend(SkCodecAnimation::Blend blend) { in setBlend()
141 SkCodecAnimation::Blend getBlend() const { in getBlend()
157 SkCodecAnimation::Blend fBlend;
/third_party/skia/src/shaders/
DSkComposeShader.cpp45 sk_sp<SkShader> SkShaders::Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src) { in Blend() function in SkShaders
58 sk_sp<SkShader> SkShaders::Blend(sk_sp<SkBlender> blender, sk_sp<SkShader> dst, sk_sp<SkShader> src… in Blend() function in SkShaders
63 return SkShaders::Blend(SkBlendMode::kSrcOver, std::move(dst), std::move(src)); in Blend()
66 return SkShaders::Blend(bm.value(), std::move(dst), std::move(src)); in Blend()
86 return SkShaders::Blend(std::move(blender), std::move(dst), std::move(src)); in CreateProc()
90 return SkShaders::Blend(static_cast<SkBlendMode>(mode), std::move(dst), std::move(src)); in CreateProc()
/third_party/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c231 ctx->Color.Blend[0].EquationRGB, in _mesa_init_driver_state()
232 ctx->Color.Blend[0].EquationA); in _mesa_init_driver_state()
235 ctx->Color.Blend[0].SrcRGB, in _mesa_init_driver_state()
236 ctx->Color.Blend[0].DstRGB, in _mesa_init_driver_state()
237 ctx->Color.Blend[0].SrcA, in _mesa_init_driver_state()
238 ctx->Color.Blend[0].DstA); in _mesa_init_driver_state()
/third_party/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv10_state_raster.c71 PUSH_DATA (push, nvgl_blend_eqn(ctx->Color.Blend[0].EquationRGB)); in nv10_emit_blend_equation()
80 PUSH_DATA (push, nvgl_blend_func(ctx->Color.Blend[0].SrcRGB)); in nv10_emit_blend_func()
81 PUSH_DATA (push, nvgl_blend_func(ctx->Color.Blend[0].DstRGB)); in nv10_emit_blend_func()
/third_party/skia/include/core/
DSkShader.h141 static sk_sp<SkShader> Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src);
142 static sk_sp<SkShader> Blend(sk_sp<SkBlender>, sk_sp<SkShader> dst, sk_sp<SkShader> src);
/third_party/skia/third_party/externals/opengl-registry/extensions/OES/
DOES_blend_func_separate.txt70 Replace the "Blend Equation" discussion in section 4.1.7 (Blending) with
74 blend functions. Blend functions are specified with the commands
88 Function RGB Blend Factors Alpha Blend Factor
DOES_blend_subtract.txt75 Replace the 1st paragraph of the "Blend Equation" discussion in section
85 Replace the last paragraph of the "Blend Equation" discussion in section
98 factors determined by the destination blend function. Blend functions are
119 Table 4.blendeq: Blend equations."
/third_party/flutter/skia/samplecode/
DSampleShaders.cpp25 return SkShaders::Blend(SkBlendMode::kDstIn, in make_bitmapfade()
47 return SkShaders::Blend(SkBlendMode::kDstIn, std::move(shaderA), std::move(shaderB)); in make_blend_shader()
/third_party/flutter/skia/gm/
Dcomposeshader.cpp49 return SkShaders::Blend(mode, std::move(shaderA), std::move(shaderB)); in make_shader()
202 SkShaders::Blend(mode, fLinearGradientShader, fColorBitmapShader, lm.getMaybeNull()), in onDraw()
204 SkShaders::Blend(mode, fLinearGradientShader, fAlpha8BitmapShader, lm.getMaybeNull()), in onDraw()
277 SkShaders::Blend(SkBlendMode::kSrcIn, skMaskImage->makeShader(), skSrc->makeShader()));
320 p.setShader(SkShaders::Blend(mode, dst, src)); in draw_composed()
Dimagefiltersgraph.cpp49 sk_sp<SkColorFilter> cf(SkColorFilters::Blend(SK_ColorRED, in onDraw()
132 sk_sp<SkColorFilter> cf1(SkColorFilters::Blend(SK_ColorBLUE, SkBlendMode::kSrcIn)); in onDraw()
133 sk_sp<SkColorFilter> cf2(SkColorFilters::Blend(SK_ColorGREEN, SkBlendMode::kSrcIn)); in onDraw()
/third_party/flutter/skia/tests/
DColorFilterTest.cpp38 return SkColorFilters::Blend(SK_ColorRED, SkBlendMode::kColorBurn); in make_filter()
68 auto cf = SkColorFilters::Blend(color, (SkBlendMode)mode); in DEF_TEST()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcBlendEquationAdvancedTests.cpp166 static tcu::Vec4 Blend(const tcu::Vec4& rgb, const tcu::Vec4& src, const tcu::Vec4& dst) in Blend() function
178 return Blend(rgb, src, dst); in BlendMultiply()
185 return Blend(rgb, src, dst); in BlendScreen()
200 return Blend(rgb, src, dst); in BlendOverlay()
207 return Blend(rgb, src, dst); in BlendDarken()
214 return Blend(rgb, src, dst); in BlendLighten()
231 return Blend(rgb, src, dst); in BlendColorDodge()
251 return Blend(rgb, src, dst); in BlendColorBurn()
266 return Blend(rgb, src, dst); in BlendHardLight()
289 return Blend(rgb, src, dst); in BlendSoftLight()
[all …]
/third_party/openGLES/extensions/OES/
DOES_blend_func_separate.txt80 Replace the "Blend Equation" discussion in section 4.1.7 (Blending) with
84 blend functions. Blend functions are specified with the commands
98 Function RGB Blend Factors Alpha Blend Factor
DOES_blend_subtract.txt85 Replace the 1st paragraph of the "Blend Equation" discussion in section
95 Replace the last paragraph of the "Blend Equation" discussion in section
108 factors determined by the destination blend function. Blend functions are
129 Table 4.blendeq: Blend equations."

1234567891011