[Mesa-dev] [PATCH] nv30: Clear dirty bit for processed samplers.
Vinson Lee
vlee at freedesktop.org
Thu Aug 29 13:40:21 PDT 2013
Otherwise, the while(dirty) loop will never exit.
Fixes "Infinite loop" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at 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
More information about the mesa-dev
mailing list