Home
last modified time | relevance | path

Searched refs:src_factor (Results 1 – 12 of 12) sorted by relevance

/third_party/mesa3d/src/panfrost/lib/
Dpan_blend.c58 enum blend_factor src_factor, in is_2srcdest() argument
65 ((src_factor == BLEND_FACTOR_DST_COLOR) || in is_2srcdest()
66 ((src_factor == BLEND_FACTOR_DST_ALPHA) && is_alpha)) && in is_2srcdest()
74 enum blend_factor src_factor, in can_fixed_function_equation() argument
81 if (is_2srcdest(blend_func, src_factor, invert_src, in can_fixed_function_equation()
92 if (!factor_is_supported(src_factor) || in can_fixed_function_equation()
96 if (src_factor != dest_factor && in can_fixed_function_equation()
97 src_factor != BLEND_FACTOR_ZERO && in can_fixed_function_equation()
191 enum blend_factor src_factor, in to_panfrost_function() argument
198 assert(can_fixed_function_equation(blend_func, src_factor, invert_src, in to_panfrost_function()
[all …]
/third_party/mesa3d/src/panfrost/lib/tests/
Dtest-blend.c65 RGBA(src_factor, BLEND_FACTOR_SRC_ALPHA),
84 RGBA(src_factor, BLEND_FACTOR_ZERO),
104 RGBA(src_factor, BLEND_FACTOR_SRC_ALPHA),
123 RGBA(src_factor, BLEND_FACTOR_ZERO),
143 RGBA(src_factor, BLEND_FACTOR_SRC_ALPHA),
162 RGBA(src_factor, BLEND_FACTOR_ZERO),
194 RGBA(src_factor, BLEND_FACTOR_ZERO),
212 RGBA(src_factor, BLEND_FACTOR_DST_COLOR),
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_blend.c84 lp_build_blend_factor_complementary(unsigned src_factor, unsigned dst_factor) in lp_build_blend_factor_complementary() argument
89 return dst_factor == (src_factor ^ 0x10); in lp_build_blend_factor_complementary()
198 LLVMValueRef src_factor, in lp_build_blend() argument
210 return lp_build_lerp(bld, src_factor, dst, src, 0); in lp_build_blend()
218 result = lp_build_mul(bld, result, src_factor); in lp_build_blend()
228 result = lp_build_mul(bld, result, src_factor); in lp_build_blend()
243 return lp_build_mul(bld, result, src_factor); in lp_build_blend()
298 lp_build_mul_norm_expand(bld, src, src_factor, &src_terml, &src_termh, in lp_build_blend()
313 src_term = lp_build_mul(bld, src, src_factor); in lp_build_blend()
Dlp_bld_blend_aos.c378 LLVMValueRef src_factor, dst_factor; in lp_build_blend_aos() local
380 src_factor = lp_build_blend_factor(&bld, state->rgb_src_factor, in lp_build_blend_aos()
396 src_factor, in lp_build_blend_aos()
411 src_factor, in lp_build_blend_aos()
Dlp_bld_blend.h51 LLVMValueRef src_factor,
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_nir_lower_blend.c265 int src_factor = ((i != 3) ? blend->rgb_src_factor : in vc4_do_blending_f() local
272 src_factor, i)); in vc4_do_blending_f()
321 nir_ssa_def *src_factor = vc4_blend_channel_i(b, in vc4_do_blending_i() local
340 src_factor = vc4_nir_set_packed_chan(b, src_factor, in vc4_do_blending_i()
356 nir_ssa_def *src_blend = nir_umul_unorm_4x8_vc4(b, src_color, src_factor); in vc4_do_blending_i()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_shader.c122 .src_factor = BLEND_FACTOR_ZERO, in panvk_lower_blend()
132 options.rt[rt].rgb.src_factor = rt_state->equation.rgb_src_factor; in panvk_lower_blend()
137 options.rt[rt].alpha.src_factor = rt_state->equation.alpha_src_factor; in panvk_lower_blend()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_blend.h38 enum blend_factor src_factor; member
Dnir_lower_blend.c343 chan.src_factor, chan.invert_src_factor); in nir_blend()
/third_party/mesa3d/src/gallium/drivers/asahi/
Dagx_state.c136 .src_factor = BLEND_FACTOR_ZERO, in agx_create_blend_state()
146 so->rt[i].rgb.src_factor = util_blend_factor_to_shader(rt.rgb_src_factor); in agx_create_blend_state()
152 so->rt[i].alpha.src_factor = util_blend_factor_to_shader(rt.alpha_src_factor); in agx_create_blend_state()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c424 static void si_blend_remove_dst(unsigned *func, unsigned *src_factor, unsigned *dst_factor, in si_blend_remove_dst() argument
427 if (*src_factor == expected_dst && *dst_factor == PIPE_BLENDFACTOR_ZERO) { in si_blend_remove_dst()
428 *src_factor = PIPE_BLENDFACTOR_ZERO; in si_blend_remove_dst()
/third_party/mesa3d/src/amd/vulkan/
Dradv_pipeline.c421 si_blend_remove_dst(unsigned *func, unsigned *src_factor, unsigned *dst_factor, in si_blend_remove_dst() argument
424 if (*src_factor == expected_dst && *dst_factor == V_028780_BLEND_ZERO) { in si_blend_remove_dst()
425 *src_factor = V_028780_BLEND_ZERO; in si_blend_remove_dst()