Displaying 1 result from an estimated 1 matches for "nv10mvertex".
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
...s, NV10TCL_VERTEX_POS_3F_X, 3);
- OUT_RINGf (chan, vx);
- OUT_RINGf (chan, vy);
- OUT_RINGf (chan, 0.f);
-}
+#define MAP(f, p, v, ...) do { \
+ int __i; \
+ for (__i = 0; __i < sizeof(v)/sizeof(*(v)); __i++) \
+ f(p, __i, v, ## __VA_ARGS__); \
+ } while (0);
-static inline void NV10MVertex(NVPtr pNv, float vx, float vy, float t0x, float t0y, float t1x, float t1y)
+#define xFixedToFloat(v) \
+ ((float)xFixedToInt((v)) + ((float)xFixedFrac(v) / 65536.0))
+
+#define OUT_RINGi(chan, v, i) \
+ OUT_RINGf(chan, xFixedToFloat((v).vector[i]))
+
+static inline void
+emit_vertex(NVPtr pNv, i...