Lines Matching defs:pos
54 static void ac_analyze_position_w(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
66 neg_w = LLVMBuildFCmp(builder, LLVMRealOLT, pos[i][3], ctx->f32_0, "");
76 static LLVMValueRef ac_cull_face(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
91 LLVMValueRef det_t0 = LLVMBuildFSub(builder, pos[2][0], pos[0][0], "");
92 LLVMValueRef det_t1 = LLVMBuildFSub(builder, pos[1][1], pos[0][1], "");
93 LLVMValueRef det_t2 = LLVMBuildFSub(builder, pos[0][0], pos[1][0], "");
94 LLVMValueRef det_t3 = LLVMBuildFSub(builder, pos[0][1], pos[2][1], "");
144 static void cull_bbox(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
170 bbox_min[chan] = ac_build_fmin(ctx, pos[0][chan], pos[1][chan]);
171 bbox_max[chan] = ac_build_fmax(ctx, pos[0][chan], pos[1][chan]);
174 bbox_min[chan] = ac_build_fmin(ctx, bbox_min[chan], pos[2][chan]);
175 bbox_max[chan] = ac_build_fmax(ctx, bbox_max[chan], pos[2][chan]);
270 v0[chan] = ac_build_fmad(ctx, pos[0][chan], vp_scale[chan], vp_translate[chan]);
271 v1[chan] = ac_build_fmad(ctx, pos[1][chan], vp_scale[chan], vp_translate[chan]);
323 * \param pos Vertex positions 3x vec4
337 void ac_cull_primitive(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
344 ac_analyze_position_w(ctx, pos, &w, options->num_vertices);
353 ac_cull_face(ctx, pos, &w, options->cull_front, options->cull_back, options->cull_zero_area),
357 cull_bbox(ctx, pos, accepted, &w, vp_scale, vp_translate, small_prim_precision,