I can answer that.  Add this to the bottom of EnvLinux:

int GetNumProcessors() {
    return (1);
}

It's OK, they just return 2 for Irix ;-)

Exercise for the reader: what's the *correct* way to implement this 
function?

Dieter N�tzel wrote:

>>Forwarding to dri-devel.
>>
>>-------- Original Message --------
>>Subject: [Mesa3d-dev] viewperf
>>Date: Tue, 12 Mar 2002 13:51:52 +0100 (MET)
>>From: Klaus Niederkrueger <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>
>>Hi,
>>
>>In the last week I have been playing with the spec-viewperf programs and
>>(at least on my computer) I get very strange results with "DRV" (the
>>oil-drilling-platform):
>>
>>With Mesa in software-mode (latest CVS) I do not see almost anything. It
>>looks like the triangle-culling was killing the wrong side of the objects.
>>
> 
> Same as below, but slower ;-)
> 
> 
>>If I use XFree-4.2 hw-rendering (Radeon VE), I see many more pipes though
>>the ladders are not visible until the test uses only lines, instead of
>>filled polygons. Also here there still seem to be some mistakes either
>>with clipping (polygons at the border of the screen look strange) or
>>culling (very small polygons seem to be missing) (or both).
>>
> 
> I can second that with tdfx-trunk on V5 5500 AGP.
> 
> 
>>But then I went a step further and compiled the view-perf with the
>>switches "-DMP" and "-lpthread", which seem to enable threads.
>>While all other tests work (as far as I can tell), DRV crashes now. In
>>Software-mode I get a segmentation fault and in hardware mode it says
>>"RadeonSwapBuffers error: some number".
>>
>>Can anybody reproduce these problems?
>>
> 
> I will, but how have you solved the problem below?
> 
> cc -o viewperf objs/Env.o objs/clock.o objs/texture.o objs/viewperf.o 
> objs/eD.o objs/eI.o objs/eDM.o objs/eIM.o objs/eDA.o objs/eIA.o objs/eDMA.o 
> objs/eIMA.o objs/eDW.o objs/eIW.o objs/eDMW.o objs/eIMW.o objs/eDAW.o 
> objs/eIAW.o objs/eDMAW.o objs/eIMAW.o -L/usr/X11R6/lib -Lobjs -Lvpaux/libaux 
> -Lvpaux/libtk -L/usr/lib -L/usr/lib -lvp -lm -lX11 -lXext -laux -lGL -lGLU 
> -lz -lpng -lpthread
> objs/viewperf.o: In function `parse_args':
> objs/viewperf.o(.text+0x7af7): undefined reference to `GetNumProcessors'
> collect2: ld returned 1 exit status
> make: *** [viewperf] Error 1
> 
> `GetNumProcessors' is NOT defined in EnvLINUX.c.
> But in:
> 
> Env.h:int GetNumProcessors();
> EnvAIX.c: * GetNumProcessors - return number of processor on system
> EnvAIX.c:GetNumProcessors()
> EnvSGI.c: * GetNumProcessors - return number of processor on system
> EnvSGI.c:GetNumProcessors()
> EnvWin.c: * GetNumProcessors - return number of processor on system
> EnvWin.c:GetNumProcessors()
> EnvWin2.c: * GetNumProcessors - return number of processor on system
> EnvWin2.c:GetNumProcessors()
> grep: objs: Ist ein Verzeichnis
> grep: pngxor: Ist ein Verzeichnis
> grep: test: Ist ein Verzeichnis
> viewperf.c:       eventblock.threads = GetNumProcessors ();
> grep: vpaux: Ist ein Verzeichnis
> 
> -Dieter
> 
> 




_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to