Bug 27016

Summary: If the source of composition is a window, it is clipped wrongly.
Product: xorg Reporter: Kusanagi Kouichi <slash>
Component: Server/Acceleration/EXAAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg.conf
none
Xorg.0.log
none
testcase
none
testcase
none
expected result
none
actual result
none
possible fix none

Description Kusanagi Kouichi 2010-03-11 05:24:26 UTC
If the source of composition is a window, only the intersection of it and a rectangle whose position and dimension are (0, 0) and src_width x src_height is used.
Comment 1 Kusanagi Kouichi 2010-03-11 05:25:52 UTC
Created attachment 33950 [details]
xorg.conf
Comment 2 Kusanagi Kouichi 2010-03-11 05:26:23 UTC
Created attachment 33951 [details]
Xorg.0.log
Comment 3 Kusanagi Kouichi 2010-03-11 05:28:08 UTC
Created attachment 33952 [details]
testcase
Comment 4 Michel Dänzer 2010-03-11 06:28:46 UTC
What's the expected output of the test case?

Does the problem still occur with xserver Git?
Comment 5 Kusanagi Kouichi 2010-03-11 07:32:42 UTC
(In reply to comment #4)
> What's the expected output of the test case?
> 

When any key is pressed on a window, the contents of another window is copied to the window.
Comment 6 Kusanagi Kouichi 2010-03-11 21:22:58 UTC
(In reply to comment #4)
> Does the problem still occur with xserver Git?
> 

Yes, the problem still exists.

This bug doesn't affect a redirected window.
Comment 7 Kusanagi Kouichi 2011-02-25 12:37:43 UTC
Created attachment 43831 [details]
testcase
Comment 8 Kusanagi Kouichi 2011-02-25 12:39:26 UTC
Created attachment 43833 [details]
expected result
Comment 9 Kusanagi Kouichi 2011-02-25 12:41:58 UTC
Created attachment 43836 [details]
actual result

It seems that composite assumes a source drawable is always at (0, 0).
This is true for pixmap and redirected window, but not for unredirected window.
Comment 10 Alex Deucher 2011-02-25 14:02:44 UTC
Created attachment 43840 [details] [review]
possible fix

Does this patch help?  Do solid and copy need something similar?
Comment 11 Kusanagi Kouichi 2011-02-26 00:08:51 UTC
(In reply to comment #9)
> It seems that composite assumes a source drawable is always at (0, 0).
> This is true for pixmap and redirected window, but not for unredirected window.

Sorry, please ignore this. I am confused.
The patch doesn't fix the problem. It also breaks redirected window.
Comment 12 Michel Dänzer 2011-02-26 00:37:13 UTC
This is not something the driver should need to be concerned with. If the driver acceleration hooks aren't called properly, that needs to be fixed in EXA or maybe even higher up.
Comment 13 GitLab Migration User 2018-12-13 18:23:25 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/81.

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.