Remove CVS keywords.
[mesa.git] / src / mesa / drivers / dri / ffb / ffb_pointtmp.h
1
2 static INLINE void TAG(ffb_draw_point)(GLcontext *ctx, ffb_vertex *tmp )
3 {
4 ffbContextPtr fmesa = FFB_CONTEXT(ctx);
5 ffb_fbcPtr ffb = fmesa->regs;
6 FFB_DELAYED_VIEWPORT_VARS;
7
8 #ifdef FFB_POINT_TRACE
9 fprintf(stderr, "FFB: ffb_point ["
10 #if (IND & FFB_POINT_AA_BIT)
11 "AA"
12 #endif
13 "] X(%f) Y(%f) Z(%f)\n",
14 tmp->x, tmp->y, tmp->z);
15 #endif
16
17 #if (IND & FFB_POINT_AA_BIT)
18 FFBFifo(fmesa, 4);
19
20 ffb->fg = FFB_PACK_CONST_UBYTE_ARGB_COLOR( tmp->color[0] );
21 ffb->z = FFB_GET_Z(tmp);
22 ffb->y = FFB_GET_Y(tmp) + 0x8000 /* FIX ME */;
23 ffb->x = FFB_GET_X(tmp) + 0x8000 /* FIX ME */;
24 #else
25 {
26 unsigned int const_fg, const_z, h, w;
27
28 const_fg = FFB_PACK_CONST_UBYTE_ARGB_COLOR( tmp->color[0] );
29 const_z = Z_FROM_MESA(FFB_Z_TO_FLOAT(FFB_GET_Z(tmp)));
30 h = FFB_GET_Y(tmp) >> 16;
31 w = FFB_GET_X(tmp) >> 16;
32 #ifdef FFB_POINT_TRACE
33 fprintf(stderr, "FFB: ffb_point fg(%08x) z(%08x) h(%08x) w(%08x)\n",
34 const_fg, const_z, h, w);
35 #endif
36 FFBFifo(fmesa, 4);
37 ffb->fg = const_fg;
38 ffb->constz = const_z;
39 ffb->bh = h;
40 ffb->bw = w;
41 }
42 #endif
43
44 fmesa->ffbScreen->rp_active = 1;
45 }
46
47
48 static void TAG(init)(void)
49 {
50 ffb_point_tab[IND] = TAG(ffb_draw_point);
51 }
52
53 #undef IND
54 #undef TAG