nouveau: Convert to use GLbitfield64 directly.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Thu, 22 Dec 2011 19:12:20 +0000 (20:12 +0100)
committerMathias Fröhlich <Mathias.Froehlich@web.de>
Wed, 28 Dec 2011 06:35:23 +0000 (07:35 +0100)
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmare.com>
src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c
src/mesa/drivers/dri/nouveau/nv04_render.c

index f084f89d29ef9066e56439220e25fe21330eb3ff..26c4c7ee2d75514b0622bec363276b07fa7f45aa 100644 (file)
@@ -123,7 +123,7 @@ swtnl_choose_attrs(struct gl_context *ctx)
                if (!sa->fields)
                        continue; /* Unsupported attribute. */
 
-               if (RENDERINPUTS_TEST(tnl->render_inputs_bitset, i)) {
+               if (tnl->render_inputs_bitset & BITFIELD64_BIT(i)) {
                        if (sa->fields > 0)
                                fields = sa->fields;
                        else
index ad45093edd1f10531b4bfa1859bd15aecb2d83cc..3061ae5f552a62a5873161d62acda6a7905c4520 100644 (file)
@@ -55,7 +55,7 @@ swtnl_emit_attr(struct gl_context *ctx, struct tnl_attr_map *m, int attr, int em
 {
        TNLcontext *tnl = TNL_CONTEXT(ctx);
 
-       if (RENDERINPUTS_TEST(tnl->render_inputs_bitset, attr))
+       if (tnl->render_inputs_bitset & BITFIELD64_BIT(attr))
                *m = (struct tnl_attr_map) {
                        .attrib = attr,
                        .format = emit,