Lines Matching defs:mode
48 prim_is_points_or_lines(enum pipe_prim_type mode)
53 return mode == PIPE_PRIM_POINTS ||
54 mode == PIPE_PRIM_LINES ||
55 mode == PIPE_PRIM_LINE_LOOP ||
56 mode == PIPE_PRIM_LINE_STRIP;
91 switch (draw->mode) {
109 * Record the current primitive mode and restart information, flagging
121 enum pipe_prim_type mode = info->mode;
127 if (mode == PIPE_PRIM_QUAD_STRIP && !rs_state->flatshade &&
130 mode = PIPE_PRIM_TRIANGLE_STRIP;
131 if (mode == PIPE_PRIM_QUADS &&
136 mode = PIPE_PRIM_TRIANGLE_FAN;
139 if (ice->state.prim_mode != mode) {
140 ice->state.prim_mode = mode;
142 enum pipe_prim_type reduced = u_reduced_prim(mode);
161 bool points_or_lines = prim_is_points_or_lines(mode);
168 if (info->mode == PIPE_PRIM_PATCHES &&
399 if (info->mode == PIPE_PRIM_QUADS || info->mode == PIPE_PRIM_QUAD_STRIP) {
400 bool trim = u_trim_pipe_prim(info->mode, (unsigned *)&draws[0].count);