nv50,nvc0: Set only NEW_CP_GLOBALS upon binding
authorPierre Moreau <pierre.morrow@free.fr>
Sun, 13 Mar 2016 21:11:30 +0000 (22:11 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 13 Mar 2016 21:34:50 +0000 (22:34 +0100)
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/nv50/nv50_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_state.c

index 6a09808807a566d798f6c60cd5d13000475b1a63..8504ba466cc6b2d82ab7953f224406872f0e2d8e 100644 (file)
@@ -1245,7 +1245,7 @@ nv50_set_global_bindings(struct pipe_context *pipe,
 
    nouveau_bufctx_reset(nv50->bufctx_cp, NV50_BIND_CP_GLOBAL);
 
-   nv50->dirty_cp = NV50_NEW_CP_GLOBALS;
+   nv50->dirty_cp |= NV50_NEW_CP_GLOBALS;
 }
 
 void
index f679578028f494ba70b1648afc2a8107b4131d07..090a03954320e4390229a40ecc1039b67035cd51 100644 (file)
@@ -1342,7 +1342,7 @@ nvc0_set_global_bindings(struct pipe_context *pipe,
 
    nouveau_bufctx_reset(nvc0->bufctx_cp, NVC0_BIND_CP_GLOBAL);
 
-   nvc0->dirty_cp = NVC0_NEW_CP_GLOBALS;
+   nvc0->dirty_cp |= NVC0_NEW_CP_GLOBALS;
 }
 
 void