Otherwise, the while(dirty) loop will never exit. Fixes "Infinite loop" defect reported by Coverity.
Signed-off-by: Vinson Lee <v...@freedesktop.org> --- src/gallium/drivers/nv30/nv40_verttex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nv30/nv40_verttex.c b/src/gallium/drivers/nv30/nv40_verttex.c index 4ff2278..b1bc852 100644 --- a/src/gallium/drivers/nv30/nv40_verttex.c +++ b/src/gallium/drivers/nv30/nv40_verttex.c @@ -42,6 +42,8 @@ nv40_verttex_validate(struct nv30_context *nv30) BEGIN_NV04(push, NV40_3D(VTXTEX_ENABLE(unit)), 1); PUSH_DATA (push, 0); } + + dirty &= ~(1 << unit); } nv30->vertprog.dirty_samplers = 0; -- 1.8.3.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev