Mesa (master): nouveau/nv40: quiten coverity warning in unused vertex texture code.

Dave Airlie airlied at kemper.freedesktop.org
Tue Sep 2 00:08:21 UTC 2014


Module: Mesa
Branch: master
Commit: ea88b1de2fb589221b2d12595706daf712e4abd8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea88b1de2fb589221b2d12595706daf712e4abd8

Author: Dave Airlie <airlied at redhat.com>
Date:   Tue Sep  2 08:55:55 2014 +1000

nouveau/nv40: quiten coverity warning in unused vertex texture code.

This fixes the code, but we never run it anyways, so silence coverity.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/nouveau/nv30/nv40_verttex.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/nouveau/nv30/nv40_verttex.c b/src/gallium/drivers/nouveau/nv30/nv40_verttex.c
index 5c7fc62..48b8c5a 100644
--- a/src/gallium/drivers/nouveau/nv30/nv40_verttex.c
+++ b/src/gallium/drivers/nouveau/nv30/nv40_verttex.c
@@ -42,6 +42,7 @@ 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;




More information about the mesa-commit mailing list