From: Ben Skeggs Date: Fri, 21 Mar 2008 12:03:25 +0000 (+1100) Subject: nv40: ensure vb relocs don't end up on list for swtnl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a0dd2e6d162fad6f98f337ee4f6b5dada1e37f3;p=mesa.git nv40: ensure vb relocs don't end up on list for swtnl Avoids bo code bailing out because of mapped buffers being validated. --- diff --git a/src/gallium/drivers/nv40/nv40_draw.c b/src/gallium/drivers/nv40/nv40_draw.c index 7c5e0df5b85..d05e5ad1936 100644 --- a/src/gallium/drivers/nv40/nv40_draw.c +++ b/src/gallium/drivers/nv40/nv40_draw.c @@ -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++) {