/external/mesa3d/src/mesa/main/ |
D | polygon.c | 66 if (ctx->Polygon.CullFaceMode == mode) in _mesa_CullFace() 70 ctx->Polygon.CullFaceMode = mode; in _mesa_CullFace() 96 if (ctx->Polygon.FrontFace == mode) in _mesa_FrontFace() 105 ctx->Polygon.FrontFace = mode; in _mesa_FrontFace() 145 if (ctx->Polygon.FrontMode == mode) in _mesa_PolygonMode() 148 ctx->Polygon.FrontMode = mode; in _mesa_PolygonMode() 151 if (ctx->Polygon.FrontMode == mode && in _mesa_PolygonMode() 152 ctx->Polygon.BackMode == mode) in _mesa_PolygonMode() 155 ctx->Polygon.FrontMode = mode; in _mesa_PolygonMode() 156 ctx->Polygon.BackMode = mode; in _mesa_PolygonMode() [all …]
|
D | enable.c | 360 if (ctx->Polygon.CullFlag == state) in _mesa_set_enable() 363 ctx->Polygon.CullFlag = state; in _mesa_set_enable() 623 if (ctx->Polygon.SmoothFlag == state) in _mesa_set_enable() 626 ctx->Polygon.SmoothFlag = state; in _mesa_set_enable() 631 if (ctx->Polygon.StippleFlag == state) in _mesa_set_enable() 634 ctx->Polygon.StippleFlag = state; in _mesa_set_enable() 639 if (ctx->Polygon.OffsetPoint == state) in _mesa_set_enable() 642 ctx->Polygon.OffsetPoint = state; in _mesa_set_enable() 647 if (ctx->Polygon.OffsetLine == state) in _mesa_set_enable() 650 ctx->Polygon.OffsetLine = state; in _mesa_set_enable() [all …]
|
D | state.c | 346 ctx->Polygon._FrontBit = (ctx->Polygon.FrontFace == GL_CW); in update_frontbit() 348 ctx->Polygon._FrontBit = (ctx->Polygon.FrontFace == GL_CCW); in update_frontbit()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_clip.c | 180 if (ctx->Polygon.CullFlag && in brw_upload_clip_prog() 181 ctx->Polygon.CullFaceMode == GL_FRONT_AND_BACK) in brw_upload_clip_prog() 189 if (!ctx->Polygon.CullFlag || in brw_upload_clip_prog() 190 ctx->Polygon.CullFaceMode != GL_FRONT) { in brw_upload_clip_prog() 191 switch (ctx->Polygon.FrontMode) { in brw_upload_clip_prog() 198 offset_front = ctx->Polygon.OffsetLine; in brw_upload_clip_prog() 202 offset_front = ctx->Polygon.OffsetPoint; in brw_upload_clip_prog() 207 if (!ctx->Polygon.CullFlag || in brw_upload_clip_prog() 208 ctx->Polygon.CullFaceMode != GL_BACK) { in brw_upload_clip_prog() 209 switch (ctx->Polygon.BackMode) { in brw_upload_clip_prog() [all …]
|
D | gen7_sf_state.c | 130 if (ctx->Polygon._FrontBit == render_to_fbo) in upload_sf_state() 133 if (ctx->Polygon.OffsetFill) in upload_sf_state() 136 if (ctx->Polygon.OffsetLine) in upload_sf_state() 139 if (ctx->Polygon.OffsetPoint) in upload_sf_state() 142 switch (ctx->Polygon.FrontMode) { in upload_sf_state() 159 switch (ctx->Polygon.BackMode) { in upload_sf_state() 178 if (ctx->Polygon.CullFlag) { in upload_sf_state() 179 switch (ctx->Polygon.CullFaceMode) { in upload_sf_state() 242 OUT_BATCH_F(ctx->Polygon.OffsetUnits * 2); /* constant. copied from gen4 */ in upload_sf_state() 243 OUT_BATCH_F(ctx->Polygon.OffsetFactor); /* scale */ in upload_sf_state() [all …]
|
D | gen8_sf_state.c | 238 if (ctx->Polygon._FrontBit == render_to_fbo) in upload_raster() 241 if (ctx->Polygon.CullFlag) { in upload_raster() 242 switch (ctx->Polygon.CullFaceMode) { in upload_raster() 266 if (ctx->Polygon.OffsetFill) in upload_raster() 269 if (ctx->Polygon.OffsetLine) in upload_raster() 272 if (ctx->Polygon.OffsetPoint) in upload_raster() 275 switch (ctx->Polygon.FrontMode) { in upload_raster() 290 switch (ctx->Polygon.BackMode) { in upload_raster() 331 OUT_BATCH_F(ctx->Polygon.OffsetUnits * 2); /* constant. copied from gen4 */ in upload_raster() 332 OUT_BATCH_F(ctx->Polygon.OffsetFactor); /* scale */ in upload_raster() [all …]
|
D | gen6_sf_state.c | 296 if (ctx->Polygon._FrontBit == render_to_fbo) in upload_sf_state() 299 if (ctx->Polygon.OffsetFill) in upload_sf_state() 302 if (ctx->Polygon.OffsetLine) in upload_sf_state() 305 if (ctx->Polygon.OffsetPoint) in upload_sf_state() 308 switch (ctx->Polygon.FrontMode) { in upload_sf_state() 325 switch (ctx->Polygon.BackMode) { in upload_sf_state() 343 if (ctx->Polygon.CullFlag) { in upload_sf_state() 344 switch (ctx->Polygon.CullFaceMode) { in upload_sf_state() 423 OUT_BATCH_F(ctx->Polygon.OffsetUnits * 2); /* constant. copied from gen4 */ in upload_sf_state() 424 OUT_BATCH_F(ctx->Polygon.OffsetFactor); /* scale */ in upload_sf_state() [all …]
|
D | gen6_clip_state.c | 41 if (brw->ctx.Polygon.FrontMode == GL_POINT || in brw_is_drawing_points() 42 brw->ctx.Polygon.BackMode == GL_POINT) { in brw_is_drawing_points() 65 if (brw->ctx.Polygon.FrontMode == GL_LINE || in brw_is_drawing_lines() 66 brw->ctx.Polygon.BackMode == GL_LINE) { in brw_is_drawing_lines() 115 if (ctx->Polygon._FrontBit == _mesa_is_user_fbo(fb)) in upload_clip_state() 118 if (ctx->Polygon.CullFlag) { in upload_clip_state() 119 switch (ctx->Polygon.CullFaceMode) { in upload_clip_state()
|
D | brw_wm_state.c | 200 wm->wm5.polygon_stipple = ctx->Polygon.StippleFlag; in brw_upload_wm_unit() 203 if (ctx->Polygon.OffsetFill) { in brw_upload_wm_unit() 210 wm->global_depth_offset_constant = ctx->Polygon.OffsetUnits * 2; in brw_upload_wm_unit() 214 wm->global_depth_offset_scale = ctx->Polygon.OffsetFactor; in brw_upload_wm_unit() 248 if (brw->wm.offset_clamp != ctx->Polygon.OffsetClamp) { in brw_upload_wm_unit() 251 OUT_BATCH_F(ctx->Polygon.OffsetClamp); in brw_upload_wm_unit() 254 brw->wm.offset_clamp = ctx->Polygon.OffsetClamp; in brw_upload_wm_unit()
|
D | brw_wm.c | 493 if (ctx->Polygon.FrontMode == GL_LINE) { in brw_wm_populate_key() 496 if (ctx->Polygon.BackMode == GL_LINE || in brw_wm_populate_key() 497 (ctx->Polygon.CullFlag && in brw_wm_populate_key() 498 ctx->Polygon.CullFaceMode == GL_BACK)) in brw_wm_populate_key() 501 else if (ctx->Polygon.BackMode == GL_LINE) { in brw_wm_populate_key() 504 if ((ctx->Polygon.CullFlag && in brw_wm_populate_key() 505 ctx->Polygon.CullFaceMode == GL_FRONT)) in brw_wm_populate_key()
|
D | brw_sf_state.c | 193 if (ctx->Polygon._FrontBit) in upload_sf_unit() 205 switch (ctx->Polygon.CullFlag ? ctx->Polygon.CullFaceMode : GL_NONE) { in upload_sf_unit()
|
/external/swiftshader/src/Renderer/ |
D | Clipper.hpp | 23 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);
|
D | Polygon.hpp | 22 struct Polygon struct 24 Polygon(const float4 *P0, const float4 *P1, const float4 *P2) in Polygon() argument 35 Polygon(const float4 *P, int n) in Polygon() argument
|
D | Clipper.cpp | 43 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()
|
D | SetupProcessor.hpp | 28 struct Polygon; 86 …typedef bool (*RoutinePointer)(Primitive *primitive, const Triangle *triangle, const Polygon *poly…
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nv10_state_polygon.c | 38 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 …]
|
D | nv04_state_raster.c | 127 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/ |
D | st_atom_rasterizer.c | 73 raster->front_ccw = (ctx->Polygon.FrontFace == GL_CCW); in update_raster_state() 108 if (ctx->Polygon.CullFlag) { in update_raster_state() 109 switch (ctx->Polygon.CullFaceMode) { in update_raster_state() 133 raster->fill_front = translate_fill( ctx->Polygon.FrontMode ); in update_raster_state() 134 raster->fill_back = translate_fill( ctx->Polygon.BackMode ); in update_raster_state() 150 if (ctx->Polygon.OffsetPoint || in update_raster_state() 151 ctx->Polygon.OffsetLine || in update_raster_state() 152 ctx->Polygon.OffsetFill) { in update_raster_state() 153 raster->offset_point = ctx->Polygon.OffsetPoint; in update_raster_state() 154 raster->offset_line = ctx->Polygon.OffsetLine; in update_raster_state() [all …]
|
/external/mesa3d/src/mesa/tnl_dd/ |
D | t_dd_tritmp.h | 140 facing = AREA_IS_CCW( cc ) ^ ctx->Polygon._FrontBit; in TAG() 144 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() [all …]
|
/external/mesa3d/src/mesa/swrast_setup/ |
D | ss_triangle.c | 124 if (ctx->Polygon.CullFlag) { in _swsetup_render_tri() 125 if (facing == 1 && ctx->Polygon.CullFaceMode != GL_FRONT) in _swsetup_render_tri() 127 if (facing == 0 && ctx->Polygon.CullFaceMode != GL_BACK) in _swsetup_render_tri() 244 if (ctx->Polygon.OffsetPoint || in _swsetup_choose_trifuncs() 245 ctx->Polygon.OffsetLine || in _swsetup_choose_trifuncs() 246 ctx->Polygon.OffsetFill) in _swsetup_choose_trifuncs() 256 if (ctx->Polygon.FrontMode != GL_FILL || in _swsetup_choose_trifuncs() 257 ctx->Polygon.BackMode != GL_FILL || in _swsetup_choose_trifuncs()
|
D | ss_tritmp.h | 61 facing = (cc < 0.0F) ^ ctx->Polygon._FrontBit; in TAG() 64 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/ |
D | pipeline.txt | 48 | Polygon Culling | 64 | Polygon Offset | 85 | * Polygon Stipple |
|
/external/mesa3d/src/mesa/drivers/common/ |
D | driverfuncs.c | 235 ctx->Driver.CullFace(ctx, ctx->Polygon.CullFaceMode); in _mesa_init_driver_state() 243 ctx->Driver.Enable(ctx, GL_CULL_FACE, ctx->Polygon.CullFlag); in _mesa_init_driver_state() 249 ctx->Driver.Enable(ctx, GL_POLYGON_STIPPLE, ctx->Polygon.StippleFlag); in _mesa_init_driver_state() 267 ctx->Driver.FrontFace(ctx, ctx->Polygon.FrontFace); in _mesa_init_driver_state()
|
/external/mesa3d/src/mesa/tnl/ |
D | t_vb_render.c | 74 #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/ |
D | get_hash.h | 13 { 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_EXT_polygon_offset_clamp … 497 { GL_POLYGON_MODE, CONTEXT_ENUM2(Polygon.FrontMode), NO_EXTRA }, 498 { GL_POLYGON_OFFSET_BIAS_EXT, CONTEXT_FLOAT(Polygon.OffsetUnits), NO_EXTRA }, 499 { GL_POLYGON_OFFSET_POINT, CONTEXT_BOOL(Polygon.OffsetPoint), NO_EXTRA }, [all …]
|