summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/svga/svgamesa24.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-01-23 17:49:54 +0000
committerBrian Paul <[email protected]>2000-01-23 17:49:54 +0000
commit35a2227547e072f1473a3c2d9c2cfc32462c6cc8 (patch)
treee8c411a4bec6b31076d7ee6dea2c09589c690785 /src/mesa/drivers/svga/svgamesa24.c
parent28cf3043b69a2e6060a9c825029abd4c70977673 (diff)
added #ifdef SVGA, work-around asm code problem
Diffstat (limited to 'src/mesa/drivers/svga/svgamesa24.c')
-rw-r--r--src/mesa/drivers/svga/svgamesa24.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mesa/drivers/svga/svgamesa24.c b/src/mesa/drivers/svga/svgamesa24.c
index 6e31c06713a..c4b78079f48 100644
--- a/src/mesa/drivers/svga/svgamesa24.c
+++ b/src/mesa/drivers/svga/svgamesa24.c
@@ -1,4 +1,4 @@
-/* $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
@@ -27,11 +27,13 @@
* Additional authors: Slawomir Szczyrba <[email protected]> (Mesa 3.2)
*/
+#ifdef SVGA
#include "svgapix.h"
_RGB * rgbBuffer;
+#if 0
inline int RGB2BGR24(int c)
{
asm("rorw $8, %0\n"
@@ -41,8 +43,16 @@ inline int RGB2BGR24(int c)
: "=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;
@@ -199,3 +209,5 @@ void __read_rgba_pixels24( const GLcontext *ctx,
*((GLint*)rgba[i]) = RGB2BGR24(__svga_getpixel24( x[i], y[i]));
}
}
+
+#endif