Home
last modified time | relevance | path

Searched refs:Polygon (Results 1 – 25 of 69) sorted by relevance

123

/external/mesa3d/src/mesa/main/
Dpolygon.c56 if (ctx->Polygon.CullFaceMode == mode) in cull_face()
67 ctx->Polygon.CullFaceMode = mode; in cull_face()
108 if (ctx->Polygon.FrontFace == mode) in front_face()
118 ctx->Polygon.FrontFace = mode; in front_face()
187 if (ctx->Polygon.FrontMode == mode) in polygon_mode()
191 ctx->Polygon.FrontMode = mode; in polygon_mode()
194 if (ctx->Polygon.FrontMode == mode && ctx->Polygon.BackMode == mode) in polygon_mode()
198 ctx->Polygon.FrontMode = mode; in polygon_mode()
199 ctx->Polygon.BackMode = mode; in polygon_mode()
206 if (ctx->Polygon.BackMode == mode) in polygon_mode()
[all …]
Denable.c390 if (ctx->Polygon.CullFlag == state) in _mesa_set_enable()
395 ctx->Polygon.CullFlag = state; in _mesa_set_enable()
662 if (ctx->Polygon.SmoothFlag == state) in _mesa_set_enable()
667 ctx->Polygon.SmoothFlag = state; in _mesa_set_enable()
672 if (ctx->Polygon.StippleFlag == state) in _mesa_set_enable()
677 ctx->Polygon.StippleFlag = state; in _mesa_set_enable()
682 if (ctx->Polygon.OffsetPoint == state) in _mesa_set_enable()
687 ctx->Polygon.OffsetPoint = state; in _mesa_set_enable()
692 if (ctx->Polygon.OffsetLine == state) in _mesa_set_enable()
697 ctx->Polygon.OffsetLine = state; in _mesa_set_enable()
[all …]
Dstate.h108 return ctx->Polygon.FrontFace == GL_CW; in _mesa_polygon_get_front_bit()
110 return ctx->Polygon.FrontFace == GL_CCW; in _mesa_polygon_get_front_bit()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_clip.c124 if (ctx->Polygon.CullFlag && in brw_upload_clip_prog()
125 ctx->Polygon.CullFaceMode == GL_FRONT_AND_BACK) in brw_upload_clip_prog()
133 if (!ctx->Polygon.CullFlag || in brw_upload_clip_prog()
134 ctx->Polygon.CullFaceMode != GL_FRONT) { in brw_upload_clip_prog()
135 switch (ctx->Polygon.FrontMode) { in brw_upload_clip_prog()
142 offset_front = ctx->Polygon.OffsetLine; in brw_upload_clip_prog()
146 offset_front = ctx->Polygon.OffsetPoint; in brw_upload_clip_prog()
151 if (!ctx->Polygon.CullFlag || in brw_upload_clip_prog()
152 ctx->Polygon.CullFaceMode != GL_BACK) { in brw_upload_clip_prog()
153 switch (ctx->Polygon.BackMode) { in brw_upload_clip_prog()
[all …]
Dgen6_clip_state.c42 if (brw->ctx.Polygon.FrontMode == GL_POINT || in brw_is_drawing_points()
43 brw->ctx.Polygon.BackMode == GL_POINT) { in brw_is_drawing_points()
66 if (brw->ctx.Polygon.FrontMode == GL_LINE || in brw_is_drawing_lines()
67 brw->ctx.Polygon.BackMode == GL_LINE) { in brw_is_drawing_lines()
Dbrw_wm.c492 if (ctx->Polygon.FrontMode == GL_LINE) { in brw_wm_populate_key()
495 if (ctx->Polygon.BackMode == GL_LINE || in brw_wm_populate_key()
496 (ctx->Polygon.CullFlag && in brw_wm_populate_key()
497 ctx->Polygon.CullFaceMode == GL_BACK)) in brw_wm_populate_key()
500 else if (ctx->Polygon.BackMode == GL_LINE) { in brw_wm_populate_key()
503 if ((ctx->Polygon.CullFlag && in brw_wm_populate_key()
504 ctx->Polygon.CullFaceMode == GL_FRONT)) in brw_wm_populate_key()
/external/swiftshader/src/Device/
DClipper.hpp23 struct Polygon;
56 bool clip(Polygon &polygon, int clipFlagsOr, const DrawCall &draw);
59 void clipNear(Polygon &polygon);
60 void clipFar(Polygon &polygon);
61 void clipLeft(Polygon &polygon);
62 void clipRight(Polygon &polygon);
63 void clipTop(Polygon &polygon);
64 void clipBottom(Polygon &polygon);
65 void clipPlane(Polygon &polygon, const Plane &plane);
DPolygon.hpp22 struct Polygon struct
24 Polygon(const float4 *P0, const float4 *P1, const float4 *P2) in Polygon() function
35 Polygon(const float4 *P, int n) in Polygon() function
DClipper.cpp34 bool Clipper::clip(Polygon &polygon, int clipFlagsOr, const DrawCall &draw) in clip()
75 void Clipper::clipNear(Polygon &polygon) in clipNear()
113 void Clipper::clipFar(Polygon &polygon) in clipFar()
151 void Clipper::clipLeft(Polygon &polygon) in clipLeft()
189 void Clipper::clipRight(Polygon &polygon) in clipRight()
227 void Clipper::clipTop(Polygon &polygon) in clipTop()
265 void Clipper::clipBottom(Polygon &polygon) in clipBottom()
303 void Clipper::clipPlane(Polygon &polygon, const Plane &p) in clipPlane()
DSetupProcessor.hpp28 struct Polygon;
74 …typedef bool (*RoutinePointer)(Primitive *primitive, const Triangle *triangle, const Polygon *poly…
/external/swiftshader/src/Renderer/
DClipper.hpp23 struct Polygon;
60 bool clip(Polygon &polygon, int clipFlagsOr, const DrawCall &draw);
63 void clipNear(Polygon &polygon);
64 void clipFar(Polygon &polygon);
65 void clipLeft(Polygon &polygon);
66 void clipRight(Polygon &polygon);
67 void clipTop(Polygon &polygon);
68 void clipBottom(Polygon &polygon);
69 void clipPlane(Polygon &polygon, const Plane &plane);
DPolygon.hpp22 struct Polygon struct
24 Polygon(const float4 *P0, const float4 *P1, const float4 *P2) in Polygon() function
35 Polygon(const float4 *P, int n) in Polygon() argument
DClipper.cpp43 bool Clipper::clip(Polygon &polygon, int clipFlagsOr, const DrawCall &draw) in clip()
84 void Clipper::clipNear(Polygon &polygon) in clipNear()
122 void Clipper::clipFar(Polygon &polygon) in clipFar()
160 void Clipper::clipLeft(Polygon &polygon) in clipLeft()
198 void Clipper::clipRight(Polygon &polygon) in clipRight()
236 void Clipper::clipTop(Polygon &polygon) in clipTop()
274 void Clipper::clipBottom(Polygon &polygon) in clipBottom()
312 void Clipper::clipPlane(Polygon &polygon, const Plane &p) in clipPlane()
DSetupProcessor.hpp28 struct Polygon;
86 …typedef bool (*RoutinePointer)(Primitive *primitive, const Triangle *triangle, const Polygon *poly…
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv10_state_polygon.c38 GLenum mode = ctx->Polygon.CullFaceMode; in nv10_emit_cull_face()
41 PUSH_DATAb(push, ctx->Polygon.CullFlag); in nv10_emit_cull_face()
55 PUSH_DATA (push, ctx->Polygon.FrontFace == GL_CW ? in nv10_emit_front_face()
96 PUSH_DATA (push, nvgl_polygon_mode(ctx->Polygon.FrontMode)); in nv10_emit_polygon_mode()
97 PUSH_DATA (push, nvgl_polygon_mode(ctx->Polygon.BackMode)); in nv10_emit_polygon_mode()
100 PUSH_DATAb(push, ctx->Polygon.SmoothFlag); in nv10_emit_polygon_mode()
109 PUSH_DATAb(push, ctx->Polygon.OffsetPoint); in nv10_emit_polygon_offset()
110 PUSH_DATAb(push, ctx->Polygon.OffsetLine); in nv10_emit_polygon_offset()
111 PUSH_DATAb(push, ctx->Polygon.OffsetFill); in nv10_emit_polygon_offset()
114 PUSH_DATAf(push, ctx->Polygon.OffsetFactor); in nv10_emit_polygon_offset()
[all …]
Dnv04_state_raster.c127 int cull = ctx->Polygon.CullFaceMode; in nv04_emit_control()
128 int front = ctx->Polygon.FrontFace; in nv04_emit_control()
140 if (!ctx->Polygon.CullFlag) in nv04_emit_control()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_rasterizer.c77 raster->front_ccw = (ctx->Polygon.FrontFace == GL_CCW); in st_update_rasterizer()
112 if (ctx->Polygon.CullFlag) { in st_update_rasterizer()
113 switch (ctx->Polygon.CullFaceMode) { in st_update_rasterizer()
137 raster->fill_front = translate_fill(ctx->Polygon.FrontMode); in st_update_rasterizer()
138 raster->fill_back = translate_fill(ctx->Polygon.BackMode); in st_update_rasterizer()
154 if (ctx->Polygon.OffsetPoint || in st_update_rasterizer()
155 ctx->Polygon.OffsetLine || in st_update_rasterizer()
156 ctx->Polygon.OffsetFill) { in st_update_rasterizer()
157 raster->offset_point = ctx->Polygon.OffsetPoint; in st_update_rasterizer()
158 raster->offset_line = ctx->Polygon.OffsetLine; in st_update_rasterizer()
[all …]
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_tritmp.h144 mode = ctx->Polygon.BackMode; in TAG()
145 if (ctx->Polygon.CullFlag && in TAG()
146 ctx->Polygon.CullFaceMode != GL_FRONT) { in TAG()
150 mode = ctx->Polygon.FrontMode; in TAG()
151 if (ctx->Polygon.CullFlag && in TAG()
152 ctx->Polygon.CullFaceMode != GL_BACK) { in TAG()
226 offset = ctx->Polygon.OffsetUnits * DEPTH_SCALE; in TAG()
240 offset += MAX2( ac, bc ) * ctx->Polygon.OffsetFactor / ctx->DrawBuffer->_MRD; in TAG()
260 if (DO_OFFSET && ctx->Polygon.OffsetPoint) { in TAG()
273 if (DO_OFFSET && ctx->Polygon.OffsetLine) { in TAG()
[all …]
/external/mesa3d/src/mesa/swrast_setup/
Dss_triangle.c126 if (ctx->Polygon.CullFlag) { in _swsetup_render_tri()
127 if (facing == 1 && ctx->Polygon.CullFaceMode != GL_FRONT) in _swsetup_render_tri()
129 if (facing == 0 && ctx->Polygon.CullFaceMode != GL_BACK) in _swsetup_render_tri()
246 if (ctx->Polygon.OffsetPoint || in _swsetup_choose_trifuncs()
247 ctx->Polygon.OffsetLine || in _swsetup_choose_trifuncs()
248 ctx->Polygon.OffsetFill) in _swsetup_choose_trifuncs()
258 if (ctx->Polygon.FrontMode != GL_FILL || in _swsetup_choose_trifuncs()
259 ctx->Polygon.BackMode != GL_FILL || in _swsetup_choose_trifuncs()
Dss_tritmp.h64 mode = facing ? ctx->Polygon.BackMode : ctx->Polygon.FrontMode; in TAG()
140 offset = ctx->Polygon.OffsetUnits; in TAG()
147 offset += MAX2(dzdx, dzdy) * ctx->Polygon.OffsetFactor; in TAG()
157 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetPoint) { in TAG()
164 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetLine) { in TAG()
171 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetFill) { in TAG()
/external/mesa3d/src/gallium/docs/source/
Dpipeline.txt48 | Polygon Culling |
64 | Polygon Offset |
85 | * Polygon Stipple |
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c240 ctx->Driver.CullFace(ctx, ctx->Polygon.CullFaceMode); in _mesa_init_driver_state()
248 ctx->Driver.Enable(ctx, GL_CULL_FACE, ctx->Polygon.CullFlag); in _mesa_init_driver_state()
254 ctx->Driver.Enable(ctx, GL_POLYGON_STIPPLE, ctx->Polygon.StippleFlag); in _mesa_init_driver_state()
272 ctx->Driver.FrontFace(ctx, ctx->Polygon.FrontFace); in _mesa_init_driver_state()
/external/mesa3d/src/mesa/tnl/
Dt_vb_render.c74 #define NEED_EDGEFLAG_SETUP (ctx->Polygon.FrontMode != GL_FILL || ctx->Polygon.BackMode != GL_FILL)
189 #define NEED_EDGEFLAG_SETUP (ctx->Polygon.FrontMode != GL_FILL || ctx->Polygon.BackMode != GL_FILL)
/external/mesa3d/prebuilt-intermediates/main/
Dget_hash.h13 { GL_CULL_FACE, CONTEXT_BOOL(Polygon.CullFlag), NO_EXTRA },
14 { GL_CULL_FACE_MODE, CONTEXT_ENUM(Polygon.CullFaceMode), NO_EXTRA },
22 { GL_FRONT_FACE, CONTEXT_ENUM(Polygon.FrontFace), NO_EXTRA },
32 { GL_POLYGON_OFFSET_FACTOR, CONTEXT_FLOAT(Polygon.OffsetFactor ), NO_EXTRA },
33 { GL_POLYGON_OFFSET_UNITS, CONTEXT_FLOAT(Polygon.OffsetUnits ), NO_EXTRA },
34 { GL_POLYGON_OFFSET_FILL, CONTEXT_BOOL(Polygon.OffsetFill), NO_EXTRA },
96 …{ GL_POLYGON_OFFSET_CLAMP_EXT, CONTEXT_FLOAT(Polygon.OffsetClamp), extra_ARB_polygon_offset_clamp …
499 { GL_POLYGON_MODE, CONTEXT_ENUM2(Polygon.FrontMode), NO_EXTRA },
500 { GL_POLYGON_OFFSET_BIAS_EXT, CONTEXT_FLOAT(Polygon.OffsetUnits), NO_EXTRA },
501 { GL_POLYGON_OFFSET_POINT, CONTEXT_BOOL(Polygon.OffsetPoint), NO_EXTRA },
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tris.c951 ((ctx->Polygon.FrontMode != GL_FILL || in intelChooseRenderState()
952 ctx->Polygon.BackMode != GL_FILL) ? DD_TRI_UNFILLED : 0) | in intelChooseRenderState()
953 (ctx->Polygon.StippleFlag ? DD_TRI_STIPPLE : 0) | in intelChooseRenderState()
954 ((ctx->Polygon.OffsetPoint || in intelChooseRenderState()
955 ctx->Polygon.OffsetLine || in intelChooseRenderState()
956 ctx->Polygon.OffsetFill) ? DD_TRI_OFFSET : 0) | in intelChooseRenderState()
1147 GLboolean unfilled = (ctx->Polygon.FrontMode != GL_FILL || in intelRenderPrimitive()
1148 ctx->Polygon.BackMode != GL_FILL); in intelRenderPrimitive()

123