Displaying 1 result from an estimated 1 matches for "nv10exatransformcoord".
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
...NV10TCL_VERTEX_POS_3F_X, 3);
- OUT_RINGf (chan, vx);
- OUT_RINGf (chan, vy);
- OUT_RINGf (chan, 0.f);
+ OUT_RINGi (chan, pos[i], 0);
+ OUT_RINGi (chan, pos[i], 1);
+ OUT_RINGf (chan, 0);
}
-#define xFixedToFloat(v) \
- ((float)xFixedToInt((v)) + ((float)xFixedFrac(v) / 65536.0))
-
-static void
-NV10EXATransformCoord(PictTransformPtr t, int x, int y, float sx, float sy,
- float *x_ret, float *y_ret)
+static inline void
+transform_vertex(PictTransformPtr t, int i, PictVector vs[])
{
- PictVector v;
-
- if (t) {
- v.vector[0] = IntToxFixed(x);
- v.vector[1] = IntToxFixed(y);
- v.vector[2] = xFixed1;
-...