[Mesa-dev] [PATCH] i965/msaa: flag _NEW_MULTISAMPLE in the brw_tracked_state

Paul Berry stereotype441 at gmail.com
Thu Aug 30 10:04:37 PDT 2012


On 29 August 2012 12:34, Anuj Phogat <anuj.phogat at gmail.com> wrote:

> This is required to get the program recompiled when SampleAlphaToCoverage
> is enabled. Patch also removes a redundant comment in struct
> brw_wm_prog_key.
>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
>

Reviewed-by: Paul Berry <stereotype441 at gmail.com>


> ---
>  src/mesa/drivers/dri/i965/brw_wm.c |    3 ++-
>  src/mesa/drivers/dri/i965/brw_wm.h |    2 +-
>  2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_wm.c
> b/src/mesa/drivers/dri/i965/brw_wm.c
> index 817320b..7ba1337 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm.c
> @@ -685,7 +685,8 @@ const struct brw_tracked_state brw_wm_prog = {
>                 _NEW_LIGHT |
>                 _NEW_FRAG_CLAMP |
>                 _NEW_BUFFERS |
> -               _NEW_TEXTURE),
> +               _NEW_TEXTURE |
> +               _NEW_MULTISAMPLE),
>        .brw   = (BRW_NEW_FRAGMENT_PROGRAM |
>                 BRW_NEW_WM_INPUT_DIMENSIONS |
>                 BRW_NEW_REDUCED_PRIMITIVE),
> diff --git a/src/mesa/drivers/dri/i965/brw_wm.h
> b/src/mesa/drivers/dri/i965/brw_wm.h
> index 5e4af27..2938449 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm.h
> +++ b/src/mesa/drivers/dri/i965/brw_wm.h
> @@ -64,7 +64,7 @@ struct brw_wm_prog_key {
>     GLuint stats_wm:1;
>     GLuint flat_shade:1;
>     GLuint nr_color_regions:5;
> -   GLuint sample_alpha_to_coverage:1; /* _NEW_MULTISAMPLE */
> +   GLuint sample_alpha_to_coverage:1;
>     GLuint render_to_fbo:1;
>     GLuint clamp_fragment_color:1;
>     GLuint line_aa:2;
> --
> 1.7.7.6
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120830/43c17d9d/attachment-0001.html>


More information about the mesa-dev mailing list