void nouveau_fallback_line(struct nouveau_context *nmesa, nouveauVertex *v0, nouveauVertex *v1) { GLcontext *ctx = nmesa->glCtx; SWvertex v[2]; _swsetup_Translate(ctx, v0, &v[0]); _swsetup_Translate(ctx, v1, &v[1]); _swrast_Line(ctx, &v[0], &v[1]); }
static void r128_fallback_line( r128ContextPtr rmesa, r128Vertex *v0, r128Vertex *v1 ) { GLcontext *ctx = rmesa->glCtx; SWvertex v[2]; _swsetup_Translate( ctx, v0, &v[0] ); _swsetup_Translate( ctx, v1, &v[1] ); _swrast_Line( ctx, &v[0], &v[1] ); }
/* The fallbacks */ void nouveau_fallback_tri(struct nouveau_context *nmesa, nouveauVertex *v0, nouveauVertex *v1, nouveauVertex *v2) { GLcontext *ctx = nmesa->glCtx; SWvertex v[3]; _swsetup_Translate(ctx, v0, &v[0]); _swsetup_Translate(ctx, v1, &v[1]); _swsetup_Translate(ctx, v2, &v[2]); _swrast_Triangle(ctx, &v[0], &v[1], &v[2]); }
static void via_fallback_line(struct via_context *vmesa, viaVertex *v0, viaVertex *v1) { struct gl_context *ctx = vmesa->glCtx; SWvertex v[2]; _swsetup_Translate(ctx, v0, &v[0]); _swsetup_Translate(ctx, v1, &v[1]); viaSpanRenderStart( ctx ); _swrast_Line(ctx, &v[0], &v[1]); viaSpanRenderFinish( ctx ); }
/* This code is hit only when a mix of accelerated and unaccelerated * primitives are being drawn, and only for the unaccelerated * primitives. */ static void r128_fallback_tri( r128ContextPtr rmesa, r128Vertex *v0, r128Vertex *v1, r128Vertex *v2 ) { GLcontext *ctx = rmesa->glCtx; SWvertex v[3]; _swsetup_Translate( ctx, v0, &v[0] ); _swsetup_Translate( ctx, v1, &v[1] ); _swsetup_Translate( ctx, v2, &v[2] ); _swrast_Triangle( ctx, &v[0], &v[1], &v[2] ); }
static void sis_fallback_line( sisContextPtr smesa, sisVertex *v0, sisVertex *v1 ) { struct gl_context *ctx = smesa->glCtx; SWvertex v[2]; _swsetup_Translate( ctx, v0, &v[0] ); _swsetup_Translate( ctx, v1, &v[1] ); sisSpanRenderStart( ctx ); _swrast_Line( ctx, &v[0], &v[1] ); sisSpanRenderFinish( ctx ); _swrast_flush( ctx ); }
/* This code is hit only when a mix of accelerated and unaccelerated * primitives are being drawn, and only for the unaccelerated * primitives. */ static void via_fallback_tri(struct via_context *vmesa, viaVertex *v0, viaVertex *v1, viaVertex *v2) { GLcontext *ctx = vmesa->glCtx; SWvertex v[3]; _swsetup_Translate(ctx, v0, &v[0]); _swsetup_Translate(ctx, v1, &v[1]); _swsetup_Translate(ctx, v2, &v[2]); viaSpanRenderStart( ctx ); _swrast_Triangle(ctx, &v[0], &v[1], &v[2]); viaSpanRenderFinish( ctx ); }
static void sis_fallback_tri( sisContextPtr smesa, sisVertex *v0, sisVertex *v1, sisVertex *v2 ) { GLcontext *ctx = smesa->glCtx; SWvertex v[3]; _swsetup_Translate( ctx, v0, &v[0] ); _swsetup_Translate( ctx, v1, &v[1] ); _swsetup_Translate( ctx, v2, &v[2] ); sisSpanRenderStart( ctx ); _swrast_Triangle( ctx, &v[0], &v[1], &v[2] ); sisSpanRenderFinish( ctx ); _swrast_flush( ctx ); }
static void intel_fallback_line( intelContextPtr intel, intelVertex *v0, intelVertex *v1 ) { GLcontext *ctx = &intel->ctx; SWvertex v[2]; if (0) fprintf(stderr, "\n%s\n", __FUNCTION__); _swsetup_Translate( ctx, v0, &v[0] ); _swsetup_Translate( ctx, v1, &v[1] ); intelSpanRenderStart( ctx ); _swrast_Line( ctx, &v[0], &v[1] ); intelSpanRenderFinish( ctx ); }
void nouveau_fallback_point(struct nouveau_context *nmesa, nouveauVertex *v0) { GLcontext *ctx = nmesa->glCtx; SWvertex v[1]; _swsetup_Translate(ctx, v0, &v[0]); _swrast_Point(ctx, &v[0]); }
static void r128_fallback_point( r128ContextPtr rmesa, r128Vertex *v0 ) { GLcontext *ctx = rmesa->glCtx; SWvertex v[1]; _swsetup_Translate( ctx, v0, &v[0] ); _swrast_Point( ctx, &v[0] ); }
/* This code is hit only when a mix of accelerated and unaccelerated * primitives are being drawn, and only for the unaccelerated * primitives. */ static void intel_fallback_tri(struct intel_context *intel, intelVertex * v0, intelVertex * v1, intelVertex * v2) { GLcontext *ctx = &intel->ctx; SWvertex v[3]; if (0) fprintf(stderr, "\n%s\n", __FUNCTION__); INTEL_FIREVERTICES(intel); _swsetup_Translate(ctx, v0, &v[0]); _swsetup_Translate(ctx, v1, &v[1]); _swsetup_Translate(ctx, v2, &v[2]); intelSpanRenderStart(ctx); _swrast_Triangle(ctx, &v[0], &v[1], &v[2]); intelSpanRenderFinish(ctx); }
static void via_fallback_point(struct via_context *vmesa, viaVertex *v0) { GLcontext *ctx = vmesa->glCtx; SWvertex v[1]; _swsetup_Translate(ctx, v0, &v[0]); viaSpanRenderStart( ctx ); _swrast_Point(ctx, &v[0]); viaSpanRenderFinish( ctx ); }
static void sis_fallback_point( sisContextPtr smesa, sisVertex *v0 ) { GLcontext *ctx = smesa->glCtx; SWvertex v[1]; _swsetup_Translate( ctx, v0, &v[0] ); sisSpanRenderStart( ctx ); _swrast_Point( ctx, &v[0] ); sisSpanRenderFinish( ctx ); _swrast_flush( ctx ); }