projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd5af8c
)
gallivm: Fix more integer operations.
author
José Fonseca
<jfonseca@vmware.com>
Sun, 8 Aug 2010 21:18:53 +0000
(22:18 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Sun, 8 Aug 2010 21:18:53 +0000
(22:18 +0100)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 048b29929a4897729f29f19439a4392ab32f67c0..42d796cb958c4126b3339e21a80443cc2658ef26 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@
-489,7
+489,7
@@
get_indirect_offsets(struct lp_build_tgsi_soa_context *bld,
int_vec_type, "");
/* addr_vec = addr_vec * 4 */
- addr_vec = lp_build_mul(&bld->
base
, addr_vec, vec4);
+ addr_vec = lp_build_mul(&bld->
int_bld
, addr_vec, vec4);
return addr_vec;
}
@@
-773,7
+773,9
@@
emit_store(
addr = LLVMBuildExtractElement(bld->base.builder,
addr, LLVMConstInt(LLVMInt32Type(), 0, 0),
"");
- addr = lp_build_mul(&bld->base, addr, LLVMConstInt(LLVMInt32Type(), 4, 0));
+ addr = LLVMBuildMul(bld->base.builder,
+ addr, LLVMConstInt(LLVMInt32Type(), 4, 0),
+ "");
}
switch( reg->Register.File ) {