const unsigned char *swizzle)
{
const unsigned char default_swizzle[4] = {0, 1, 2, 3};
- LLVMTypeRef elem_type;
LLVMValueRef elems[LP_MAX_VECTOR_LENGTH];
unsigned i;
assert(type.length % 4 == 0);
assert(type.length <= LP_MAX_VECTOR_LENGTH);
- elem_type = lp_build_elem_type(gallivm, type);
+ lp_build_elem_type(gallivm, type);
if(swizzle == NULL)
swizzle = default_swizzle;
unsigned target;
unsigned unit;
LLVMValueRef coords;
- LLVMValueRef ddx;
- LLVMValueRef ddy;
struct lp_derivatives derivs;
if (!bld->sampler) {
coords = lp_build_emit_fetch( &bld->bld_base, inst, 0 , LP_CHAN_ALL);
if (0 && modifier == LP_BLD_TEX_MODIFIER_EXPLICIT_DERIV) {
- ddx = lp_build_emit_fetch( &bld->bld_base, inst, 1 , LP_CHAN_ALL);
- ddy = lp_build_emit_fetch( &bld->bld_base, inst, 2 , LP_CHAN_ALL);
+ lp_build_emit_fetch( &bld->bld_base, inst, 1 , LP_CHAN_ALL);
+ lp_build_emit_fetch( &bld->bld_base, inst, 2 , LP_CHAN_ALL);
unit = inst->Src[3].Register.Index;
} else {
#if 0