nv40: ensure vb relocs don't end up on list for swtnl
authorBen Skeggs <skeggsb@gmail.com>
Fri, 21 Mar 2008 12:03:25 +0000 (23:03 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 21 Mar 2008 12:03:25 +0000 (23:03 +1100)
Avoids bo code bailing out because of mapped buffers being validated.

src/gallium/drivers/nv40/nv40_draw.c

index 7c5e0df5b85acb23f7d2d79c3937f92f1d53dde5..d05e5ad19360c2e3cc1e788eda1e334e2a18ff1e 100644 (file)
@@ -236,6 +236,7 @@ nv40_draw_elements_swtnl(struct pipe_context *pipe,
 
        if (!nv40_state_validate_swtnl(nv40))
                return FALSE;
+       nv40->dirty &= ~(1ULL << NV40_STATE_VTXBUF);
        nv40_state_emit(nv40);
 
        for (i = 0; i < PIPE_ATTRIB_MAX; i++) {