gallivm: rename a var
This commit is contained in:
@@ -391,15 +391,16 @@ emit_ddy(struct lp_build_tgsi_soa_context *bld,
|
|||||||
static LLVMValueRef
|
static LLVMValueRef
|
||||||
get_temp_ptr(struct lp_build_tgsi_soa_context *bld,
|
get_temp_ptr(struct lp_build_tgsi_soa_context *bld,
|
||||||
unsigned index,
|
unsigned index,
|
||||||
unsigned swizzle,
|
unsigned chan,
|
||||||
boolean is_indirect,
|
boolean is_indirect,
|
||||||
LLVMValueRef addr)
|
LLVMValueRef addr)
|
||||||
{
|
{
|
||||||
|
assert(chan < 4);
|
||||||
if (!bld->has_indirect_addressing) {
|
if (!bld->has_indirect_addressing) {
|
||||||
return bld->temps[index][swizzle];
|
return bld->temps[index][chan];
|
||||||
} else {
|
} else {
|
||||||
LLVMValueRef lindex =
|
LLVMValueRef lindex =
|
||||||
LLVMConstInt(LLVMInt32Type(), index*4 + swizzle, 0);
|
LLVMConstInt(LLVMInt32Type(), index * 4 + chan, 0);
|
||||||
if (is_indirect)
|
if (is_indirect)
|
||||||
lindex = lp_build_add(&bld->base, lindex, addr);
|
lindex = lp_build_add(&bld->base, lindex, addr);
|
||||||
return LLVMBuildGEP(bld->base.builder, bld->temps_array, &lindex, 1, "");
|
return LLVMBuildGEP(bld->base.builder, bld->temps_array, &lindex, 1, "");
|
||||||
|
Reference in New Issue
Block a user