}
+/**
+ * @sa http://www.opengl.org/sdk/docs/man/xhtml/glBlendFuncSeparate.xml
+ */
static LLVMValueRef
lp_build_blend_factor(struct lp_build_blend_context *bld,
LLVMValueRef factor1,
}
+/**
+ * @sa http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquationSeparate.xml
+ */
static LLVMValueRef
lp_build_blend_func(struct lp_build_blend_context *bld,
unsigned func,
src_term = lp_build_blend_factor(&bld, src, blend->rgb_src_factor, blend->alpha_src_factor, alpha_swizzle);
dst_term = lp_build_blend_factor(&bld, dst, blend->rgb_dst_factor, blend->alpha_dst_factor, alpha_swizzle);
+#ifdef DEBUG
+ LLVMSetValueName(src_term, "src_term");
+ LLVMSetValueName(dst_term, "dst_term");
+#endif
+
if(blend->rgb_func == blend->alpha_func) {
return lp_build_blend_func(&bld, blend->rgb_func, src_term, dst_term);
}