On Fri, 11 Jun 1999 [EMAIL PROTECTED] wrote:

> On  7 Jun, Holger Waechtler wrote:
> 
> > Hi Ralph,
> 
> Thanks for the response! I'm having another go now that the new asm
> stuff has moved into the main branch.
> 
> > The asm_???.c /.h /.S files are not used at this time. Take a look into
> > the files in src/X86 instead (prefer the experimental-1 CVS branch,
> > there are the 3Dnow related things in this folder, too).
> 
> I notice the 3Dnow directory is empty now. This is obsolete as well?
>
Yes. All x86 allembler is now in src/X86. Later driver-specific stuff will
reside in src/FX/X86 and so on.

 
> > It should work once like this:
> > 
> > For a x86 target, cmopile with -DUSE_X86_ASM -DUSE_MMX_ASM
> > -DUSE_3DNOW_ASM. Your configure script has to test (perhaps by compiling
> > one of the x86/MMX/3dnow files), if the binutils know all necessairy
> > commands. If not, you should not define the relating USE_XXX_ASM.
> 
> Ah, so it's to be USE_MMX_ASM. Better name, I agree.
> 
> This is more or less what we do, except we're adding -DMMX. This is
> causing the problems I think. src/blend.c uses gl_mmx_blend_transparency
> from asm_mmx.c if -DMMX, and as I've said asm_mmx.c is missing the
> headers and doesn't compile. I've removed it from our Makefile.in, but
> we still get an unresolved symbol that way. 
>

Check it out again. I modified them to test at runtime, if the processor
is MMX-capable. The changes are both in the mainstream and the
experimental-1 branch sources.

The code in asm_mmx.c/.h is now translated to assyntax in src/X86/mmx.h
and src/X86/mmx_blend.S.

asm_mmx.c/.h are obsolete now, too.

I'm not shure, if I changed the autoconf stuff in the experimental-1
branch correctly, since I'm not very familiar with it. But I hope.


> I tested this code with the pulsar demo and it seemed to work correctly.
> Also gave a ~20% speedup. Maybe this should be translated into the X86 
> directory? (why not x86 btw? X86 makes me think XFree86.)
> 

Josh gave the directory the name, ask him.


> However, looking at Make-config, I don't see -DMMX or -DUSE_MMX_ASM
> anywhere, nor in the lower-level Makefiles. Am I missing something?
> We can work around all this by disabling mmx entirely (and I guess we
> won't be missing anything :) but it would be nice to get things cleaned
> up.
> 

It's in the new sources. I checked them out yesterday.


- Holger



_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to