summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-03 19:32:57 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:22 +0100
commit5778970f15af253ce9d279516287602f28153548 (patch)
treec4805a572f28b3dd1cbb3fb38e3b2eef41470f46 /src/gallium/drivers
parent02eaa32d83637d6f60685afe5d29aeb06345e60e (diff)
llvmpipe: Minor comments / debug mnemonics.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_blend.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_blend.c b/src/gallium/drivers/llvmpipe/lp_bld_blend.c
index 552e3bfd98..31dbee7d6e 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_blend.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_blend.c
@@ -241,6 +241,9 @@ lp_build_blend_swizzle(struct lp_build_blend_context *bld,
}
+/**
+ * @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,
@@ -264,6 +267,9 @@ lp_build_blend_factor(struct lp_build_blend_context *bld,
}
+/**
+ * @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,
@@ -323,6 +329,11 @@ lp_build_blend(LLVMBuilderRef builder,
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);
}