Bug 27016 - If the source of composition is a window, it is clipped wrongly.
Summary: If the source of composition is a window, it is clipped wrongly.
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Acceleration/EXA (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-11 05:24 UTC by Kusanagi Kouichi
Modified: 2018-12-13 18:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf (954 bytes, text/plain)
2010-03-11 05:25 UTC, Kusanagi Kouichi
no flags Details
Xorg.0.log (39.16 KB, text/plain)
2010-03-11 05:26 UTC, Kusanagi Kouichi
no flags Details
testcase (2.82 KB, text/plain)
2010-03-11 05:28 UTC, Kusanagi Kouichi
no flags Details
testcase (1.95 KB, text/plain)
2011-02-25 12:37 UTC, Kusanagi Kouichi
no flags Details
expected result (4.10 KB, image/png)
2011-02-25 12:39 UTC, Kusanagi Kouichi
no flags Details
actual result (4.91 KB, image/png)
2011-02-25 12:41 UTC, Kusanagi Kouichi
no flags Details
possible fix (6.30 KB, patch)
2011-02-25 14:02 UTC, Alex Deucher
no flags Details | Splinter Review

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.