i965/gen6: Don't update unit state when samplers change.
authorEric Anholt <eric@anholt.net>
Thu, 1 May 2014 20:49:57 +0000 (13:49 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 3 May 2014 00:01:40 +0000 (17:01 -0700)
There's no remaining dependency between these two packets that I can find.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_vs_state.c
src/mesa/drivers/dri/i965/gen6_wm_state.c

index 0af87d1f4dfb8a3571c070c0a53141fa96501d12..25f55c47d9eb3609316f6654d225c255c0bad0a8 100644 (file)
@@ -218,7 +218,7 @@ const struct brw_tracked_state gen6_vs_state = {
                BRW_NEW_VERTEX_PROGRAM |
                BRW_NEW_BATCH |
                 BRW_NEW_PUSH_CONSTANT_ALLOCATION),
-      .cache = CACHE_NEW_VS_PROG | CACHE_NEW_SAMPLER
+      .cache = CACHE_NEW_VS_PROG
    },
    .emit = upload_vs_state,
 };
index 742a52e8f9d9aea38b87bf7125d4cf7dbfb736fa..3f5dd29487f5215ed8b28ab3ab95d0a081ef142a 100644 (file)
@@ -330,8 +330,7 @@ const struct brw_tracked_state gen6_wm_state = {
       .brw   = (BRW_NEW_FRAGMENT_PROGRAM |
                BRW_NEW_BATCH |
                 BRW_NEW_PUSH_CONSTANT_ALLOCATION),
-      .cache = (CACHE_NEW_SAMPLER |
-               CACHE_NEW_WM_PROG)
+      .cache = (CACHE_NEW_WM_PROG)
    },
    .emit = upload_wm_state,
 };