Bug 3785 - Damage ignores clipping information
Summary: Damage ignores clipping information
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-15 19:20 UTC by Jorn Baayen
Modified: 2018-12-17 17:18 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch against xserver (1.61 KB, patch)
2005-10-09 09:04 UTC, Jorn Baayen
no flags Details | Splinter Review
Patch against xc (16.05 KB, patch)
2005-10-09 09:04 UTC, Jorn Baayen
no flags Details | Splinter Review

Description Jorn Baayen 2005-07-15 19:20:03 UTC
Damage presently ignores GC clipping information, causing damage to be
overreported. A fix has been committed to kdrive:

http://cvs.freedesktop.org/xserver/xserver/miext/damage/damage.c?r1=1.14&r2=1.15

To this report I'll attach a patch that fixes the same issue for xorg damage,
taking out an earlier fix that partially fixed overreporting. The previous fix
interesected against the window clip list according to the sub window mode. This
is not needed for the new fix because pGC->pCompositeClip is the intersection
between the window (depending on the sub window mode) and client clips already.

One thing I don't understand about the previous fix is why it only clipped when
there was no backing store ?
Comment 1 Jorn Baayen 2005-07-15 19:20:33 UTC
Created attachment 3089 [details] [review]
Debug patch with fix
Comment 2 Keith Packard 2005-07-28 15:14:21 UTC
ah, backing store is evil. composite clip doesn't include the region preserved
in backing store. we need to reimplement backing store in terms of composite and
get rid of the existing horror show. so, we need to not clip damage at all when
backing store is enabled, so the fix in xserver is incomplete.
Comment 3 Jorn Baayen 2005-07-28 17:53:56 UTC
Created attachment 3175 [details] [review]
Proposed patch

New patch does not clip if backing store is enabled.
Comment 4 Jorn Baayen 2005-07-28 17:56:43 UTC
Created attachment 3176 [details] [review]
xls_locale_en_US

This patch adds the backing store exception to xserver damage. If this looks
good, I can get mallum to commit it again.
Comment 5 Jorn Baayen 2005-07-29 00:28:50 UTC
Created attachment 3178 [details] [review]
fixes it

Only cast to WindowPtr when actually dealing with a window.
Comment 6 Jorn Baayen 2005-07-29 00:29:48 UTC
Created attachment 3179 [details]
The Bulgarian translation

See last comment.
Comment 7 Alan Coopersmith 2005-10-09 00:50:58 UTC
Previously attached patches lost in bugzilla disk death - links now point to 
other files.   Please re-attach.
Comment 8 Jorn Baayen 2005-10-09 09:04:36 UTC
Created attachment 3523 [details] [review]
Patch against xserver
Comment 9 Jorn Baayen 2005-10-09 09:04:59 UTC
Created attachment 3524 [details] [review]
Patch against xc
Comment 10 Daniel Stone 2007-02-27 01:27:19 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 11 Michel Dänzer 2009-09-01 01:11:31 UTC
(In reply to comment #2)
> ah, backing store is evil. composite clip doesn't include the region preserved
> in backing store. we need to reimplement backing store in terms of composite and
> get rid of the existing horror show. so, we need to not clip damage at all when
> backing store is enabled, so the fix in xserver is incomplete.

Backing store has been reimplemented in terms of Composite, so is this valid now?


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.