Viewport redraw problem under Linux

Hi,

I started evaluating blender recently and I have been annoyed by a graphics related problem. I spent a few hours trying to resolve it by without success and decided to post here to get some guidance. I do not know where to look for a solution

Symptoms

Blender works perfectly with one exception: when I press ‘b’ on the keyboard to do a box selection the viewport is not redrawn is not redrawn anymore and the caret leaves traces on the screen like this:

http://www.noirextreme.com/files/blender_ati_oss_small.png

click here for the full screenshot.

As you can see anything drawn on the viewport leaves a trail, including the KSnapShot logo that was bouncing when I launched it to take this screenshot.

As soon as I click on the viewport things go back to normal.

This behaviour makes it almost impossible to work as I have to select elements on the screen blindly.

I do not know whether this is a graphics driver problem, a DRI problem an OpenGL problem or a Blender problem! Please help me look in the right direction.

My system
P4 2.66Ghz
Intel E7205 chipset
1Gb of RAM
Radeon 9700Pro 128MB

My configuration
Gentoo Linux 2.6.23-r3
ATI open source driver (“radeon” kernel module)
Xorg 7.2
mesa 6.5.2-r1
Blender 2.45 (tested both compiled by portage an pre-compiled)

xorg.conf
Section “Device”
Identifier “ATI Radeon 9700 Pro”
Driver “radeon”
VideoRam 131072

    # acceleration
    Option          "AGPMode" "8"

Option “AGPFastWrite” “yes” # crashes kernel

    Option          "EnablePageFlip" "on"

Option “RenderAccel” “on” not supported on 9700Pro

    Option          "AccelMethod"   "XXA" # or EXA for composite

Option “BackingStore” “true”

Option “ExaNoOffscreenPixmaps”

    # Color Tiling
    Option          "ColorTiling"   "on"

EndSection

~/.drirc
<driconf>
<device screen=“0” driver=“r300”>
<application name=“Default”>
<option name=“force_s3tc_enable” value=“false” />
<option name=“no_rast” value=“false” />
<option name=“fthrottle_mode” value=“2” />
<option name=“tcl_mode” value=“3” />
<option name=“texture_depth” value=“0” />
<option name=“disable_s3tc” value=“false” />
<option name=“no_neg_lod_bias” value=“false” />
<option name=“command_buffer_size” value=“8” />
<option name=“round_mode” value=“0” />
<option name=“dither_mode” value=“0” />
<option name=“texture_coord_units” value=“8” />
<option name=“disable_lowimpact_fallback” value=“true” />
<option name=“texture_image_units” value=“8” />
<option name=“def_max_anisotropy” value=“1.0” />
<option name=“color_reduction” value=“1” />
<option name=“vblank_mode” value=“1” />
</application>
</device>
</driconf>

Thanks beforehand for your help.

~/jc

Same problem here.

My setup is Linux Fedora 8, xorg Radeon driver, Radeon 9100 chipset.

Edit: I’ll try to have a look at the problem if I find some time this week-end.
I’ve already found a bug in Mesa Radeon R200 driver last week: it has a bug in GL_LINE_LOOP mode wich cause some interface elements in Blender to be badly drawn (last vertex in GL_LINE_LOOP list is not linked to first one).

It looks like it is a Mesa/DRI bug, and it is fixed in Mesa 7.0.2.
I’ve just compiled and installed Mesa 7.0.2 (to check the fix for my other problem) and the redraw bug in Border Select mode has disappeared.

To be sure my analysis is correct, I switched back to Mesa 7.0.1: redraw bug is back.

Edit: typo

Confirmed fixed with upgrade to mesa 7.0.2.

Thanks a million!

/~jc