Stage-3.2.2: Preliminary bug fix for Intel graphics cards (DRM / DRI on i915 / 965GM)

Nikhil Karnad <[email protected]>
Newsgroups gmane.science.robotics.playerstage,gmane.science.robotics.playerstage.user
Message-ID <[email protected]>
Hi all,

First off, for non-Intel-graphics-card users and non-Stage-developers, this
post might not be useful.

I got a problem where Stage-3.2.2 was aborting when trying to render the 3D
structures of the map (bitmap "insert_image_filename_here.pgm") file with a
long backtrace ending up with the Intel i965 DRM/DRI driver's internal
functions on Ubuntu 10.04.

The quick fix on the forums was to turn DRI to "off" in xorg.conf. However,
since I need to run 3D rendering simultaneously (e.g., rviz in ROS), I need
direct rendering to be activated. To reproduce the error, run Stage-3.2.2 on
an Intel 965GM chipset and load any map which will generate a lot of
polygons, e.g. 10,000 separated "wall" pixels in a PGM file. Mine crashed
for as low as 120 "blocks".

After debugging and digging around (including compiling the latest DRM and
Mesa drivers), it looks like the i965 DRI/DRM implementation does not handle
large display lists well and throws a SIGABRT when trying to
copy/move/reallocate vertex buffers.

To remedy this on my local copy of Stage-3.2.2, I changed the code in
blocks.cc and blockgroup.cc to have one 'displaylist' per block and have the
blockgroup 'displaylist' call the containing ones hierarchically. This makes
the error go away for the map I have (tested with up to 10,000 blocks), but
I have not tested it for larger maps. I thought this might help others who
have had the same problem with Intel chipsets and relatively large maps.

I cc'ed the developers list since I'm open to discussion and I would be glad
to help out.

Best,
Nikhil

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev

_______________________________________________
Playerstage-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.