Use correct macros for packing pixel colors -- this bug is probably
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 18 Jun 2004 10:58:30 +0000 (10:58 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 18 Jun 2004 10:58:30 +0000 (10:58 +0000)
present in many of the other drivers as well.

src/mesa/drivers/dri/i915/intel_span.c

index 90fdd954269daeb05f1d648c3671e3766d9dab5a..456403f2c3400d4ada2f4f1019e178383bea23bc 100644 (file)
@@ -67,7 +67,7 @@
 #define LOCAL_STENCIL_VARS LOCAL_DEPTH_VARS 
 
 #define INIT_MONO_PIXEL(p,color)\
-        p = PACK_COLOR_565(color[0],color[1],color[2])
+        p = INTEL_PACKCOLOR565(color[0],color[1],color[2])
 
 #define CLIPPIXEL(_x,_y) (_x >= minx && _x < maxx && \
                          _y >= miny && _y < maxy)
@@ -181,7 +181,7 @@ do {                                                                \
 
 #undef INIT_MONO_PIXEL
 #define INIT_MONO_PIXEL(p,color)\
-        p = PACK_COLOR_888(color[0],color[1],color[2])
+        p = INTEL_PACKCOLOR8888(color[0],color[1],color[2],color[3])
 
 /* 32 bit, 8888 argb color spanline and pixel functions
  */