Searched refs:stage (Results 1 - 25 of 112) sorted by relevance

12345

/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_cull.c29 * \brief Drawing stage for polygon culling
42 struct draw_stage stage; member in struct:cull_stage
48 static INLINE struct cull_stage *cull_stage( struct draw_stage *stage )
50 return (struct cull_stage *)stage;
54 static void cull_tri( struct draw_stage *stage, argument
57 const unsigned pos = draw_current_shader_position_output(stage->draw);
78 unsigned face = ((ccw == cull_stage(stage)->front_ccw) ?
82 if ((face & cull_stage(stage)->cull_face) == 0) {
83 /* triangle is not culled, pass to next stage */
84 stage
90 cull_first_tri( struct draw_stage *stage, struct prim_header *header ) argument
103 cull_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_unfilled.c29 * \brief Drawing stage for handling glPolygonMode(line/point).
43 struct draw_stage stage; member in struct:unfilled_stage
53 static INLINE struct unfilled_stage *unfilled_stage( struct draw_stage *stage )
55 return (struct unfilled_stage *)stage;
60 static void point( struct draw_stage *stage, argument
65 stage->next->point( stage->next, &tmp );
68 static void line( struct draw_stage *stage, argument
75 stage->next->line( stage
79 points( struct draw_stage *stage, struct prim_header *header ) argument
92 lines( struct draw_stage *stage, struct prim_header *header ) argument
133 unfilled_tri( struct draw_stage *stage, struct prim_header *header ) argument
159 unfilled_first_tri( struct draw_stage *stage, struct prim_header *header ) argument
174 unfilled_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_util.c40 draw_pipe_passthrough_point(struct draw_stage *stage, struct prim_header *header) argument
42 stage->next->point(stage->next, header);
46 draw_pipe_passthrough_line(struct draw_stage *stage, struct prim_header *header) argument
48 stage->next->line(stage->next, header);
52 draw_pipe_passthrough_tri(struct draw_stage *stage, struct prim_header *header) argument
54 stage->next->tri(stage->next, header);
69 boolean draw_alloc_temp_verts( struct draw_stage *stage, unsigne argument
114 struct draw_stage *stage = draw->pipeline.first; local
[all...]
H A Ddraw_pipe_offset.c42 struct draw_stage stage; member in struct:offset_stage
51 static INLINE struct offset_stage *offset_stage( struct draw_stage *stage )
53 return (struct offset_stage *) stage;
64 static void do_offset_tri( struct draw_stage *stage, argument
67 const unsigned pos = draw_current_shader_position_output(stage->draw);
68 struct offset_stage *offset = offset_stage(stage);
106 stage->next->tri( stage->next, header );
110 static void offset_tri( struct draw_stage *stage, argument
118 tmp.v[0] = dup_vert(stage, heade
126 offset_first_tri( struct draw_stage *stage, struct prim_header *header ) argument
142 offset_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_flatshade.c42 struct draw_stage stage; member in struct:flat_stage
60 flat_stage(struct draw_stage *stage) argument
62 return (struct flat_stage *) stage;
67 static INLINE void copy_colors( struct draw_stage *stage, argument
71 const struct flat_stage *flat = flat_stage(stage);
87 static INLINE void copy_colors2( struct draw_stage *stage, argument
92 const struct flat_stage *flat = flat_stage(stage);
112 static void flatshade_tri_0( struct draw_stage *stage, argument
121 tmp.v[1] = dup_vert(stage, header->v[1], 0);
122 tmp.v[2] = dup_vert(stage, heade
130 flatshade_tri_2( struct draw_stage *stage, struct prim_header *header ) argument
154 flatshade_line_0( struct draw_stage *stage, struct prim_header *header ) argument
167 flatshade_line_1( struct draw_stage *stage, struct prim_header *header ) argument
214 flatshade_first_tri( struct draw_stage *stage, struct prim_header *header ) argument
221 flatshade_first_line( struct draw_stage *stage, struct prim_header *header ) argument
229 flatshade_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_twoside.c39 struct draw_stage stage; member in struct:twoside_stage
46 static INLINE struct twoside_stage *twoside_stage( struct draw_stage *stage )
48 return (struct twoside_stage *)stage;
59 struct vertex_header *tmp = dup_vert( &twoside->stage, v, idx );
76 static void twoside_tri( struct draw_stage *stage, argument
79 struct twoside_stage *twoside = twoside_stage(stage);
93 stage->next->tri( stage->next, &tmp );
96 stage->next->tri( stage
102 twoside_first_tri( struct draw_stage *stage, struct prim_header *header ) argument
142 twoside_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_stipple.c49 struct draw_stage stage; member in struct:stipple_stage
57 stipple_stage(struct draw_stage *stage) argument
59 return (struct stipple_stage *) stage;
90 emit_segment(struct draw_stage *stage, struct prim_header *header, argument
93 struct vertex_header *v0new = dup_vert(stage, header->v[0], 0);
94 struct vertex_header *v1new = dup_vert(stage, header->v[1], 1);
98 screen_interp( stage->draw, v0new, t0, header->v[0], header->v[1] );
103 screen_interp( stage->draw, v1new, t1, header->v[0], header->v[1] );
107 stage->next->line( stage
120 stipple_line(struct draw_stage *stage, struct prim_header *header) argument
175 reset_stipple_counter(struct draw_stage *stage) argument
183 stipple_reset_point(struct draw_stage *stage, struct prim_header *header) argument
191 stipple_reset_tri(struct draw_stage *stage, struct prim_header *header) argument
200 stipple_first_line(struct draw_stage *stage, struct prim_header *header) argument
215 stipple_flush(struct draw_stage *stage, unsigned flags) argument
[all...]
H A Ddraw_pipe_wide_point.c66 struct draw_stage stage; /**< base class */ member in struct:widepoint_stage
83 widepoint_stage( struct draw_stage *stage )
85 return (struct widepoint_stage *)stage;
97 const struct draw_context *draw = wide->stage.draw;
120 static void widepoint_point( struct draw_stage *stage, argument
123 const struct widepoint_stage *wide = widepoint_stage(stage);
124 const unsigned pos = draw_current_shader_position_output(stage->draw);
125 const boolean sprite = (boolean) stage->draw->rasterizer->point_quad_rasterization;
132 struct vertex_header *v0 = dup_vert(stage, header->v[0], 0);
133 struct vertex_header *v1 = dup_vert(stage, heade
193 widepoint_first_point(struct draw_stage *stage, struct prim_header *header) argument
278 widepoint_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_wide_line.c41 struct draw_stage stage; member in struct:wideline_stage
48 static INLINE struct wideline_stage *wideline_stage( struct draw_stage *stage )
50 return (struct wideline_stage *)stage;
58 static void wideline_line( struct draw_stage *stage, argument
61 /*const struct wideline_stage *wide = wideline_stage(stage);*/
62 const unsigned pos = draw_current_shader_position_output(stage->draw);
63 const float half_width = 0.5f * stage->draw->rasterizer->line_width;
67 struct vertex_header *v0 = dup_vert(stage, header->v[0], 0);
68 struct vertex_header *v1 = dup_vert(stage, header->v[0], 1);
69 struct vertex_header *v2 = dup_vert(stage, heade
152 wideline_first_line( struct draw_stage *stage, struct prim_header *header ) argument
172 wideline_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_vbuf.c30 * Vertex buffer drawing stage.
50 * Vertex buffer emit stage.
53 struct draw_stage stage; /**< This must be first (base class) */ member in struct:vbuf_stage
89 vbuf_stage( struct draw_stage *stage )
91 assert(stage);
92 return (struct vbuf_stage *)stage;
154 vbuf_tri( struct draw_stage *stage, argument
157 struct vbuf_stage *vbuf = vbuf_stage( stage );
169 vbuf_line( struct draw_stage *stage, argument
172 struct vbuf_stage *vbuf = vbuf_stage( stage );
184 vbuf_point( struct draw_stage *stage, struct prim_header *prim ) argument
276 vbuf_first_tri( struct draw_stage *stage, struct prim_header *prim ) argument
289 vbuf_first_line( struct draw_stage *stage, struct prim_header *prim ) argument
302 vbuf_first_point( struct draw_stage *stage, struct prim_header *prim ) argument
388 vbuf_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_clip.c29 * \brief Clipping stage
58 struct draw_stage stage; /**< base class */ member in struct:clip_stage
72 static INLINE struct clip_stage *clip_stage( struct draw_stage *stage )
74 return (struct clip_stage *)stage;
98 static void copy_flat( struct draw_stage *stage, argument
102 const struct clip_stage *clipper = clip_stage(stage);
120 const unsigned nr_attrs = draw_current_shader_outputs(clip->stage.draw);
121 const unsigned pos_attr = draw_current_shader_position_output(clip->stage.draw);
122 const unsigned clip_attr = draw_current_shader_clipvertex_output(clip->stage.draw);
144 const float *scale = clip->stage
191 emit_poly( struct draw_stage *stage, struct vertex_header **inlist, const boolean *edgeflags, unsigned n, const struct prim_header *origPrim) argument
297 do_clip_tri( struct draw_stage *stage, struct prim_header *header, unsigned clipmask ) argument
466 do_clip_line( struct draw_stage *stage, struct prim_header *header, unsigned clipmask ) argument
520 clip_point( struct draw_stage *stage, struct prim_header *header ) argument
529 clip_line( struct draw_stage *stage, struct prim_header *header ) argument
548 clip_tri( struct draw_stage *stage, struct prim_header *header ) argument
662 clip_first_tri( struct draw_stage *stage, struct prim_header *header ) argument
669 clip_first_line( struct draw_stage *stage, struct prim_header *header ) argument
677 clip_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Ddraw_pipe_validate.c158 static struct draw_stage *validate_pipeline( struct draw_stage *stage )
160 struct draw_context *draw = stage->draw;
167 /* Set the validate's next stage to the rasterize stage, so that it
170 stage->next = next;
256 /* Always run the cull stage as we calculate determinant there
268 /* Clip stage
289 static void validate_tri( struct draw_stage *stage, argument
292 struct draw_stage *pipeline = validate_pipeline( stage );
296 static void validate_line( struct draw_stage *stage, argument
303 validate_point( struct draw_stage *stage, struct prim_header *header ) argument
316 validate_flush( struct draw_stage *stage, unsigned flags ) argument
337 struct draw_stage *stage = CALLOC_STRUCT(draw_stage); local
[all...]
H A Ddraw_pipe.h59 struct draw_stage *next; /**< next stage in pipeline */
95 extern void draw_free_temp_verts( struct draw_stage *stage );
96 extern boolean draw_alloc_temp_verts( struct draw_stage *stage, unsigned nr );
100 void draw_pipe_passthrough_tri(struct draw_stage *stage, struct prim_header *header);
101 void draw_pipe_passthrough_line(struct draw_stage *stage, struct prim_header *header);
102 void draw_pipe_passthrough_point(struct draw_stage *stage, struct prim_header *header);
108 * \param stage drawing stage info
110 * \param idx index into stage's tmp[] array to put the copy (dest)
114 dup_vert( struct draw_stage *stage, argument
[all...]
H A Ddraw_pipe_pstipple.c29 * Polygon stipple stage: implement polygon stipple with texture map and
76 struct draw_stage stage; member in struct:pstip_stage
342 /*struct draw_context *draw = pstip->stage.draw;*/
502 struct draw_context *draw = pstip->stage.draw;
515 pstip_stage( struct draw_stage *stage )
517 return (struct pstip_stage *) stage;
522 pstip_first_tri(struct draw_stage *stage, struct prim_header *header) argument
524 struct pstip_stage *pstip = pstip_stage(stage);
526 struct draw_context *draw = stage->draw;
529 assert(stage
563 pstip_flush(struct draw_stage *stage, unsigned flags) argument
585 pstip_reset_stipple_counter(struct draw_stage *stage) argument
592 pstip_destroy(struct draw_stage *stage) argument
[all...]
H A Ddraw_pipe_aaline.c29 * AA line stage: AA lines are converted to texture mapped triangles.
88 struct draw_stage stage; member in struct:aaline_stage
352 struct pipe_context *pipe = aaline->stage.draw->pipe;
406 struct pipe_context *pipe = aaline->stage.draw->pipe;
500 struct pipe_context *pipe = aaline->stage.draw->pipe;
528 struct draw_context *draw = aaline->stage.draw;
545 aaline_stage( struct draw_stage *stage )
547 return (struct aaline_stage *) stage;
556 aaline_line(struct draw_stage *stage, struct prim_header *header) argument
558 const struct aaline_stage *aaline = aaline_stage(stage);
672 aaline_first_line(struct draw_stage *stage, struct prim_header *header) argument
731 aaline_flush(struct draw_stage *stage, unsigned flags) argument
761 aaline_reset_stipple_counter(struct draw_stage *stage) argument
768 aaline_destroy(struct draw_stage *stage) argument
[all...]
/external/mesa3d/src/gallium/drivers/nv50/
H A Dnv50_draw.c28 struct draw_stage stage; member in struct:nv50_render_stage
33 nv50_render_stage(struct draw_stage *stage) argument
35 return (struct nv50_render_stage *)stage;
39 nv50_render_point(struct draw_stage *stage, struct prim_header *prim) argument
45 nv50_render_line(struct draw_stage *stage, struct prim_header *prim) argument
51 nv50_render_tri(struct draw_stage *stage, struct prim_header *prim) argument
57 nv50_render_flush(struct draw_stage *stage, unsigned flags) argument
62 nv50_render_reset_stipple_counter(struct draw_stage *stage) argument
68 nv50_render_destroy(struct draw_stage *stage) argument
70 FREE(stage);
[all...]
/external/mesa3d/src/gallium/drivers/nvc0/
H A Dnvc0_draw.c28 struct draw_stage stage; member in struct:nvc0_render_stage
33 nvc0_render_stage(struct draw_stage *stage) argument
35 return (struct nvc0_render_stage *)stage;
39 nvc0_render_point(struct draw_stage *stage, struct prim_header *prim) argument
45 nvc0_render_line(struct draw_stage *stage, struct prim_header *prim) argument
51 nvc0_render_tri(struct draw_stage *stage, struct prim_header *prim) argument
57 nvc0_render_flush(struct draw_stage *stage, unsigned flags) argument
62 nvc0_render_reset_stipple_counter(struct draw_stage *stage) argument
68 nvc0_render_destroy(struct draw_stage *stage) argument
70 FREE(stage);
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_feedback.c65 struct draw_stage stage; /**< Base class */ member in struct:feedback_stage
76 feedback_stage( struct draw_stage *stage )
78 return (struct feedback_stage *)stage;
119 feedback_tri( struct draw_stage *stage, struct prim_header *prim ) argument
121 struct feedback_stage *fs = feedback_stage(stage);
122 struct draw_context *draw = stage->draw;
132 feedback_line( struct draw_stage *stage, struct prim_header *prim ) argument
134 struct feedback_stage *fs = feedback_stage(stage);
135 struct draw_context *draw = stage->draw;
149 feedback_point( struct draw_stage *stage, struc argument
159 feedback_flush( struct draw_stage *stage, unsigned flags ) argument
207 select_tri( struct draw_stage *stage, struct prim_header *prim ) argument
216 select_line( struct draw_stage *stage, struct prim_header *prim ) argument
225 select_point( struct draw_stage *stage, struct prim_header *prim ) argument
233 select_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
H A Dst_cb_rasterpos.c30 * private draw module. Plug in a special "rasterpos" stage at the end
56 * Our special drawing pipeline stage (replaces rasterization).
60 struct draw_stage stage; /**< Base class */ member in struct:rastpos_stage
71 rastpos_stage( struct draw_stage *stage )
73 return (struct rastpos_stage *) stage;
77 rastpos_flush( struct draw_stage *stage, unsigned flags ) argument
83 rastpos_reset_stipple_counter( struct draw_stage *stage )
89 rastpos_tri( struct draw_stage *stage, struct prim_header *prim ) argument
96 rastpos_line( struct draw_stage *stage, struct prim_header *prim ) argument
103 rastpos_destroy(struct draw_stage *stage) argument
133 rastpos_point(struct draw_stage *stage, struct prim_header *prim) argument
[all...]
/external/mesa3d/src/gallium/drivers/i915/
H A Di915_prim_emit.c46 struct draw_stage stage; /**< This must be first (base class) */ member in struct:setup_stage
56 static INLINE struct setup_stage *setup_stage( struct draw_stage *stage )
58 return (struct setup_stage *)stage;
128 emit_prim( struct draw_stage *stage, argument
133 struct i915_context *i915 = setup_stage(stage)->i915;
173 setup_tri( struct draw_stage *stage, struct prim_header *prim ) argument
175 emit_prim( stage, prim, PRIM3D_TRILIST, 3 );
180 setup_line(struct draw_stage *stage, struct prim_header *prim) argument
182 emit_prim( stage, prim, PRIM3D_LINELIST, 2 );
187 setup_point(struct draw_stage *stage, struc argument
193 setup_flush( struct draw_stage *stage, unsigned flags ) argument
[all...]
/external/mesa3d/src/mesa/tnl/
H A Dt_vb_points.c40 #define POINT_STAGE_DATA(stage) ((struct point_stage_data *)stage->privatePtr)
50 run_point_stage(struct gl_context *ctx, struct tnl_pipeline_stage *stage) argument
53 struct point_stage_data *store = POINT_STAGE_DATA(stage);
80 alloc_point_data(struct gl_context *ctx, struct tnl_pipeline_stage *stage) argument
84 stage->privatePtr = malloc(sizeof(*store));
85 store = POINT_STAGE_DATA(stage);
95 free_point_data(struct tnl_pipeline_stage *stage) argument
97 struct point_stage_data *store = POINT_STAGE_DATA(stage);
101 stage
[all...]
H A Dt_vb_texmat.c52 #define TEXMAT_STAGE_DATA(stage) ((struct texmat_stage_data *)stage->privatePtr)
57 struct tnl_pipeline_stage *stage )
59 struct texmat_stage_data *store = TEXMAT_STAGE_DATA(stage);
83 /* Called the first time stage->run() is invoked.
86 struct tnl_pipeline_stage *stage )
92 stage->privatePtr = CALLOC(sizeof(*store));
93 store = TEXMAT_STAGE_DATA(stage);
104 static void free_texmat_data( struct tnl_pipeline_stage *stage )
106 struct texmat_stage_data *store = TEXMAT_STAGE_DATA(stage);
[all...]
H A Dt_vb_normals.c46 #define NORMAL_STAGE_DATA(stage) ((struct normal_stage_data *)stage->privatePtr)
50 run_normal_stage(struct gl_context *ctx, struct tnl_pipeline_stage *stage) argument
52 struct normal_stage_data *store = NORMAL_STAGE_DATA(stage);
92 validate_normal_stage(struct gl_context *ctx, struct tnl_pipeline_stage *stage) argument
94 struct normal_stage_data *store = NORMAL_STAGE_DATA(stage);
146 * Allocate stage's private data (storage for transformed normals).
149 alloc_normal_data(struct gl_context *ctx, struct tnl_pipeline_stage *stage) argument
154 stage->privatePtr = malloc(sizeof(*store));
155 store = NORMAL_STAGE_DATA(stage);
168 free_normal_data(struct tnl_pipeline_stage *stage) argument
[all...]
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_stipple.c3 * quad polygon stipple stage
73 struct quad_stage *stage = CALLOC_STRUCT(quad_stage); local
75 stage->softpipe = softpipe;
76 stage->begin = stipple_begin;
77 stage->run = stipple_quad;
78 stage->destroy = stipple_destroy;
80 return stage;
/external/harfbuzz_ng/src/
H A Dhb-ot-map.cc108 info->stage[0] = current_stage[0];
109 info->stage[1] = current_stage[1];
137 /* We default to applying required feature in stage 0. If the required
139 * in the stage for that tag.
177 feature_infos[j].stage[0] = MIN (feature_infos[j].stage[0], feature_infos[i].stage[0]);
178 feature_infos[j].stage[1] = MIN (feature_infos[j].stage[1], feature_infos[i].stage[
[all...]

Completed in 1071 milliseconds

12345