Re: [info-performer] geostate bug?

Date view Thread view Subject view Author view

From: Bram Stolk (bram++at++sara.nl)
Date: 07/24/2003 05:55:06


On Thu, 24 Jul 2003 13:30:39 +0200
rick.van.haasen++at++philips.com wrote:

> If this is the case you could try explicitely initialising shared memory
> with pfInitArenas()
> before calling pfInit

Rick, thanks for your suggestion.
Unfortunately, the behaviour remains unchanged.

However, I think I've found two issues:

(1)
It looks as if the pfdMakeSharedScene() is broken on linux.

(2)
The perfly manual is incorrect.
It lists '-q 0' as default, whereas '-q 1' is default:

       -q <0/1>
           Optimize graphics state by calculating and applying a global
           scene pfGeoState. See pfdMakeSharedScene(3pf) for more
           information. Default is 0 (off).

Running 'perfly -q0 cyl.pfa' has no problems.

This is the mess that pfdMakeSharedScene makes when running without -q flag
specified, or specified as -q1 :

 1097 PF Info: pfdMakeSharedScene scene pfGeoState traversal
 1097 PF Most popular pfGeoState attributes and values:
 1097 PF 1 inheritance of PFSTATE_FRONTMTL
 1097 PF Debug: Using attributes_min for query: [../pfWindow.C:4511]
 1097 PF 1 inheritance of PFSTATE_TEXTURE
 1097 PF 1 inheritance of PFSTATE_COLORTABLE
 1097 PF 1 inheritance of PFSTATE_BACKMTL
 1097 PF 1 inheritance of PFSTATE_LIGHTMODEL
 1097 PF 1 inheritance of PFSTATE_HIGHLIGHT
 1097 PF 1 inheritance of PFSTATE_LPOINTSTATE
 1097 PF Debug: Using attributes_min for query: [../pfWindow.C:4511]
 1097 PF 1 inheritance of PFSTATE_TEXGEN
 1097 PF Debug: Using attributes_min for query: [../pfWindow.C:4511]
 1097 PF 1 inheritance of PFSTATE_TEXENV
 1097 PF 1 specification of PFSTATE_ENLIGHTING -1073745264
 1097 PF Debug: Using attributes_min for query: [../pfWindow.C:4511]
 1097 PF 1 specification of PFSTATE_ENTEXTURE -1073745296
 1097 PF 1 specification of PFSTATE_ENCOLORTABLE -1073745312
 1097 PF 1 inheritance of PFSTATE_SHADEMODEL
 1097 PF 1 specification of PFSTATE_ENWIREFRAME -1073745328
 1097 PF 1 specification of PFSTATE_ENHIGHLIGHTING -1073745344
 1097 PF 1 specification of PFSTATE_CULLFACE -1073745360
 1097 PF 1 specification of PFSTATE_ENLPOINTSTATE -1073745376
 1097 PF 1 specification of PFSTATE_TRANSPARENCY -1073745392
 1097 PF 1 specification of PFSTATE_ANTIALIAS -1073745408
 1097 PF 1 specification of PFSTATE_ALPHAFUNC -1073745424
 1097 PF Debug: Using attributes_min for query: [../pfWindow.C:4511]
 1097 PF 1 specification of PFSTATE_ENTEXGEN -1073745456
 1097 PF 1 specification of PFSTATE_ALPHAREF -1.999565

My guess: the OpenGL|Performer developers at SGI forgot to initialize
the attributes_min structure.
On IRIX, this non initialized memory is set to 0, on linux it is not,
therefore, pfdMakeSharedScene() fails miserably.

Alan, what do you think?

Regards,

     Bram

-- 
------------------------------------------------------------------------------
 Bram Stolk, VR Specialist.
 SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP  AMSTERDAM
 email: bram++at++nospam.sara.nl   Phone +31-20-5923059  Fax +31-20-6683167

"Gates' Law: Every 18 months, the speed of software halves." ------------------------------------------------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jul 24 2003 - 06:07:04 PDT