Bug 15097 - xrandr rotation breaks compiz
Summary: xrandr rotation breaks compiz
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Kristian Høgsberg
QA Contact: Xorg Project Team
URL: http://bugs.opencompositing.org/show_...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-17 11:43 UTC by Guillaume Seguin
Modified: 2018-06-12 18:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Report damage for GLX_MESA_copy_sub_buffer (2.49 KB, patch)
2008-03-19 05:44 UTC, Michel Dänzer
no flags Details | Splinter Review

Description Guillaume Seguin 2008-03-17 11:43:59 UTC
(I'm reporting this report against the Intel driver since I have found no better category, but this problem seems to affect other drivers too, such as radeon)

How to reproduce:

- Start compiz
- Rotate the screen using xrandr (e.g. xrandr -o LVDS --rotate left)
=> The screen doesn't get damaged anymore, apart of the mouse cursor

Alternatively, you can rotate the screen and then start compiz, the result is the same.

I tried this on Compiz 0.5.2 to latest git, current stable and git master Xserver/Mesa.

According to the latest comments in the linked Compiz bug report, this is due to the Composite Overlay window not being correctly damaged, which is, according to a Compiz core developper (Dennis "onestone" Kasprzyk) a driver problem and shouldn't be workarounded in Compiz.

Thanks!
Comment 1 Eric Anholt 2008-03-18 18:43:38 UTC
pretty sure this is a server AIGLX implementation issue (we've dealt with it in non-driver-specific ways for direct rendering, and software GLX also works)
Comment 2 Michel Dänzer 2008-03-19 05:06:18 UTC
Which version of xserver is this? AFAICT damage reporting was only added to AIGLX post 1.4.
Comment 3 Guillaume Seguin 2008-03-19 05:19:32 UTC
I have been having this problem in xserver 1.3, 1.4 and a post-1.4 server from git master (after 1.5 branch was created).
Comment 4 Michel Dänzer 2008-03-19 05:44:23 UTC
Created attachment 15294 [details] [review]
Report damage for GLX_MESA_copy_sub_buffer

Hmm, looks like Mesa doesn't report damage for GLX_MESA_copy_sub_buffer, which compiz uses for incremental updates. Does this Mesa patch help?
Comment 5 Tom Jaeger 2008-03-25 23:49:32 UTC
Since I recently failed to get compiz to run on an xserver compiled from, I backported the patch to the version of mesa that ubuntu is using (they call it mesa-7.0.3~rc2).  Unfortunately, the screen still isn't updated.

Come to think of it, this probably isn't too surprising, since compiz uses glXSwapBuffers for fullscreen updates so they should have worked even before the patch.
Comment 6 Tom Jaeger 2008-03-26 00:33:13 UTC
__glXReportDamage in src/glx/x11/dri_glx.c damages the root window.  Is that the problem?
Comment 7 Adam Jackson 2018-06-12 18:43:49 UTC
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.


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.