Benno,

    Since you seem to be the only one working on unichrome support,
you might as well get a freedesktop account so you can commit patches
directly:
http://www.freedesktop.org/wiki/AccountRequests

Alex

On Nov 8, 2007 6:22 PM, Benno Schulenberg <[EMAIL PROTECTED]> wrote:
> Signed-off-by: Benno Schulenberg <[EMAIL PROTECTED]>
> ---
>  src/mesa/drivers/dri/unichrome/via_tris.c |   19 ++++++++-----------
>  1 files changed, 8 insertions(+), 11 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/unichrome/via_tris.c 
> b/src/mesa/drivers/dri/unichrome/via_tris.c
> index 73e6626..b97dacd 100644
> --- a/src/mesa/drivers/dri/unichrome/via_tris.c
> +++ b/src/mesa/drivers/dri/unichrome/via_tris.c
> @@ -625,13 +625,12 @@ static void viaFastRenderClippedPoly(GLcontext *ctx, 
> const GLuint *elts,
>      }
>  }
>
> +
>  /**********************************************************************/
>  /*                    Choose render functions                         */
>  /**********************************************************************/
>
>
> -
> -
>  #define _VIA_NEW_VERTEX (_NEW_TEXTURE |                         \
>                           _DD_NEW_SEPARATE_SPECULAR |            \
>                           _DD_NEW_TRI_UNFILLED |                 \
> @@ -665,16 +664,17 @@ static void viaChooseRenderState(GLcontext *ctx)
>        vmesa->drawTri = via_draw_triangle;
>     }
>
> -   if (flags & (ANY_FALLBACK_FLAGS|ANY_RASTER_FLAGS)) {
> +   if (flags & (ANY_FALLBACK_FLAGS | ANY_RASTER_FLAGS)) {
>        if (ctx->Light.Enabled && ctx->Light.Model.TwoSide)
>           index |= VIA_TWOSIDE_BIT;
> -      if (flags & DD_TRI_OFFSET)           index |= VIA_OFFSET_BIT;
>        if (ctx->Polygon.FrontMode != GL_FILL || ctx->Polygon.BackMode != 
> GL_FILL)
>           index |= VIA_UNFILLED_BIT;
> -      if (flags & ANY_FALLBACK_FLAGS)      index |= VIA_FALLBACK_BIT;
> +      if (flags & DD_TRI_OFFSET)
> +         index |= VIA_OFFSET_BIT;
> +      if (flags & ANY_FALLBACK_FLAGS)
> +         index |= VIA_FALLBACK_BIT;
>
> -      /* Hook in fallbacks for specific primitives.
> -       */
> +      /* Hook in fallbacks for specific primitives. */
>        if (flags & POINT_FALLBACK)
>          vmesa->drawPoint = via_fallback_point;
>
> @@ -685,11 +685,8 @@ static void viaChooseRenderState(GLcontext *ctx)
>          vmesa->drawTri = via_fallback_tri;
>     }
>
> -
> -   if ((flags & DD_SEPARATE_SPECULAR) &&
> -       ctx->Light.ShadeModel == GL_FLAT) {
> +   if ((flags & DD_SEPARATE_SPECULAR) && ctx->Light.ShadeModel == GL_FLAT)
>        index = VIA_MAX_TRIFUNC; /* flat specular */
> -   }
>
>     if (vmesa->renderIndex != index) {
>        vmesa->renderIndex = index;
> --
> 1.5.2.5
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Mesa3d-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to