Lines Matching refs:blend

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->rt[0].rgb_src_factor, TRUE),
116 util_dump_blend_factor(blend->rt[0].rgb_dst_factor, TRUE),
117 util_dump_blend_func(blend->rt[0].alpha_func, TRUE),
118 util_dump_blend_factor(blend->rt[0].alpha_src_factor, TRUE),
119 util_dump_blend_factor(blend->rt[0].alpha_dst_factor, TRUE));
127 const struct pipe_blend_state *blend,
141 "rgb_func", util_dump_blend_func(blend->rt[0].rgb_func, TRUE),
142 "rgb_src_factor", util_dump_blend_factor(blend->rt[0].rgb_src_factor, TRUE),
143 "rgb_dst_factor", util_dump_blend_factor(blend->rt[0].rgb_dst_factor, TRUE),
144 "alpha_func", util_dump_blend_func(blend->rt[0].alpha_func, TRUE),
145 "alpha_src_factor", util_dump_blend_factor(blend->rt[0].alpha_src_factor, TRUE),
146 "alpha_dst_factor", util_dump_blend_factor(blend->rt[0].alpha_dst_factor, TRUE));
155 const struct pipe_blend_state *blend,
198 res = lp_build_blend_aos(gallivm, blend, &format, type, rt, src, dst, NULL, con, swizzle);
222 lp_build_blend_soa(gallivm, blend, type, rt, src, dst, con, res);
385 compute_blend_ref(const struct pipe_blend_state *blend,
394 compute_blend_ref_term(blend->rt[0].rgb_src_factor, blend->rt[0].alpha_src_factor,
396 compute_blend_ref_term(blend->rt[0].rgb_dst_factor, blend->rt[0].alpha_dst_factor,
402 switch (blend->rt[0].rgb_func) {
435 switch (blend->rt[0].alpha_func) {
461 const struct pipe_blend_state *blend,
476 dump_blend_type(stdout, blend, mode, type);
480 func = add_blend_test(gallivm, blend, mode, type);
514 compute_blend_ref(blend, fsrc + j, fdst + j, fcon + j, fref + j);
529 dump_blend_type(stderr, blend, mode, type);
592 compute_blend_ref(blend, fsrc, fdst, fcon, fref);
614 dump_blend_type(stderr, blend, mode, type);
681 write_tsv_row(fp, blend, mode, type, cycles_avg, success);
750 struct pipe_blend_state blend;
768 memset(&blend, 0, sizeof blend);
769 blend.rt[0].blend_enable = 1;
770 blend.rt[0].rgb_func = *rgb_func;
771 blend.rt[0].rgb_src_factor = *rgb_src_factor;
772 blend.rt[0].rgb_dst_factor = *rgb_dst_factor;
773 blend.rt[0].alpha_func = *alpha_func;
774 blend.rt[0].alpha_src_factor = *alpha_src_factor;
775 blend.rt[0].alpha_dst_factor = *alpha_dst_factor;
776 blend.rt[0].colormask = PIPE_MASK_RGBA;
778 if(!test_one(verbose, fp, &blend, mode, *type))
804 struct pipe_blend_state blend;
828 memset(&blend, 0, sizeof blend);
829 blend.rt[0].blend_enable = 1;
830 blend.rt[0].rgb_func = *rgb_func;
831 blend.rt[0].rgb_src_factor = *rgb_src_factor;
832 blend.rt[0].rgb_dst_factor = *rgb_dst_factor;
833 blend.rt[0].alpha_func = *alpha_func;
834 blend.rt[0].alpha_src_factor = *alpha_src_factor;
835 blend.rt[0].alpha_dst_factor = *alpha_dst_factor;
836 blend.rt[0].colormask = PIPE_MASK_RGBA;
838 if(!test_one(verbose, fp, &blend, mode, *type))