nv50: fix vbo_static_attrib method size error
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 3 Sep 2009 10:39:46 +0000 (12:39 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 3 Sep 2009 10:42:42 +0000 (12:42 +0200)
The VTX_ATTR_3/2/1F methods also had size 4 ...
a stupid copy/paste error.

src/gallium/drivers/nv50/nv50_vbo.c

index daa49cf..eeed148 100644 (file)
@@ -313,18 +313,18 @@ nv50_vbo_static_attrib(struct nv50_context *nv50, unsigned attrib,
                so_data  (so, fui(v[3]));
                break;
        case 3:
-               so_method(so, tesla, NV50TCL_VTX_ATTR_3F_X(attrib), 4);
+               so_method(so, tesla, NV50TCL_VTX_ATTR_3F_X(attrib), 3);
                so_data  (so, fui(v[0]));
                so_data  (so, fui(v[1]));
                so_data  (so, fui(v[2]));
                break;
        case 2:
-               so_method(so, tesla, NV50TCL_VTX_ATTR_2F_X(attrib), 4);
+               so_method(so, tesla, NV50TCL_VTX_ATTR_2F_X(attrib), 2);
                so_data  (so, fui(v[0]));
                so_data  (so, fui(v[1]));
                break;
        case 1:
-               so_method(so, tesla, NV50TCL_VTX_ATTR_1F(attrib), 4);
+               so_method(so, tesla, NV50TCL_VTX_ATTR_1F(attrib), 1);
                so_data  (so, fui(v[0]));
                break;
        default: