WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
97472
accelerated compositing does not work with ati driver
https://bugs.webkit.org/show_bug.cgi?id=97472
Summary
accelerated compositing does not work with ati driver
arno.
Reported
2012-09-24 11:54:35 PDT
Created
attachment 165419
[details]
testcase Hi, when running gtklauncher with --enable-accelerated-compositing to display a page which needs accelerated composition, the page is all messed up. It looks like some parts contain random data (for example, I sometimes see parts of other application windows). I'm using ubuntu with ati driver (catalyst). I've just switched to mesa driver, and I now don't reproduce the problem. I'm currently setting it to gtk component, but I don't known if it affects other platforms.
Attachments
testcase
(701 bytes, text/html)
2012-09-24 11:54 PDT
,
arno.
no flags
Details
screenshot with --enable-accelerated-compositing and catalyst driver
(8.23 KB, image/png)
2012-09-24 11:55 PDT
,
arno.
no flags
Details
Patch
(2.87 KB, patch)
2012-10-10 13:29 PDT
,
arno.
no flags
Details
Formatted Diff
Diff
Patch
(2.44 KB, patch)
2012-10-10 13:57 PDT
,
arno.
no flags
Details
Formatted Diff
Diff
OOPS, I did not write the changelog. Here is the patch with an edited ChangeLog
(2.45 KB, patch)
2012-10-11 09:44 PDT
,
arno.
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
arno.
Comment 1
2012-09-24 11:55:24 PDT
Created
attachment 165420
[details]
screenshot with --enable-accelerated-compositing and catalyst driver
arno.
Comment 2
2012-10-10 13:23:31 PDT
Actually, not all the page is messed up: only the 100 left pixels, and the 100 top pixels. It looks like it comes from the coordinates of m_parentWindow of RedirectedXCompositeWindow If I call XCreateWindow with x=-50 and y=-50, only the 50 left and top pixels are messed up. It looks like the part of m_window which is at negative coordinates will not be displayed.
arno.
Comment 3
2012-10-10 13:29:11 PDT
Created
attachment 168062
[details]
Patch patch proposal: place m_parentWindow on the right side of the screen
WebKit Review Bot
Comment 4
2012-10-10 13:31:14 PDT
Attachment 168062
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/gtk/RedirectedXCompositeWindow.cpp:137: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/gtk/RedirectedXCompositeWindow.cpp:138: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Martin Robinson
Comment 5
2012-10-10 13:39:27 PDT
Comment on
attachment 168062
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=168062&action=review
> Source/WebCore/platform/gtk/RedirectedXCompositeWindow.cpp:131 > + // some drivers (fglrx) do not display the part of the window at negative > + // positions. So, to put the window at a hidden place, we put it at a > + // positing higher than screen dimensions. > + int screenWidth = WidthOfScreen(screen); > + int screenHeight = HeightOfScreen(screen); > + int windowX = 0; > + int windowY = 0; > + if (screenWidth == INT_MAX) { > + if (screenHeight == INT_MAX) { > + // FIXME: if screen dimensions are maximal in both directions, and > + // we have a faulty driver, we will get a 1px border on bottom and > + // on left of the window which will not be drawn. > + windowX = -1; > + windowY = -1; > + } else > + windowY = screenHeight + 1; > + } else > + windowX = screenWidth + 1;
Could this be rewritten as: int windowX = WidthOfScreen(screen); int windowY = HeightOfScreen(screen); or is it likely that WidthOfScreen or HeightOfScreen will return INT_MAX? That's a really big screen. It seems the worst case is that we'd have some rollover.
>> Source/WebCore/platform/gtk/RedirectedXCompositeWindow.cpp:137 >> + RootWindowOfScreen(screen), > > Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
Please fix this section. The new style is that we should line up the variables.
Martin Robinson
Comment 6
2012-10-10 13:40:20 PDT
(In reply to
comment #5
)
> Could this be rewritten as: > int windowX = WidthOfScreen(screen); > int windowY = HeightOfScreen(screen);
Sorry, I meant int windowX = WidthOfScreen(screen) + 1; int windowY = HeightOfScreen(screen) + 1; If so, you probably don't even need them to be stored in variables.
arno.
Comment 7
2012-10-10 13:57:11 PDT
Created
attachment 168066
[details]
Patch updated patch
WebKit Review Bot
Comment 8
2012-10-10 19:13:01 PDT
Comment on
attachment 168066
[details]
Patch Rejecting
attachment 168066
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: mit-queue/Source/WebKit/chromium/third_party/skia/src --revision 5871 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 48>At revision 5871. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output:
http://queues.webkit.org/results/14249609
arno.
Comment 9
2012-10-11 09:44:37 PDT
Created
attachment 168243
[details]
OOPS, I did not write the changelog. Here is the patch with an edited ChangeLog updated patch
WebKit Review Bot
Comment 10
2012-10-11 10:15:31 PDT
Comment on
attachment 168243
[details]
OOPS, I did not write the changelog. Here is the patch with an edited ChangeLog Clearing flags on attachment: 168243 Committed
r131076
: <
http://trac.webkit.org/changeset/131076
>
WebKit Review Bot
Comment 11
2012-10-11 10:15:35 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug