Home
last modified time | relevance | path

Searched refs:alpha_func (Results 1 – 25 of 85) sorted by relevance

1234

/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_blend.c92 blend->rt[0].rgb_func != blend->rt[0].alpha_func ? "true" : "false", in write_tsv_row()
101 util_str_blend_func(blend->rt[0].alpha_func, TRUE), in write_tsv_row()
125 "alpha_func", util_str_blend_func(blend->rt[0].alpha_func, TRUE), in dump_blend_type()
411 switch (blend->rt[0].alpha_func) { in compute_blend_ref()
642 const unsigned *alpha_func; in test_all() local
650 for(alpha_func = blend_funcs; alpha_func < &blend_funcs[num_funcs]; ++alpha_func) { in test_all()
666 blend.rt[0].alpha_func = *alpha_func; in test_all()
693 const unsigned *alpha_func; in test_some() local
703 alpha_func = &blend_funcs[rand() % num_funcs]; in test_some()
722 blend.rt[0].alpha_func = *alpha_func; in test_some()
Dlp_bld_blend.c67 lp_build_blend_func_reverse(unsigned rgb_func, unsigned alpha_func) in lp_build_blend_func_reverse() argument
69 if (rgb_func == alpha_func) in lp_build_blend_func_reverse()
71 if (rgb_func == PIPE_BLEND_SUBTRACT && alpha_func == PIPE_BLEND_REVERSE_SUBTRACT) in lp_build_blend_func_reverse()
73 if (rgb_func == PIPE_BLEND_REVERSE_SUBTRACT && alpha_func == PIPE_BLEND_SUBTRACT) in lp_build_blend_func_reverse()
Dlp_bld_blend.h97 unsigned alpha_func);
Dlp_bld_blend_aos.c399 if (state->rgb_func != state->alpha_func && nr_channels > 1 && in lp_build_blend_aos()
404 state->alpha_func, in lp_build_blend_aos()
/third_party/mesa3d/src/panfrost/lib/tests/
Dtest-blend.c212 .alpha_func = BLEND_FUNC_ADD,
233 .alpha_func = BLEND_FUNC_ADD,
254 .alpha_func = BLEND_FUNC_ADD,
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_blend.c69 rt0->alpha_func == PIPE_BLEND_ADD); in etna_blend_state_create()
79 rt0->rgb_func == rt0->alpha_func); in etna_blend_state_create()
90 VIVS_PE_ALPHA_CONFIG_EQ_ALPHA(rt0->alpha_func); in etna_blend_state_create()
Detnaviv_zsa.c103 VIVS_PE_ALPHA_OP_ALPHA_FUNC(so->alpha_func) | in etna_zsa_state_create()
/third_party/mesa3d/src/panfrost/lib/
Dpan_blend.c153 can_fixed_function_equation(equation.alpha_func, in pan_blend_can_fixed_function()
305 (equation.alpha_func == BLEND_FUNC_ADD || in pan_blend_is_opaque()
306 equation.alpha_func == BLEND_FUNC_SUBTRACT); in pan_blend_is_opaque()
360 to_panfrost_function(equation.alpha_func, in pan_blend_to_fixed_function_equation()
474 assert(rt_state->equation.alpha_func < ARRAY_SIZE(funcs)); in get_equation_str()
478 funcs[rt_state->equation.alpha_func], in get_equation_str()
565 options.rt[0].alpha.func = rt_state->equation.alpha_func; in GENX()
Dpan_blend.h47 enum blend_func alpha_func : 3; member
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_state_inlines.h171 static inline uint32_t r300_translate_alpha_function(int alpha_func) in r300_translate_alpha_function() argument
173 switch (alpha_func) { in r300_translate_alpha_function()
191 fprintf(stderr, "r300: Unknown alpha function %d", alpha_func); in r300_translate_alpha_function()
Dr300_emit.c88 uint32_t alpha_func = dsa->alpha_function; in r300_emit_dsa_state() local
92 if (is_r500 && (alpha_func & R300_FG_ALPHA_FUNC_ENABLE)) { in r300_emit_dsa_state()
98 alpha_func |= R500_FG_ALPHA_FUNC_FP16_ENABLE; in r300_emit_dsa_state()
100 alpha_func |= R500_FG_ALPHA_FUNC_8BIT; in r300_emit_dsa_state()
107 alpha_func |= R300_FG_ALPHA_FUNC_MASK_ENABLE | in r300_emit_dsa_state()
112 OUT_CS_REG(R300_FG_ALPHA_FUNC, alpha_func); in r300_emit_dsa_state()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_zsa.c192 if (cso->alpha_func != PIPE_FUNC_ALWAYS) { in fd6_zsa_state_create()
201 A6XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC(cso->alpha_func); in fd6_zsa_state_create()
/third_party/mesa3d/src/gallium/frontends/nine/
Dnine_pipe.c68 dsa.alpha_func = d3dcmpfunc_to_pipe_func(rs[D3DRS_ALPHAFUNC]); in nine_convert_dsa_state()
178 blend.rt[0].alpha_func = d3dblendop_to_pipe_blend(rs[D3DRS_BLENDOPALPHA]); in nine_convert_blend_state()
183 blend.rt[0].alpha_func = blend.rt[0].rgb_func; in nine_convert_blend_state()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_zsa.c91 A3XX_RB_RENDER_CONTROL_ALPHA_TEST_FUNC(cso->alpha_func); in fd3_zsa_state_create()
Dfd3_blend.c93 blend_func(rt->alpha_func)) | in fd3_blend_state_create()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_zsa.c88 so->rb_colorcontrol = A2XX_RB_COLORCONTROL_ALPHA_FUNC(cso->alpha_func) | in fd2_zsa_state_create()
Dfd2_blend.c95 A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN(blend_func(rt->alpha_func)) | in fd2_blend_state_create()
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_zsa.c95 A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC(cso->alpha_func); in fd4_zsa_state_create()
Dfd4_blend.c93 blend_func(rt->alpha_func)) | in fd4_blend_state_create()
/third_party/mesa3d/src/gallium/include/pipe/
Dp_state.h331 unsigned alpha_func:3; /**< PIPE_FUNC_x */ member
352 unsigned alpha_func:3; /**< PIPE_BLEND_x */ member
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_blend.c96 blend_func(rt->alpha_func)) | in fd5_blend_state_create()
Dfd5_zsa.c112 A5XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC(cso->alpha_func); in fd5_zsa_state_create()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DOutputMerger.cpp583 state.rt[0].alpha_func = translateBlendOp(pBlendDesc->BlendOpAlpha); in CreateBlendState()
600 state.rt[i].alpha_func = state.rt[0].alpha_func; in CreateBlendState()
655 state.rt[i].alpha_func = translateBlendOp(pBlendDesc->RenderTarget[i].BlendOpAlpha); in CreateBlendState1()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_nir_lower_blend.c282 blend->alpha_func)); in vc4_do_blending_f()
361 if (alpha_chan != 4 && blend->alpha_func != blend->rgb_func) { in vc4_do_blending_i()
365 blend->alpha_func); in vc4_do_blending_i()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_depth.c134 dsa->alpha_func = func_to_gallium(ctx->Color.AlphaFunc); in st_update_depth_stencil_alpha()

1234