Ok, so I'l build X at 64 bits as having a 32bit kmod would proble mean I'd
need a 32bit kernel.  I have stoped working on this cause I can't build
the DRI tree.  I have a working copy of Xfree86(provided by debian) so it
must be posible to build xfree86.  Could I get a list of all the files
that I'd need to build mach64 in the XFree86 tree?

At the bottom is a patch for xc/lib/GL/mesa/sparc/Imakefile, this fixes
SOME of the problems with the way DRI builds the mesa source tree, if it
dosen't get commited it will get lost.

and eventualy I ran...
cd xc/lib/GL
for fil in $(find -name Imakefile); do
echo '
,s/#ifdef SparcArchitecture$/#ifdef SparcArchitecture \&\& 0/
,s/defined(SparcArchitecture)/defined(SparcArchitecture) \&\& 0/
wq
' | ed $fil; done

But this didn't stop the sparc ASM from getting built.  The overall
problem with it is the global registers need to defined in .register, this
happens for just about every instruction.

../../../../lib/GL/mesa/sparc/xform.S: Assembler messages:
../../../../lib/GL/mesa/sparc/xform.S:25: Error: detected global register
use not covered by .register pseudo-op
../../../../lib/GL/mesa/sparc/xform.S:28: Error: detected global register
use not covered by .register pseudo-op
../../../../lib/GL/mesa/sparc/xform.S:28: Error: detected global register
use not covered by .register pseudo-op
../../../../lib/GL/mesa/sparc/xform.S:28: Error: detected global register
use not covered by .register pseudo-op
../../../../lib/GL/mesa/sparc/xform.S:30: Error: detected global register
use not covered by .register pseudo-op
../../../../lib/GL/mesa/sparc/xform.S:30: Error: detected global register
use not covered by .register pseudo-op


--- Ian Romanick <[EMAIL PROTECTED]> wrote:
> Mike Mestnik wrote:
> 
> > I have a UltraSparc5 with an onboard Rage3D, workes with the mach64
> > driver.  There are some problems with the kernel and PCI domains, but
> I
> > got thoes cleared out.  There is still a problem that the chip is
> stuck in
> > whaterver mode is set by openboot(the bios), but I can change the bit
> > depth.  Other than that and endianess and byte size issues is there
> any
> > thing else that might not work?  I oftan have to build programs with
> the
> > sparc32 command, I hope that X will be no diffrent.  Are any of the
> > fallbacks 64bit accelerated?
> 
> SPARC support has fallen a bit out of date.  I don't think there are any
> 
> rasterization optimizations (i.e., assembly code) for SPARC, and some of
> 
> the TNL assembly code was disabled.  You will need to build both the 
> kernel and user parts for either 32-bit or 64-bit.  Don't mix-and-match.
> 
>   There are known DRI issues if you do that.  Other than that, I think 
> you've already enumerated all of the "obvious" types of problems you may
> 
> run into. :)  Please report back any successes or failures you have.
> 


--- Imakefile   9 Dec 2003 15:33:36 -0000       1.2
+++ Imakefile   17 Feb 2004 02:05:57 -0000
@@ -1,4 +1,6 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/SPARC/Imakefile,v 1.3 2002/11/22
22:55:58 tsi Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/sparc/Imakefile,v 1.8 2002/11/25
12:58:55 tsi Exp $
+
+#include <Threads.tmpl>
 
 /*
  * Need both shared and unshared Mesa objects in the following cases:
@@ -25,33 +27,42 @@
 #endif
 
 
+#define MesaSparcBuildDir /**/
+#define NeedToLinkMesaSrc
+#include "Imakefile.inc"
+
+
 #if Malloc0ReturnsNull
 ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
 #endif
 
-#define MesaSPARCBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
+#if BuildXF86DRI
+  DRI_DEFINES = GlxDefines
+ DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri
-I../../../include \
+               -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
+#endif
 
-      DEFINES = $(ALLOC_DEFINES) GlxDefines $(MESA_ASM_DEFINES)
-     INCLUDES = -I$(INCLUDESRC) -I$(EXTINCSRC) -I$(MESASRCDIR)/src \
-               -I$(MESASRCDIR)/src/SPARC \
-               -I../../../include
+MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \
+               -I$(MESASRCDIR)/src/mesa/main \
+               -I$(MESASRCDIR)/src/mesa/array_cache \
+               -I$(MESASRCDIR)/src/mesa/math \
+               -I$(MESASRCDIR)/src/mesa/glapi \
+               -I$(MESASRCDIR)/src/mesa/swrast \
+               -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
+               -I$(MESASRCDIR)/include \
+               -I../../../include -I$(XINCLUDESRC)
 
+      DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
+     INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
          SRCS = $(MESA_ASM_SRCS)
          OBJS = $(MESA_ASM_OBJS)
 
+
 #include <Library.tmpl>
 
 LibraryObjectRule()
 
-STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES)
-
 SubdirLibraryRule($(OBJS))
 NormalLintTarget($(SRCS))
 
-ObjectFromAsmSource(xform, NullParameter)
-ObjectFromAsmSource(clip, NullParameter)
-ObjectFromAsmSource(norm, NullParameter)
-
 DependTarget()





__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to