Bug 20038 - [945GM] 32x32 GL_RGBA textures get corrupted after suspend/resume cycle
Summary: [945GM] 32x32 GL_RGBA textures get corrupted after suspend/resume cycle
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-02-10 07:52 UTC by Guy Lunardi
Modified: 2009-10-09 14:42 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf (5.23 KB, application/octet-stream)
2009-02-10 07:54 UTC, Guy Lunardi
Details
Xorg.0.log (29.92 KB, text/plain)
2009-02-10 07:54 UTC, Guy Lunardi
Details
dmesg-suspend-resume (125.08 KB, application/octet-stream)
2009-02-10 09:28 UTC, Guy Lunardi
Details
preview-border.png (fullscreen) (197.84 KB, image/png)
2009-02-10 09:30 UTC, Guy Lunardi
Details
preview-border-small.png (small) (29.94 KB, image/png)
2009-02-10 09:30 UTC, Guy Lunardi
Details
preview-glow-right.png (how it is supposed to look) (155.65 KB, image/png)
2009-02-10 09:32 UTC, Guy Lunardi
Details
xrandr --verbose output (9.41 KB, application/octet-stream)
2009-02-10 09:35 UTC, Guy Lunardi
Details
mesa texobj demo without idle function (6.71 KB, patch)
2009-02-11 07:19 UTC, David Reveman
Details | Splinter Review

Description Guy Lunardi 2009-02-10 07:52:53 UTC
It would appear that on my system, small 32x32 GL_RGBA textures used for borders around window previews get corrupted after a suspend/resume cycle


> /sbin/lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)

> uname -a
Linux bibou 2.6.27.8-1-pae #1 SMP 2008-12-08 03:55:28 +0100 i686 i686 i386 GNU/Linux

> glxinfo 
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
[...]
client glx vendor string: SGI
client glx version string: 1.4
[...]
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 945GM 20080716 x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.2
[...]
glu version: 1.3
[...]

> cat /etc/SuSE-release 
SUSE Linux Enterprise Desktop 11 (i586)
VERSION = 11
PATCHLEVEL = 0



Reproducible: 100%
 1) enable that compiz is running and windows preview plug-in is enabled
 2) ensure window previews show up when mouse over window list applet
 3) suspend to RAM 
 4) resume from suspend
 5) mouse over the window list applet
 6) you will notice the border and shadows are not properly rendered



Tried to follow the instructions here http://intellinuxgraphics.org/how_to_report_bug.html and will attached the suggested documents.
Comment 1 Guy Lunardi 2009-02-10 07:54:35 UTC
Created attachment 22755 [details]
xorg.conf
Comment 2 Guy Lunardi 2009-02-10 07:54:57 UTC
Created attachment 22756 [details]
Xorg.0.log
Comment 3 Guy Lunardi 2009-02-10 07:58:44 UTC
Will cause the issue to happen again when in the office and will attach the additional documents here (dmesg output and a screenshot). I don't think this is mode related but will check.

Comment 4 Guy Lunardi 2009-02-10 09:28:02 UTC
Created attachment 22760 [details]
dmesg-suspend-resume
Comment 5 Guy Lunardi 2009-02-10 09:30:16 UTC
Created attachment 22761 [details]
preview-border.png (fullscreen)
Comment 6 Guy Lunardi 2009-02-10 09:30:47 UTC
Created attachment 22762 [details]
preview-border-small.png (small)
Comment 7 Guy Lunardi 2009-02-10 09:32:28 UTC
Created attachment 22763 [details]
preview-glow-right.png (how it is supposed to look)
Comment 8 Guy Lunardi 2009-02-10 09:35:16 UTC
Created attachment 22764 [details]
xrandr --verbose output

This happens when only the LVDS output is enabled or when VGA and LVDS are used together. 

I doubt it is xrandr mode related but here is my xrandr output anyway just in case.

Again regardless of the outputs and mode used, I seem to end up with that texture corrupted.
Comment 9 Eric Anholt 2009-02-10 13:30:53 UTC
I'm betting that this is fixed with GEM+UXA.
Comment 10 David Reveman 2009-02-11 07:19:26 UTC
Created attachment 22824 [details] [review]
mesa texobj demo without idle function
Comment 11 David Reveman 2009-02-11 07:29:19 UTC
not specific to 32x32 GL_RGBA textures. can easily be reproduced with mesa's texobj demo program. it could be specific to indirect rendering only. I attached the source for this demo prog but with the idle function disabled so it only redraws when receiving expose events. suspend seems to fail completely when idle function is enabled and it's constantly redrawing but I guess that's a different issue.

1) start the attached texobj demo with LIBGL_ALWAYS_INDIRECT=1 ./texobj
2) suspend to RAM 
3) resume from suspend
4) the textures used by texobj demo are now corrupt

Comment 12 qwang13 2009-02-11 23:16:44 UTC
> 
> Reproducible: 100%
>  1) enable that compiz is running and windows preview plug-in is enabled
>  2) ensure window previews show up when mouse over window list applet
>  3) suspend to RAM 
>  4) resume from suspend
>  5) mouse over the window list applet
>  6) you will notice the border and shadows are not properly rendered
> 

How to enable windows preview plug-in? Anyone knows that?

Also I remember 945GM will not enable compiz as default. It has some problems on 2008Q3 release. 
Comment 13 Guy Lunardi 2009-02-14 22:53:08 UTC
(In reply to comment #12)
> How to enable windows preview plug-in? Anyone knows that?
The easiest way to do this is to use the "ccsm" application provided on SLED by the compizconfig-settings-manager package. 

The plugin itself "Windows Previews" is actually called thumbnail (libthumbnail.so). It is provided by the compiz-fusion-plugins-main package on SLED.

Within ccsm, you should see the Windows preview configuration and the ability to enable it (check box).

Alternatively, you can try to load the plugins at the command line with something like: "compiz --replace ccp text mousepoll thumbnail"


> Also I remember 945GM will not enable compiz as default. It has some problems
> on 2008Q3 release. 
Generally it is actually running rather well for me. I have used compiz on this machine since early 2006 with the help of David. Lately the number of issues related to compiz on that machine is very small.

No idea if any of this is useful, thank you for looking into it.

Best regards,
-Guy

Comment 14 Eric Anholt 2009-07-30 13:13:47 UTC
So, is this working with GEM and UXA enabled?
Comment 15 Eric Anholt 2009-10-09 14:42:00 UTC
Feedback timeout for reproducing this bug on current software.  Please reopen if you have the issue with the current driver.


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.