Lines Matching defs:loads
1508 * fixups suitable for vertex fetch, using non-format buffer loads.
1555 LLVMValueRef loads[32]; /* up to 32 bytes */
1562 loads[i] =
1566 loads[i] = ac_to_integer(ctx, loads[i]);
1576 tmp = LLVMBuildZExt(ctx->builder, loads[src], dst_type, "");
1584 loads[dst] = accum;
1590 LLVMValueRef loaded = loads[0];
1597 loads[i] = LLVMBuildExtractElement(ctx->builder, loaded, tmp, "");
1607 LLVMValueRef loaded = loads[src - 1];
1612 loads[dst - 1] = LLVMBuildTrunc(ctx->builder, tmp, dst_type, "");
1621 tmp = ac_build_gather_values(ctx, &loads[2 * i], 2);
1622 loads[i] = LLVMBuildBitCast(ctx->builder, tmp, ctx->f64, "");
1626 LLVMValueRef data = loads[0];
1633 loads[0] = ac_to_integer(ctx, ac_ufN_to_float(ctx, r, 5, 6));
1634 loads[1] = ac_to_integer(ctx, ac_ufN_to_float(ctx, g, 5, 6));
1635 loads[2] = ac_to_integer(ctx, ac_ufN_to_float(ctx, b, 5, 5));
1642 LLVMValueRef data = loads[0];
1645 loads[0] = LLVMBuildTrunc(ctx->builder, data, i10, "");
1647 loads[1] = LLVMBuildTrunc(ctx->builder, tmp, i10, "");
1649 loads[2] = LLVMBuildTrunc(ctx->builder, tmp, i10, "");
1651 loads[3] = LLVMBuildTrunc(ctx->builder, tmp, i2, "");
1660 tmp = ac_to_float(ctx, loads[chan]);
1665 loads[chan] = ac_to_integer(ctx, tmp);
1671 loads[chan] = LLVMBuildZExt(ctx->builder, loads[chan], ctx->i32, "");
1676 loads[chan] = LLVMBuildSExt(ctx->builder, loads[chan], ctx->i32, "");
1684 tmp = LLVMBuildUIToFP(ctx->builder, loads[chan], ctx->f32, "");
1686 tmp = LLVMBuildSIToFP(ctx->builder, loads[chan], ctx->f32, "");
1694 unsigned bits = LLVMGetIntTypeWidth(LLVMTypeOf(loads[chan]));
1697 unsigned bits = LLVMGetIntTypeWidth(LLVMTypeOf(loads[chan]));
1710 loads[chan] = ac_to_integer(ctx, tmp);
1716 loads[num_channels] = num_channels == 3 ? ctx->i32_1 : ctx->i32_0;
1718 loads[num_channels] = ac_to_integer(ctx, num_channels == 3 ? ctx->f32_1 : ctx->f32_0);
1724 tmp = loads[0];
1725 loads[0] = loads[2];
1726 loads[2] = tmp;
1729 return ac_build_gather_values(ctx, loads, 4);