Ian Romanick wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Brian Paul wrote:
>> Ian Romanick wrote:
>>> Brian Paul wrote:
>>>
>>>> Is the code running for you?
>>>>
>>>> Here it's crashing in the SPE's main() when mfc_get() is called.  I'm 
>>>> debugging bug haven't found the cause yet.
>>> It was working /before/ merging last night's / this morning's changes.
>> Uh, which changes?  A lot of things have been checked in in the past day.
>>
>> Are you debugging this too?  I'm stumped.
> 
> I guess I'm not running this code at all.
> 'LD_PRELOAD=../../lib/libGL.so ./glxinfo' says it's the softpipe Xlib,
> but it should say Cell, right?  Is there some magic incantation that I'm
> missing?

export GALLIUM_CELL=1

I've found the problem, btw.  The SPE's main() is defined as:

main(unsigned long long speid,
      unsigned long long argp)

Those are 64-bit values (though we're compiling with -m32).  So casting 
to unsigned int for the mfc_get() results in a value of zero.

Replacing long long with long seems to do the trick.

I'll clean up things a bit then commit with my other merged changes...

-Brian

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to