/external/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_pipe_blend.c | 81 struct svga_blend_state *blend = CALLOC_STRUCT( svga_blend_state ); local 85 /* Fill in the per-rendertarget blend state. We currently only 90 * top of D3D9 API. Instead we try to simulate with various blend modes. 96 blend->need_white_fragments = TRUE; 97 blend->rt[i].blend_enable = TRUE; 98 blend->rt[i].srcblend = SVGA3D_BLENDOP_ONE; 99 blend->rt[i].dstblend = SVGA3D_BLENDOP_ONE; 100 blend->rt[i].blendeq = SVGA3D_BLENDEQ_SUBTRACT; 103 blend->rt[i].blend_enable = TRUE; 104 blend 204 svga_bind_blend_state(struct pipe_context *pipe, void *blend) argument 214 svga_delete_blend_state(struct pipe_context *pipe, void *blend) argument [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_dual_blend.h | 14 static INLINE boolean util_blend_state_is_dual(const struct pipe_blend_state *blend, argument 17 if (util_blend_factor_is_dual_src(blend->rt[index].rgb_src_factor) || 18 util_blend_factor_is_dual_src(blend->rt[index].alpha_src_factor) || 19 util_blend_factor_is_dual_src(blend->rt[index].rgb_dst_factor) || 20 util_blend_factor_is_dual_src(blend->rt[index].alpha_dst_factor))
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | gen6_cc.c | 40 struct gen6_blend_state *blend; local 54 size = sizeof(*blend) * nr_draw_buffers; 55 blend = brw_state_batch(brw, AUB_TRACE_BLEND_STATE, 58 memset(blend, 0, size); 93 blend[b].blend1.logic_op_enable = 1; 94 blend[b].blend1.logic_op_func = 113 blend[b].blend0.dest_blend_factor = brw_translate_blend_factor(dstRGB); 114 blend[b].blend0.source_blend_factor = brw_translate_blend_factor(srcRGB); 115 blend[b].blend0.blend_func = brw_translate_blend_equation(eqRGB); 117 blend[ [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_blend.c | 45 * Convert GLenum blend tokens to pipe tokens. 46 * Both blend factors and blend funcs are accepted. 49 translate_blend(GLenum blend) argument 51 switch (blend) { 52 /* blend functions */ 64 /* blend factors */ 172 * Figure out if blend enables/state are different per rt. 192 struct pipe_blend_state *blend = &st->state.blend; local [all...] |
/external/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_state_blend.c | 40 const struct pipe_blend_state *blend) 42 return mem_dup(blend, sizeof(*blend)); 48 void *blend) 54 softpipe->blend = (struct pipe_blend_state *)blend; 62 void *blend) 64 FREE( blend ); 39 softpipe_create_blend_state(struct pipe_context *pipe, const struct pipe_blend_state *blend) argument 47 softpipe_bind_blend_state(struct pipe_context *pipe, void *blend) argument 61 softpipe_delete_blend_state(struct pipe_context *pipe, void *blend) argument
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_state_blend.c | 46 const struct pipe_blend_state *blend) 48 struct pipe_blend_state *state = mem_dup(blend, sizeof *blend); 62 llvmpipe_bind_blend_state(struct pipe_context *pipe, void *blend) argument 66 if (llvmpipe->blend == blend) 71 llvmpipe->blend = blend; 78 llvmpipe_delete_blend_state(struct pipe_context *pipe, void *blend) argument 80 FREE( blend ); 45 llvmpipe_create_blend_state(struct pipe_context *pipe, const struct pipe_blend_state *blend) argument [all...] |
H A D | lp_test_blend.c | 31 * Unit tests for blend LLVM IR generation 82 const struct pipe_blend_state *blend, 108 blend->rt[0].rgb_func != blend->rt[0].alpha_func ? "true" : "false", 109 blend->rt[0].rgb_src_factor != blend->rt[0].alpha_src_factor ? "true" : "false", 110 blend->rt[0].rgb_dst_factor != blend->rt[0].alpha_dst_factor ? "true" : "false"); 114 util_dump_blend_func(blend->rt[0].rgb_func, TRUE), 115 util_dump_blend_factor(blend 81 write_tsv_row(FILE *fp, const struct pipe_blend_state *blend, enum vector_mode mode, struct lp_type type, double cycles, boolean success) argument 126 dump_blend_type(FILE *fp, const struct pipe_blend_state *blend, enum vector_mode mode, struct lp_type type) argument 154 add_blend_test(struct gallivm_state *gallivm, const struct pipe_blend_state *blend, enum vector_mode mode, struct lp_type type) argument 385 compute_blend_ref(const struct pipe_blend_state *blend, const double *src, const double *dst, const double *con, double *res) argument 459 test_one(unsigned verbose, FILE *fp, const struct pipe_blend_state *blend, enum vector_mode mode, struct lp_type type) argument 750 struct pipe_blend_state blend; local 804 struct pipe_blend_state blend; local [all...] |
H A D | lp_bld_blend_soa.c | 62 * lp_blend_test -o blend.tsv 115 * Build a single SOA blend factor for a color channel. 200 * Generate blend code in SOA mode. 201 * \param rt render target index (to index the blend / colormask state) 204 * \param con constant blend color 209 const struct pipe_blend_state *blend, 234 if (blend->rt[rt].colormask & (1 << i)) { 235 if (blend->logicop_enable) { 237 res[i] = lp_build_logicop(builder, blend->logicop_func, src[i], dst[i]); 242 else if (blend 208 lp_build_blend_soa(struct gallivm_state *gallivm, const struct pipe_blend_state *blend, struct lp_type type, unsigned rt, LLVMValueRef src[4], LLVMValueRef dst[4], LLVMValueRef con[4], LLVMValueRef res[4]) argument [all...] |
/external/pdfium/third_party/freetype/src/truetype/ |
H A D | ttgxvar.c | 293 GX_Blend blend = face->blend; local 306 blend->avar_checked = TRUE; 328 if ( axisCount != (FT_Long)blend->mmvar->num_axis ) 335 if ( FT_NEW_ARRAY( blend->avar_segment, axisCount ) ) 338 segment = &blend->avar_segment[0]; 350 FT_FREE( blend->avar_segment[j].correspondence ); 352 FT_FREE( blend->avar_segment ); 353 blend->avar_segment = NULL; 409 GX_Blend blend local 562 ft_var_apply_tuple( GX_Blend blend, FT_UShort tupleIndex, FT_Fixed* tuple_coords, FT_Fixed* im_start_coords, FT_Fixed* im_end_coords ) argument 993 GX_Blend blend; local 1154 GX_Blend blend; local 1300 GX_Blend blend = face->blend; local 1769 GX_Blend blend = face->blend; local [all...] |
/external/freetype/src/truetype/ |
H A D | ttgxvar.c | 309 GX_Blend blend = face->blend; local 322 blend->avar_checked = TRUE; 344 if ( axisCount != (FT_Long)blend->mmvar->num_axis ) 351 if ( FT_NEW_ARRAY( blend->avar_segment, axisCount ) ) 354 segment = &blend->avar_segment[0]; 367 FT_FREE( blend->avar_segment[j].correspondence ); 369 FT_FREE( blend->avar_segment ); 370 blend->avar_segment = NULL; 418 GX_Blend blend local 731 GX_Blend blend = face->blend; local 1169 GX_Blend blend = face->blend; local 1307 GX_Blend blend = face->blend; local 1414 GX_Blend blend = face->blend; local 1587 ft_var_apply_tuple( GX_Blend blend, FT_UShort tupleIndex, FT_Fixed* tuple_coords, FT_Fixed* im_start_coords, FT_Fixed* im_end_coords ) argument 2042 GX_Blend blend; local 2206 GX_Blend blend; local 2276 GX_Blend blend; local 2414 GX_Blend blend; local 2547 GX_Blend blend = face->blend; local 3034 GX_Blend blend = face->blend; local 3449 GX_Blend blend = face->blend; local [all...] |
/external/pdfium/third_party/freetype/src/type1/ |
H A D | t1load.c | 107 PS_Blend blend; local 112 blend = face->blend; 113 if ( !blend ) 115 if ( FT_NEW( blend ) ) 118 blend->num_default_design_vector = 0; 120 face->blend = blend; 126 if ( blend->num_designs == 0 ) 131 /* allocate the blend `privat 194 PS_Blend blend = face->blend; local 310 PS_Blend blend = face->blend; local 370 PS_Blend blend = face->blend; local 416 PS_Blend blend = face->blend; local 514 PS_Blend blend = face->blend; local 571 PS_Blend blend; local 650 PS_Blend blend; local 745 PS_Blend blend; local 844 PS_Blend blend = face->blend; local 939 PS_Blend blend = face->blend; local [all...] |
/external/mesa3d/src/gallium/state_trackers/xa/ |
H A D | xa_composite.c | 102 blend_for_op(struct xa_composite_blend *blend, argument 122 *blend = xa_blends[XA_BLEND_OP_OVER]; 126 *blend = xa_blends[i]; 135 blend->rgb_src = xa_convert_blend_for_luminance(blend->rgb_src); 136 blend->rgb_dst = xa_convert_blend_for_luminance(blend->rgb_dst); 140 * If there's no dst alpha channel, adjust the blend op so that we'll treat 144 if (xa_format_a(dst_pic->pict_format) == 0 && blend->alpha_dst) { 145 if (blend 218 struct xa_composite_blend blend; local 259 struct pipe_blend_state blend; local 362 struct xa_composite_blend blend; local [all...] |
H A D | xa_yuv.c | 40 struct pipe_blend_state blend; local 42 memset(&blend, 0, sizeof(struct pipe_blend_state)); 43 blend.rt[0].blend_enable = 0; 44 blend.rt[0].colormask = PIPE_MASK_RGBA; 47 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE; 48 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE; 49 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO; 50 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ZERO; 52 cso_set_blend(r->cso, &blend);
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
H A D | nv04_state_raster.c | 200 nv04->blend &= NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP__MASK; 201 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_MASK_BIT_MSB | 205 nv04->blend |= get_blend_func(ctx->Color.Blend[0].DstRGB) << 28 | 209 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_BLEND_ENABLE; 213 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_GOURAUD; 215 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_FLAT; 219 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE; 223 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE;
|
H A D | nv04_context.h | 46 uint32_t blend; member in struct:nv04_context
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
H A D | pp_program.h | 43 struct pipe_blend_state blend; member in struct:program
|
H A D | pp_program.c | 87 p->blend.rt[0].colormask = PIPE_MASK_RGBA; 88 p->blend.rt[0].rgb_src_factor = p->blend.rt[0].alpha_src_factor = 90 p->blend.rt[0].rgb_dst_factor = p->blend.rt[0].alpha_dst_factor =
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_matrix_filter.h | 42 void *blend; member in struct:vl_matrix_filter
|
H A D | vl_median_filter.h | 50 void *blend; member in struct:vl_median_filter
|
H A D | vl_matrix_filter.c | 157 struct pipe_blend_state blend; local 177 memset(&blend, 0, sizeof blend); 178 blend.rt[0].rgb_func = PIPE_BLEND_ADD; 179 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE; 180 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ONE; 181 blend.rt[0].alpha_func = PIPE_BLEND_ADD; 182 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE; 183 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ONE; 184 blend [all...] |
H A D | vl_median_filter.c | 243 struct pipe_blend_state blend; local 263 memset(&blend, 0, sizeof blend); 264 blend.rt[0].rgb_func = PIPE_BLEND_ADD; 265 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE; 266 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ONE; 267 blend.rt[0].alpha_func = PIPE_BLEND_ADD; 268 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE; 269 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ONE; 270 blend [all...] |
/external/mesa3d/src/gallium/state_trackers/xorg/ |
H A D | xorg_composite.c | 70 blend_for_op(struct xorg_composite_blend *blend, argument 80 *blend = xorg_blends[BLEND_OP_OVER]; 84 *blend = xorg_blends[i]; 89 /* If there's no dst alpha channel, adjust the blend op so that we'll treat 92 PICT_FORMAT_A(pDstPicture->format) == 0 && blend->alpha_dst) { 93 if (blend->rgb_src == PIPE_BLENDFACTOR_DST_ALPHA) 94 blend->rgb_src = PIPE_BLENDFACTOR_ONE; 95 else if (blend->rgb_src == PIPE_BLENDFACTOR_INV_DST_ALPHA) 96 blend->rgb_src = PIPE_BLENDFACTOR_ZERO; 100 * the source blend facto 180 struct xorg_composite_blend blend; local 216 struct pipe_blend_state blend; local 333 struct xorg_composite_blend blend; local [all...] |
/external/skia/src/utils/ |
H A D | SkInterpolator.cpp | 42 <blend> 63 SkMSec nextTime, const SkScalar blend[4]) { 67 return blend ? 68 SkUnitCubicInterp(t, blend[0], blend[1], blend[2], blend[3]) : t; 162 const SkScalar values[], const SkScalar blend[4]) { 165 if (blend == nullptr) { 166 blend 62 ComputeRelativeT(SkMSec time, SkMSec prevTime, SkMSec nextTime, const SkScalar blend[4]) argument 161 setKeyFrame(int index, SkMSec time, const SkScalar values[], const SkScalar blend[4]) argument [all...] |
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
H A D | output.c | 571 struct pipe_blend_state blend; local 573 memset(&blend, 0, sizeof blend); 574 blend.independent_blend_enable = 0; 577 blend.rt[0].blend_enable = 1; 578 blend.rt[0].rgb_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_color); 579 blend.rt[0].rgb_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_color); 580 blend.rt[0].alpha_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_alpha); 581 blend.rt[0].alpha_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_alpha); 582 blend 641 void *blend; local 700 void *blend; local [all...] |
/external/freetype/src/psaux/ |
H A D | t1decode.h | 50 PS_Blend blend,
|