[Mesa-dev] [PATCH 1/2] i965: Add missing _NEW_POLYGON flag to polygon stipple upload.

Yuanhan Liu yuanhan.liu at linux.intel.com
Mon Sep 19 20:21:48 PDT 2011


On Mon, Sep 19, 2011 at 09:31:36AM -0700, Eric Anholt wrote:
> Because we skip the pattern upload when stippling is disabled, we need
> to check again when it might have been turned on.

Reviewed-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
> ---
>  src/mesa/drivers/dri/i965/brw_misc_state.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
> index f7e6e7c..0807554 100644
> --- a/src/mesa/drivers/dri/i965/brw_misc_state.c
> +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
> @@ -450,6 +450,7 @@ static void upload_polygon_stipple(struct brw_context *brw)
>     struct gl_context *ctx = &brw->intel.ctx;
>     GLuint i;
>  
> +   /* _NEW_POLYGON */
>     if (!ctx->Polygon.StippleFlag)
>        return;
>  
> @@ -479,7 +480,8 @@ static void upload_polygon_stipple(struct brw_context *brw)
>  
>  const struct brw_tracked_state brw_polygon_stipple = {
>     .dirty = {
> -      .mesa = _NEW_POLYGONSTIPPLE,
> +      .mesa = (_NEW_POLYGONSTIPPLE |
> +	       _NEW_POLYGON),
>        .brw = BRW_NEW_CONTEXT,
>        .cache = 0
>     },
> -- 
> 1.7.5.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list