i965/msaa: flag _NEW_MULTISAMPLE in the brw_tracked_state
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 29 Aug 2012 19:22:11 +0000 (12:22 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Thu, 30 Aug 2012 18:10:50 +0000 (11:10 -0700)
This is required to get the program recompiled when SampleAlphaToCoverage
is enabled.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h

index 817320b8b8f51064f506bebe523d2ba12f385320..7ba13375a6915e6709439f34efbfa4f0b9cca04d 100644 (file)
@@ -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),
index 5e4af2781ea929a3e58afd3326779cf3240dc0fb..293844990995fa6758691e34695fb85ba66dde5f 100644 (file)
@@ -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;