-/* $Id: svgamesa.c,v 1.2 2000/01/22 20:08:36 brianp Exp $ */
+/* $Id: svgamesa.c,v 1.3 2000/01/23 17:49:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
-/* $Id: svgamesa15.c,v 1.2 2000/01/22 20:08:36 brianp Exp $ */
+/* $Id: svgamesa15.c,v 1.3 2000/01/23 17:49:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Additional authors: Slawomir Szczyrba <steev@hot.pl> (Mesa 3.2)
*/
+#ifdef SVGA
#include "svgapix.h"
rgba[i][BCOMP] = ((pix )<<3) & 0xff;
}
}
+
+#endif
-/* $Id: svgamesa16.c,v 1.2 2000/01/22 20:08:36 brianp Exp $ */
+/* $Id: svgamesa16.c,v 1.3 2000/01/23 17:49:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Additional authors: Slawomir Szczyrba <steev@hot.pl> (Mesa 3.2)
*/
+#ifdef SVGA
#include "svgapix.h"
rgba[i][BCOMP] = ((pix )<<3) & 0xff;
}
}
+
+#endif
-/* $Id: svgamesa24.c,v 1.2 2000/01/22 20:08:36 brianp Exp $ */
+/* $Id: svgamesa24.c,v 1.3 2000/01/23 17:49:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Additional authors: Slawomir Szczyrba <steev@hot.pl> (Mesa 3.2)
*/
+#ifdef SVGA
#include "svgapix.h"
_RGB * rgbBuffer;
+#if 0
inline int RGB2BGR24(int c)
{
asm("rorw $8, %0\n"
: "=q"(c):"0"(c));
return c;
}
+#else
+int RGB2BGR24(int c)
+{
+ /* XXX this isn't right */
+ return c;
+}
+#endif
+
int __svga_drawpixel24(int x, int y, GLubyte r, GLubyte g, GLubyte b)
{
unsigned long offset;
*((GLint*)rgba[i]) = RGB2BGR24(__svga_getpixel24( x[i], y[i]));
}
}
+
+#endif
-/* $Id: svgamesa32.c,v 1.2 2000/01/22 20:08:36 brianp Exp $ */
+/* $Id: svgamesa32.c,v 1.3 2000/01/23 17:49:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Additional authors: Slawomir Szczyrba <steev@hot.pl> (Mesa 3.2)
*/
+#ifdef SVGA
#include "svgapix.h"
GLint * intBuffer;
+#if 0
inline int RGB2BGR32(int c)
{
asm("rorw $8, %0\n"
: "=q"(c):"0"(c));
return c;
}
+#else
+int RGB2BGR32(int c)
+{
+ /* XXX this isn't right */
+ return c;
+}
+#endif
int __svga_drawpixel32(int x, int y, unsigned long c)
{
*((GLint*)rgba[i]) = RGB2BGR32(__svga_getpixel32( x[i], y[i] ));
}
}
+
+#endif
+
-/* $Id: svgamesa8.c,v 1.2 2000/01/22 20:08:36 brianp Exp $ */
+/* $Id: svgamesa8.c,v 1.3 2000/01/23 17:49:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Additional authors: Slawomir Szczyrba <steev@hot.pl> (Mesa 3.2)
*/
+#ifdef SVGA
+
#include "svgapix.h"
}
}
+
+#endif