Bug 5460 - import miext/shadow from kdrive
Summary: import miext/shadow from kdrive
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: All All
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-30 19:18 UTC by Adam Jackson
Modified: 2006-01-23 05:55 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
miext-shadow-merge-from-kdrive-1.patch (41.80 KB, patch)
2005-12-30 19:21 UTC, Adam Jackson
no flags Details | Splinter Review
miext-shadow-merge-from-kdrive-2.patch (41.65 KB, patch)
2006-01-03 07:29 UTC, Adam Jackson
no flags Details | Splinter Review
miext-shadow-merge-from-kdrive-3.patch (41.60 KB, patch)
2006-01-20 03:04 UTC, Adam Jackson
no flags Details | Splinter Review
last patch didn't compile - this one fixes that. (41.46 KB, patch)
2006-01-20 03:41 UTC, Alan Hourihane
no flags Details | Splinter Review

Description Adam Jackson 2005-12-30 19:18:27 UTC
the kdrive merge depends on semantic changes in libshadow.  those changes have
the advantage of significantly reducing LOC by reusing the Damage machinery, in
addition to cutting a layer out of the GC chain.
Comment 1 Adam Jackson 2005-12-30 19:21:46 UTC
Created attachment 4199 [details] [review]
miext-shadow-merge-from-kdrive-1.patch

there's a subtlety here, which is that shadow is a loadable module in the xorg
ddx.  since they don't bother to check the module version (lame!), it's easiest
to just preserve binary compatibility by keeping the ->damage member around and
filling it in as appropriate.

also this patch will break kdrive, since it still uses the old names of
shadowAdd/shadowRemove instead of the kdrive shadowSet/shadowUnset names.  the
reason again is BC, kdrive is a monolith whereas xorg has an ABI to worry
about.	it's a simple fix though.
Comment 2 Adam Jackson 2006-01-03 07:29:50 UTC
Created attachment 4221 [details] [review]
miext-shadow-merge-from-kdrive-2.patch

first one had a bad config.h stanza.

note that this isn't a complete kdrive import.	there's also some mildly
accelerated code for rotated shadows which isn't brought across yet.  see also
bug #4537, which is a different approach to that issue.
Comment 3 Alan Hourihane 2006-01-13 02:42:50 UTC
Can we get this committed now ?

Also getting damage across would be good.
Comment 4 Alan Hourihane 2006-01-20 01:55:26 UTC
Something is screwy with the patch at line 53 that has ....

@@ -63,1400 +49,121 @@ int shadowGeneration

Comment 5 Adam Jackson 2006-01-20 03:04:53 UTC
Created attachment 4396 [details] [review]
miext-shadow-merge-from-kdrive-3.patch

rediff with -p turned off in case that was the problem
Comment 6 Alan Hourihane 2006-01-20 03:41:00 UTC
Created attachment 4397 [details] [review]
last patch didn't compile - this one fixes that.
Comment 7 Alan Hourihane 2006-01-24 00:55:15 UTC
Committed a slight variation.


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.