Bug 137879

Summary: [WinCairo] Crash in ATI display driver in accelerated compositing mode.
Product: WebKit Reporter: peavo
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: alex.christensen, bfulgham, commit-queue, darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description peavo 2014-10-20 07:10:06 PDT
I got a crash in the ATI display driver in accelerated compositing mode, which resulted in a Windows blue screen.
This patch is a speculative fix for the crash; a call to use antialiasing when drawing a texture is removed.
I haven't seen the crash after making this change, and I don't think antialiasing is really needed.
It is taken from the GTK implementation, and I can't see any visual differences after removing the call.
Accelerated compositing should also be faster when not doing antialiasing.
Comment 1 peavo 2014-10-20 07:14:32 PDT
Created attachment 240121 [details]
Patch
Comment 2 Darin Adler 2014-10-20 09:58:48 PDT
Comment on attachment 240121 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=240121&action=review

> Source/WebKit/win/WebCoreSupport/AcceleratedCompositingContext.cpp:-106
> -    static_cast<TextureMapperGL*>(m_textureMapper.get())->setEnableEdgeDistanceAntialiasing(true);

Is this code used only in the WinCairo configuration or is it also used in Apple’s Windows port?
Comment 3 Brent Fulgham 2014-10-20 10:15:53 PDT
Comment on attachment 240121 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=240121&action=review

>> Source/WebKit/win/WebCoreSupport/AcceleratedCompositingContext.cpp:-106
>> -    static_cast<TextureMapperGL*>(m_textureMapper.get())->setEnableEdgeDistanceAntialiasing(true);
> 
> Is this code used only in the WinCairo configuration or is it also used in Apple’s Windows port?

This file is only used in the WinCairo port; we don't build it on our port because we do not enable the TEXTURE_MAPPER_GL feature (we use our own compositing code).
Comment 4 Alex Christensen 2014-10-20 18:17:06 PDT
This seems like it is just covering up a bigger problem, but I'd rather have no antialiasing than frequent crashes. Is there an equivalent call in the gtk code?
Comment 5 WebKit Commit Bot 2014-10-20 18:49:47 PDT
Comment on attachment 240121 [details]
Patch

Clearing flags on attachment: 240121

Committed r174919: <http://trac.webkit.org/changeset/174919>
Comment 6 WebKit Commit Bot 2014-10-20 18:49:51 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 peavo 2014-10-20 23:27:07 PDT
(In reply to comment #4)
> This seems like it is just covering up a bigger problem, but I'd rather have
> no antialiasing than frequent crashes. Is there an equivalent call in the
> gtk code?

Yes, the gtk code has the same call.