i965: Fix incorrect dirty bit in gen6_prepare_wm_push_constants.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 19 Oct 2011 00:05:28 +0000 (17:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Oct 2011 22:25:26 +0000 (15:25 -0700)
We definitely want CACHE_NEW_WM_PROG, not CACHE_NEW_VS_PROG.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen6_wm_state.c

index 00fadb98f1b3527a5e93979d298353bd8f00d6c2..370516d243b9ec84947c86ad18115e679adc5f76 100644 (file)
@@ -49,7 +49,7 @@ gen6_prepare_wm_push_constants(struct brw_context *brw)
    /* XXX: Should this happen somewhere before to get our state flag set? */
    _mesa_load_state_parameters(ctx, fp->program.Base.Parameters);
 
-   /* CACHE_NEW_VS_PROG */
+   /* CACHE_NEW_WM_PROG */
    if (brw->wm.prog_data->nr_params != 0) {
       float *constants;
       unsigned int i;
@@ -85,7 +85,7 @@ const struct brw_tracked_state gen6_wm_constants = {
       .mesa  = _NEW_PROGRAM_CONSTANTS,
       .brw   = (BRW_NEW_BATCH |
                BRW_NEW_FRAGMENT_PROGRAM),
-      .cache = CACHE_NEW_VS_PROG,
+      .cache = CACHE_NEW_WM_PROG,
    },
    .prepare = gen6_prepare_wm_push_constants,
 };