mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
gallivm: Fix more integer operations.
This commit is contained in:
parent
cd5af8c703
commit
12f5c0f9ce
1 changed files with 4 additions and 2 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue