nvc0: force cache flush when binding a new ubo
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 21 Jul 2015 19:58:08 +0000 (21:58 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 21 Jul 2015 20:02:23 +0000 (22:02 +0200)
This fixes the following piglit test:
  ext_transform_feedback-immediate-reuse-uniform-buffer

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c

index b07558ac62cfa8b7dd78dcc3f4ecb6c169717076..242831461ded8da2e5c90c63e681deafce585a08 100644 (file)
@@ -455,6 +455,8 @@ nvc0_constbufs_validate(struct nvc0_context *nvc0)
                PUSH_DATA (push, (i << 4) | 1);
 
                BCTX_REFN(nvc0->bufctx_3d, CB(s, i), res, RD);
+
+               nvc0->cb_dirty = 1; /* Force cache flush for UBO. */
             } else {
                BEGIN_NVC0(push, NVC0_3D(CB_BIND(s)), 1);
                PUSH_DATA (push, (i << 4) | 0);