nouveau: need parenthesis around macro params, generator should be fixed
authorPatrice Mandin <pmandin@caramail.com>
Thu, 6 Sep 2007 17:58:59 +0000 (19:58 +0200)
committerPatrice Mandin <pmandin@caramail.com>
Thu, 6 Sep 2007 17:58:59 +0000 (19:58 +0200)
src/mesa/drivers/dri/nouveau/nouveau_reg.h

index 8758b538c85c7864db2e64803de5b0bfe1873ff6..b5e40dd6c64e1e691862190512c2618a918c1fe4 100644 (file)
@@ -502,7 +502,7 @@ Object NV11_TCL_PRIMITIVE_3D used on: NV15
 #      define          NV10_TCL_PRIMITIVE_3D_VERTEX_FOG_1F                     0x00000ce0
 #      define          NV10_TCL_PRIMITIVE_3D_VERTEX_WGH_1F                     0x00000ce4
 #      define          NV10_TCL_PRIMITIVE_3D_EDGEFLAG_ENABLE                   0x00000cec
-#      define          NV10_TCL_PRIMITIVE_3D_VERTEX_ATTR( d)                   (0x00000d04 + d * 0x0008)       /* Parameters: stride fields type */
+#      define          NV10_TCL_PRIMITIVE_3D_VERTEX_ATTR( d)                   (0x00000d04 + ((d) * 0x0008))   /* Parameters: stride fields type */
 #      define          NV10_TCL_PRIMITIVE_3D_VERTEX_ARRAY_VALIDATE             0x00000cf0
 #      define          NV10_TCL_PRIMITIVE_3D_VERTEX_ARRAY_OFFSET_POS           0x00000d00
 #      define          NV10_TCL_PRIMITIVE_3D_VERTEX_ARRAY_FORMAT_POS           0x00000d04      /* Parameters: stride fields type */