From 35a2227547e072f1473a3c2d9c2cfc32462c6cc8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 23 Jan 2000 17:49:54 +0000 Subject: added #ifdef SVGA, work-around asm code problem --- src/mesa/drivers/svga/svgamesa32.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/svga/svgamesa32.c') diff --git a/src/mesa/drivers/svga/svgamesa32.c b/src/mesa/drivers/svga/svgamesa32.c index 204d582cf3..a67188f65c 100644 --- a/src/mesa/drivers/svga/svgamesa32.c +++ b/src/mesa/drivers/svga/svgamesa32.c @@ -1,4 +1,4 @@ -/* $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 @@ -27,11 +27,13 @@ * Additional authors: Slawomir Szczyrba (Mesa 3.2) */ +#ifdef SVGA #include "svgapix.h" GLint * intBuffer; +#if 0 inline int RGB2BGR32(int c) { asm("rorw $8, %0\n" @@ -41,6 +43,13 @@ inline int RGB2BGR32(int c) : "=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) { @@ -174,3 +183,6 @@ void __read_rgba_pixels32( const GLcontext *ctx, *((GLint*)rgba[i]) = RGB2BGR32(__svga_getpixel32( x[i], y[i] )); } } + +#endif + -- cgit v1.2.3