Bug 30385

Summary: [r300g] textures flashing (disappearing) with GLSL
Product: Mesa Reporter: Tomasz Czapiewski <xeros>
Component: Drivers/Gallium/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: xeros
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Photo of problem with blur in KDE 4.5.1
Photo of invisible textures in Nexuiz #1
Problem with invisible textures in Nexuiz #2

Description Tomasz Czapiewski 2010-09-26 10:22:00 UTC
I'm having some textures flashing (very quick showing and disappearing) in when I enable GLSL shading. The problem I see when I enable blur effect in KDE 4.5.1 (some windows and panels are showing and disappearing) and in Nexuiz when I enable to use GLSL option in game settings menu. When textures are disappearing I can see through walls in Nexuiz or see my desktop wallpaper when I should see application window. It can be seen in game menu, too where
'Settings', 'About' and 'Quit' menus are flashing. It's flashing very quickly and cannot be seen on Nexuiz screenshots (I've done almost 100 of them to check).

kernel: linux-image-2.6.35-22-generic (2.6.35-22.33)                            
xorg: 7.5+6ubuntu3                                                              
xserver-xorg-core: 2:1.9.0-0ubuntu7                                             
mesa: 7.10.0~git20100925+gallium+r300.58c24390-0ubuntu0tormod                   
graphic card: Sapphire Radeon 9600 256MB AGP (RV350)

OpenGL vendor string: X.Org R300 Project
OpenGL renderer string: Gallium 0.4 on RV350
OpenGL version string: 2.1 Mesa 7.10-devel
OpenGL shading language version string: 1.20

01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV350 AP [Radeon
9600] [1002:4150]
01:00.1 Display controller [0380]: ATI Technologies Inc RV350 AP [Radeon 9600]
(Secondary) [1002:4170]
Comment 1 Tomasz Czapiewski 2010-09-26 12:35:58 UTC
Created attachment 38971 [details]
Photo of problem with blur in KDE 4.5.1

Here the bottom panel does not show anything but the active window and time (everything else is invisible there) and window decoration is invisible, too.
Comment 2 Tomasz Czapiewski 2010-09-26 12:42:19 UTC
Created attachment 38972 [details]
Photo of invisible textures in Nexuiz #1

Some textures look here like semi-transparent but they aren't, they change from visible to invisible... so quickly.
Comment 3 Tomasz Czapiewski 2010-09-26 12:45:07 UTC
Created attachment 38973 [details]
Problem with invisible textures in Nexuiz #2
Comment 4 Tomasz Czapiewski 2010-09-26 14:05:09 UTC
Maybe this will be usefull - After some searching for a way to improve FPS (by disabling vblank(?)), I've found that setting "vblank_mode=0" environment variable solved this issue (textures are not invisible anymore) in Nexuiz instead of disabling the limit of FPS to 30 or 60 FPS in game.

Sorry for off-topic but is there a way to disable this FPS limit by vsync in games? I'd rather want to have 40-50 FPS rather than 30 if the game on my PC could not get full 60 FPS. "vblank_mode=0" works for disabling this limit in glxgears but not in Nexuiz (I've tried to force disable it by driconf and in game, too).
Comment 5 Michel Dänzer 2010-09-27 04:19:46 UTC
The Nexuiz issue looks like bug 28341, but that was in r300c and fixed a while ago... I wonder if somehow you might be using libGL.so.1 / r300_dri.so binaries different from the ones you think, or if they might be built incorrectly.
Comment 6 Tomasz Czapiewski 2010-09-27 05:31:32 UTC
(In reply to comment #5)
> The Nexuiz issue looks like bug 28341, but that was in r300c and fixed a while
> ago... I wonder if somehow you might be using libGL.so.1 / r300_dri.so binaries
> different from the ones you think, or if they might be built incorrectly.

I'm not sure how the drivers and mesa were built (it's ppa:xorg-edgers/radeon: https://edge.launchpad.net/~xorg-edgers/+archive/radeon for Ubuntu 10.04, but I used it on Kubuntu 10.10 and both mesa and dri have been upgraded) and I'm almost sure I'm using r300g, not r300c (glxinfo output: "OpenGL renderer string: Gallium 0.4 on RV350"). I haven't seen the picture of the problem in bug 28341, but I don't have "*ERROR* Invalid command stream !" error or any other related errors in dmesg.
Comment 7 Tomasz Czapiewski 2010-09-28 12:22:19 UTC
I've tried different vblank_mode settings and with set to 0 or 1 the problem is gone but after setting it to more than 1 or without any vblank_mode setting the problem is still there on Mesa 7.10.0~git20100927+gallium+r300.029c099b-0ubuntu0tormod.
What can I do more to get more information to help track this bug?
As I've said before, there's no error in dmesg or other logs for this issue.
Comment 8 Tomasz Czapiewski 2010-10-12 15:52:02 UTC
The problem has been fixed by installing yesterday's xorg-edgers/radeon ppa packages for Ubuntu 10.10 Maverick.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.