nouveau/nv40: quiten coverity warning in unused vertex texture code.
authorDave Airlie <airlied@redhat.com>
Mon, 1 Sep 2014 22:55:55 +0000 (08:55 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Sep 2014 00:04:29 +0000 (10:04 +1000)
This fixes the code, but we never run it anyways, so silence coverity.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/nouveau/nv30/nv40_verttex.c

index 5c7fc62d5d1d81f89f055c5fa7ecc6698a7565ed..48b8c5a5ff22771bd6b0e631cf0bce11bba7a573 100644 (file)
@@ -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;