summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld_blend.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-01-12 17:07:37 -0800
committerRoland Scheidegger <sroland@vmware.com>2013-01-18 09:14:52 -0800
commit8c84a82383fe56bc1a8977ce42de36f71ffc108e (patch)
tree478af6cf8f83cb0855825c8d4413de2ef572e3bb /src/gallium/drivers/llvmpipe/lp_bld_blend.h
parentca39c0f94a4e3cc25b6cc9507fb729b85140733a (diff)
llvmpipe: fix using wrong format with MRT in blend code
We were passing in the rt index however this was always 0 for non-independent blend case. (The format was only actually used to decide if the color mask covered all channels so this went unnoticed and was discovered by accident.) Additionally, there was a second problem because we do fixups in the key based on color buffer format we cannot use non-independent blend anyway as the fixed up values would never get used. So always turn non-independent blending into independent. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_blend.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_blend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_blend.h b/src/gallium/drivers/llvmpipe/lp_bld_blend.h
index 0a1cea1153c..3a3be815aee 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_blend.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_blend.h
@@ -56,7 +56,7 @@ lp_build_blend(struct lp_build_context *bld,
LLVMValueRef
lp_build_blend_aos(struct gallivm_state *gallivm,
const struct pipe_blend_state *blend,
- const enum pipe_format *cbuf_format,
+ const enum pipe_format cbuf_format,
struct lp_type type,
unsigned rt,
LLVMValueRef src,