summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-11-28 22:36:30 -0800
committerVinson Lee <[email protected]>2012-11-29 21:08:48 -0800
commitf126f34c1d1726336586da7f5a726546963a0f0a (patch)
treebb0ab0f3571aee67ad80fa48876d93c6a941889b /src/gallium
parent4430d44eac524e4910a01736edec34a0fbd428aa (diff)
llvmpipe: Fix incorrect sizeof.
Fixes sizeof not portable defects reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 83933bb426e..d6a05d2622b 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -1088,7 +1088,7 @@ convert_to_blend_type(struct gallivm_state *gallivm,
unsigned pixels = 16 / num_srcs;
bool is_arith;
- memcpy(dst, src, sizeof(LLVMValueRef*) * num_srcs);
+ memcpy(dst, src, sizeof(LLVMValueRef) * num_srcs);
lp_mem_type_from_format_desc(src_fmt, &mem_type);
lp_blend_type_from_format_desc(src_fmt, &blend_type);
@@ -1190,7 +1190,7 @@ convert_from_blend_type(struct gallivm_state *gallivm,
unsigned pixels = 16 / num_srcs;
bool is_arith;
- memcpy(dst, src, sizeof(LLVMValueRef*) * num_srcs);
+ memcpy(dst, src, sizeof(LLVMValueRef) * num_srcs);
lp_mem_type_from_format_desc(src_fmt, &mem_type);
lp_blend_type_from_format_desc(src_fmt, &blend_type);