Lines Matching defs:mode
272 if (var->data.mode != nir_var_shader_out)
336 needs_edge_flag_fix(enum pipe_prim_type mode)
338 return (mode == PIPE_PRIM_QUADS ||
339 mode == PIPE_PRIM_QUAD_STRIP ||
340 mode == PIPE_PRIM_POLYGON);
351 (dinfo->mode != PIPE_PRIM_TRIANGLES &&
352 dinfo->mode != PIPE_PRIM_TRIANGLE_STRIP))
355 /* D3D12 supports line mode (wireframe) but doesn't support edge flags */
398 return ((dinfo->mode == PIPE_PRIM_POINTS ||
423 if (dinfo->mode == GL_PATCHES) {
437 enum pipe_prim_type mode;
440 mode = (enum pipe_prim_type)last_vertex_stage->current->nir->info.gs.output_primitive;
443 mode = (enum pipe_prim_type)dinfo->mode;
451 *alternate = (mode == GL_TRIANGLE_STRIP || mode == GL_TRIANGLE_STRIP_ADJACENCY) &&
453 gs->initial->info.gs.vertices_out > u_prim_vertex_count(mode)->min);
454 return flatshade_first ? 0 : u_prim_vertex_count(mode)->min - 1;
509 unsigned slot, unsigned slot_frac, nir_variable_mode mode, bool patch)
515 mode == nir_var_shader_in ? "in_%d" : "out_%d",
517 var = nir_variable_create(nir, mode, info->slots[slot].types[slot_frac], tmp);
527 if (mode == nir_var_shader_out)
535 unsigned slot, nir_variable_mode mode, bool patch)
539 create_varying_from_info(nir, info, slot, u_bit_scan(&mask), mode, patch);