mesa: Use defines for the aliased material array attributes.
[mesa.git] / src / mesa / drivers / dri / nouveau / nv10_render.c
index 701ba9a87a894447b3a20a3be2227a7d7921fdea..9b2cf229f8542825fe5a77ae81819ca206cd1120 100644 (file)
@@ -72,19 +72,19 @@ static struct nouveau_attr_info nv10_vertex_attrs[VERT_ATTRIB_MAX] = {
                .imm_method = NV10_3D_VERTEX_FOG_1F,
                .imm_fields = 1,
        },
-       [VERT_ATTRIB_GENERIC0] = {
+       [VERT_ATTRIB_MAT(0)] = {
                .emit = nv10_emit_material,
        },
-       [VERT_ATTRIB_GENERIC2] = {
+       [VERT_ATTRIB_MAT(2)] = {
                .emit = nv10_emit_material,
        },
-       [VERT_ATTRIB_GENERIC4] = {
+       [VERT_ATTRIB_MAT(4)] = {
                .emit = nv10_emit_material,
        },
-       [VERT_ATTRIB_GENERIC6] = {
+       [VERT_ATTRIB_MAT(6)] = {
                .emit = nv10_emit_material,
        },
-       [VERT_ATTRIB_GENERIC8] = {
+       [VERT_ATTRIB_MAT(8)] = {
                .emit = nv10_emit_material,
        },
 };