opengl picking and selection issue

Hello, I have some problems with integration of picking and selection in my programs. Here is one of them.

Recently I downloaded and compiled Mesa and installed DRM. All the redbook programs appear to function correctly with DRM, except “picksquares” (Mesa/progs/redbook/picksquares). When I run the program using indirect rendering, the program functions properly. The 3x3 grid of squares is displayed and clicking on any of them will cause the program to correctly identify the square that was selected.

When I use DRM, the program works, but the display is corrupted. When a square is clicked, the grid disappears and is replaced by a random-colored blank screen.

Perhaps this is a driver problem? Is there any quick and easy fix (I need to use DRM in my app)?

Here is some info related to my machine:

  • emachines m5310 running FC3
  • from dmesg:
    Linux agpgart interface v0.100 © Dave Jones
    agpgart: Detected Ati IGP320/M chipset
    agpgart: Maximum main memory to use for agp memory: 381M
    agpgart: AGP aperture is 64M @ 0xd4000000
    [drm] Initialized drm 1.0.0 20040925
    Warning: ATI Radeon IGP Northbridge is not yet fully tested.
    ATI Northbridge, reserving I/O ports 0x3b0 to 0x3bb.