Lines Matching defs:plane
224 get_ucp(nir_builder *b, int plane,
229 snprintf(tmp, ARRAY_SIZE(tmp), "gl_ClipPlane%dMESA", plane);
238 clipplane_state_tokens[plane],
242 return nir_load_user_clip_plane(b, plane);
272 for (int plane = 0; plane < MAX_CLIP_PLANES; plane++) {
273 if (ucp_enables & (1 << plane)) {
274 nir_ssa_def *ucp = get_ucp(b, plane, clipplane_state_tokens);
276 /* calculate clipdist[plane] - dot(ucp, cv): */
277 clipdist[plane] = nir_fdot(b, ucp, cv);
280 clipdist[plane] = nir_imm_float(b, 0.0);
282 if (use_clipdist_array && use_vars && plane < util_last_bit(ucp_enables)) {
286 plane);
287 nir_store_deref(b, deref, clipdist[plane], 1);
457 for (int plane = 0; plane < MAX_CLIP_PLANES; plane++) {
458 if (ucp_enables & (1 << plane)) {
461 cond = nir_flt(&b, clipdist[plane], nir_imm_float(&b, 0.0));