Home | History | Annotate | Download | only in draw

Lines Matching full:builder

428             LLVMBuilderRef builder,
475 out = LLVMBuildLoad(builder, outputs[attrib][chan], "");
477 builder, out, outputs[attrib][chan]);
482 LLVMBuildStore(builder, bld.zero, outputs[attrib][chan]);
484 LLVMBuildStore(builder, bld.one, outputs[attrib][chan]);
505 LLVMBuilderRef builder = gallivm->builder;
509 LLVMValueRef vbuffer_ptr = LLVMBuildGEP(builder, vbuffers_ptr,
517 index = LLVMBuildUDiv(builder, instance_id,
522 stride = LLVMBuildMul(builder, vb_stride, index, "");
524 vbuffer_ptr = LLVMBuildLoad(builder, vbuffer_ptr, "vbuffer");
526 stride = LLVMBuildAdd(builder, stride,
529 stride = LLVMBuildAdd(builder, stride,
534 vbuffer_ptr = LLVMBuildGEP(builder, vbuffer_ptr, &stride, 1, "");
585 LLVMBuilderRef builder = gallivm->builder;
597 data_ptr = LLVMBuildGEP(builder, data_ptr, indices, 3, "");
598 data_ptr = LLVMBuildPointerCast(builder, data_ptr, data_ptr_type, "");
601 lp_set_store_alignment(LLVMBuildStore(builder, value, data_ptr), sizeof(float));
615 LLVMBuilderRef builder = gallivm->builder;
626 io_ptrs[i] = LLVMBuildGEP(builder, io_ptr, &inds[i], 1, "");
644 cliptmp = LLVMBuildOr(builder, val, clipmask, "");
647 val = LLVMBuildExtractElement(builder, cliptmp, inds[i], "");
648 LLVMBuildStore(builder, val, id_ptr);
672 LLVMBuilderRef builder = gallivm->builder;
683 LLVMValueRef out = LLVMBuildLoad(builder, outputs[attrib][chan], "");
738 LLVMBuilderRef builder = gallivm->builder;
752 io_ptrs[i] = LLVMBuildGEP(builder, io_ptr, &inds[i], 1, "");
755 soa[0] = LLVMBuildLoad(builder, outputs[idx][0], ""); /*x0 x1 .. xn*/
756 soa[1] = LLVMBuildLoad(builder, outputs[idx][1], ""); /*y0 y1 .. yn*/
757 soa[2] = LLVMBuildLoad(builder, outputs[idx][2], ""); /*z0 z1 .. zn*/
758 soa[3] = LLVMBuildLoad(builder, outputs[idx][3], ""); /*w0 w1 .. wn*/
782 clip_ptr = LLVMBuildGEP(builder, clip_ptrs[j], indices, 2, "clipo");
783 clip_ptr = LLVMBuildPointerCast(builder, clip_ptr, clip_ptr_type, "");
786 lp_set_store_alignment(LLVMBuildStore(builder, aos[j], clip_ptr), sizeof(float));
796 LLVMBuilderRef builder,
805 LLVMValueRef out3 = LLVMBuildLoad(builder, outputs[0][3], ""); /*w0 w1 .. wn*/
810 out3 = LLVMBuildFDiv(builder, const1, out3, "");
811 LLVMBuildStore(builder, out3, outputs[0][3]);
815 LLVMValueRef out = LLVMBuildLoad(builder, outputs[0][i], ""); /*x0 x1 .. xn*/
823 scale_i = LLVMBuildGEP(builder, vp_ptr, &index, 1, "");
826 trans_i = LLVMBuildGEP(builder, vp_ptr, &index, 1, "");
829 LLVMBuildLoad(builder, scale_i, "scale"));
831 LLVMBuildLoad(builder, trans_i, "trans"));
834 out = LLVMBuildFMul(builder, out, out3, "");
836 out = LLVMBuildFMul(builder, out, scale, "");
838 out = LLVMBuildFAdd(builder, out, trans, "");
841 LLVMBuildStore(builder, out, outputs[0][i]);
863 LLVMBuilderRef builder = gallivm->builder;
893 pos_x = LLVMBuildLoad(builder, outputs[pos][0], ""); /*x0 x1 .. xn */
894 pos_y = LLVMBuildLoad(builder, outputs[pos][1], ""); /*y0 y1 .. yn */
895 pos_z = LLVMBuildLoad(builder, outputs[pos][2], ""); /*z0 z1 .. zn */
896 pos_w = LLVMBuildLoad(builder, outputs[pos][3], ""); /*w0 w1 .. wn */
899 cv_x = LLVMBuildLoad(builder, outputs[cv][0], ""); /*x0 x1 .. xn */
900 cv_y = LLVMBuildLoad(builder, outputs[cv][1], ""); /*y0 y1 .. yn */
901 cv_z = LLVMBuildLoad(builder, outputs[cv][2], ""); /*z0 z1 .. zn */
902 cv_w = LLVMBuildLoad(builder, outputs[cv][3], ""); /*w0 w1 .. wn */
915 test = LLVMBuildAnd(builder, test, temp, "");
919 test = LLVMBuildFAdd(builder, pos_x, pos_w, "");
921 temp = LLVMBuildShl(builder, temp, shift, "");
922 test = LLVMBuildAnd(builder, test, temp, "");
923 mask = LLVMBuildOr(builder, mask, test, "");
927 temp = LLVMBuildShl(builder, temp, shift, "");
928 test = LLVMBuildAnd(builder, test, temp, "");
929 builder, mask, test, "");
932 test = LLVMBuildFAdd(builder, pos_y, pos_w, "");
934 temp = LLVMBuildShl(builder, temp, shift, "");
935 test = LLVMBuildAnd(builder, test, temp, "");
936 mask = LLVMBuildOr(builder, mask, test, "");
944 test = LLVMBuildAnd(builder, test, temp, "");
945 mask = LLVMBuildOr(builder, mask, test, "");
949 test = LLVMBuildFAdd(builder, pos_z, pos_w, "");
951 test = LLVMBuildAnd(builder, test, temp, "");
952 mask = LLVMBuildOr(builder, mask, test, "");
956 temp = LLVMBuildShl(builder, temp, shift, "");
957 test = LLVMBuildAnd(builder, test, temp, "");
958 mask = LLVMBuildOr(builder, mask, test, "");
978 clipdist = LLVMBuildLoad(builder, outputs[cd[0]][i], "");
980 clipdist = LLVMBuildLoad(builder, outputs[cd[1]][i-4], "");
984 test = LLVMBuildAnd(builder, test, temp, "");
985 mask = LLVMBuildOr(builder, mask, test, "");
992 plane_ptr = LLVMBuildGEP(builder, planes_ptr, indices, 3, "");
993 plane1 = LLVMBuildLoad(builder, plane_ptr, "plane_x");
995 sum = LLVMBuildFMul(builder, planes, cv_x, "");
998 plane_ptr = LLVMBuildGEP(builder, planes_ptr, indices, 3, "");
999 plane1 = LLVMBuildLoad(builder, plane_ptr, "plane_y");
1001 test = LLVMBuildFMul(builder, planes, cv_y, "");
1002 sum = LLVMBuildFAdd(builder, sum, test, "");
1005 plane_ptr = LLVMBuildGEP(builder, planes_ptr, indices, 3, "");
1006 plane1 = LLVMBuildLoad(builder, plane_ptr, "plane_z");
1008 test = LLVMBuildFMul(builder, planes, cv_z, "");
1009 sum = LLVMBuildFAdd(builder, sum, test, "");
1012 plane_ptr = LLVMBuildGEP(builder, planes_ptr, indices, 3, "");
1013 plane1 = LLVMBuildLoad(builder, plane_ptr, "plane_w");
1015 test = LLVMBuildFMul(builder, planes, cv_w, "");
1016 sum = LLVMBuildFAdd(builder, sum, test, "");
1020 test = LLVMBuildAnd(builder, test, temp, "");
1021 mask = LLVMBuildOr(builder, mask, test, "");
1038 LLVMBuilderRef builder = gallivm->builder;
1040 LLVMValueRef clipmask_bool = LLVMBuildLoad(builder, clipmask_bool_ptr, "");
1050 temp = LLVMBuildExtractElement(builder, clipmask_bool,
1052 ret = LLVMBuildOr(builder, ret, temp, "");
1069 LLVMBuilderRef builder;
1162 builder = gallivm->builder;
1163 LLVMPositionBuilderAtEnd(builder, block);
1176 LLVMBuildStore(builder, lp_build_zero(gallivm, lp_int_type(vs_type)), clipmask_bool_ptr);
1193 fetch_max = LLVMBuildSub(builder, end, one, "fetch_max");
1206 io_itr = LLVMBuildSub(builder, lp_loop.counter, start, "");
1208 io = LLVMBuildGEP(builder, io_ptr, &io_itr, 1, "");
1216 LLVMBuildAdd(builder,
1227 fetch_ptr = LLVMBuildGEP(builder, fetch_elts,
1229 true_index = LLVMBuildLoad(builder, fetch_ptr, "fetch_elt");
1232 system_values.vertex_id = LLVMBuildInsertElement(gallivm->builder,
1239 LLVMValueRef vb = LLVMBuildGEP(builder, vb_ptr, &vb_index, 1, "");
1250 builder,
1265 LLVMValueRef temp = LLVMBuildLoad(builder, clipmask_bool_ptr, "");
1277 temp = LLVMBuildOr(builder, clipmask, temp, "");
1279 LLVMBuildStore(builder, temp, clipmask_bool_ptr);
1287 generate_viewport(variant, builder, vs_type, outputs, context_ptr);
1306 LLVMBuildRet(builder, ret);