Bug 101489

Summary: [BlackBerry] Improper initialization of ANGLEResources
Product: WebKit Reporter: akaushik
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: burg, commit-queue, dino, fspacek, jfeldstein, mifenton, rwlbuis, staikos, tonikitoo, webkit.review.bot, yong.li.webkit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch
none
Patch
none
Patch
darin: review+, commit-queue: commit-queue-
Patch
none
Updated ChangeLog
webkit.review.bot: review-, webkit.review.bot: commit-queue-
Reformatted ChangeLog
webkit.review.bot: review-, webkit.review.bot: commit-queue-
Patch darin: review+, commit-queue: commit-queue-

Description akaushik 2012-11-07 10:49:25 PST
oes_standard_derivatives extension is being enabled by default, without getExtension having been called. This should not be allowed according to Khronos WebGL specs, section 5.14.14.
Comment 1 akaushik 2012-11-07 10:49:57 PST
Created attachment 172838 [details]
proposed patch
Comment 2 George Staikos 2012-11-11 10:20:40 PST
Is this patch inverted?  Also you didn't set r?
Comment 3 Antonio Gomes 2012-11-12 05:51:37 PST
Please write proper titles to your filed bugs.
Comment 4 akaushik 2012-11-12 06:12:50 PST
Fixed title.
Comment 5 akaushik 2012-11-12 06:44:32 PST
MaxDrawBuffers, OES_standard_derivatives, OES_EGL_image_external and ARB_texture_rectangle have already been initialized through ShBuiltInResources function and these fields do not need to be set again in GraphicsContext3dBlackBerry.cpp. In addition, the extension flags cannot be set to true without getExtension having been called (Khronos WebGL specs, section 5.14.14.). Thus these lines need to be removed.
Comment 6 akaushik 2012-11-12 07:40:41 PST
Created attachment 173645 [details]
Patch
Comment 7 Rob Buis 2012-11-12 07:47:52 PST
Comment on attachment 173645 [details]
Patch

Please provide a ChangeLog.
Comment 8 akaushik 2012-11-12 08:29:32 PST
Created attachment 173652 [details]
Patch
Comment 9 Rob Buis 2012-11-15 12:41:50 PST
Comment on attachment 173652 [details]
Patch

Can you try to get this internally reviewed first? At least Yong and I do not know WebGL/ANGLE. Also any PR?
Comment 10 Yong Li 2012-11-15 13:01:50 PST
Comment on attachment 173652 [details]
Patch

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

> Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:-115
> -    ANGLEResources.MaxDrawBuffers = 1; // Always set to 1 for OpenGL ES.
> -    ANGLEResources.OES_standard_derivatives = m_extensions->supports("GL_OES_standard_derivatives");

As Rob said. We need an internal reviewer with expertise of GL stuff. Also ANGLEResources doesn't look like a variable name in WebKit. Can you also rename it to angleResources?
Comment 11 Jonathan Feldstein 2013-01-31 10:40:02 PST
Created attachment 185811 [details]
Patch
Comment 12 Antonio Gomes 2013-02-02 05:02:26 PST
Remove the review flag from akaushik's latest patch, if it is obsolete, please.
Comment 13 WebKit Review Bot 2013-02-02 05:06:45 PST
Comment on attachment 185811 [details]
Patch

Clearing flags on attachment: 185811

Committed r141691: <http://trac.webkit.org/changeset/141691>
Comment 14 Jonathan Feldstein 2013-02-04 10:32:18 PST
Created attachment 186416 [details]
Updated ChangeLog
Comment 15 WebKit Review Bot 2013-02-04 10:33:48 PST
Comment on attachment 186416 [details]
Updated ChangeLog

Rejecting attachment 186416 [details] from review queue.

jfeldstein@rim.com does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.
Comment 16 WebKit Review Bot 2013-02-04 10:34:30 PST
Comment on attachment 186416 [details]
Updated ChangeLog

Rejecting attachment 186416 [details] from commit-queue.

jfeldstein@rim.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 17 Jonathan Feldstein 2013-02-04 10:38:22 PST
Created attachment 186418 [details]
Reformatted ChangeLog
Comment 18 WebKit Review Bot 2013-02-04 10:38:53 PST
Comment on attachment 186418 [details]
Reformatted ChangeLog

Rejecting attachment 186418 [details] from review queue.

jfeldstein@rim.com does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.
Comment 19 WebKit Review Bot 2013-02-04 10:40:07 PST
Comment on attachment 186418 [details]
Reformatted ChangeLog

Rejecting attachment 186418 [details] from commit-queue.

jfeldstein@rim.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 20 Jonathan Feldstein 2013-02-04 11:32:17 PST
Created attachment 186423 [details]
Patch
Comment 21 WebKit Commit Bot 2013-04-09 09:30:29 PDT
Comment on attachment 186423 [details]
Patch

Rejecting attachment 186423 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 186423, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
 2 diffs from patch file(s).
patching file Source/WebCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp
Hunk #1 FAILED at 118.
1 out of 1 hunk FAILED -- saving rejects to file Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp.rej

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', 'Darin Adler']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-commit-queue.appspot.com/results/17641034
Comment 22 Darin Adler 2013-09-13 07:54:52 PDT
Comment on attachment 173652 [details]
Patch

Oops, I just say Yong Li’s comment and realized that maybe I should not have reviewed this. Somebody from RIM can reverse me, but this has been in the review queue for a really long time.
Comment 23 WebKit Commit Bot 2013-09-13 07:55:25 PDT
Comment on attachment 173652 [details]
Patch

Rejecting attachment 173652 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 173652, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
2 diffs from patch file(s).
patching file Source/WebCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp
Hunk #1 FAILED at 111.
1 out of 1 hunk FAILED -- saving rejects to file Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp.rej

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Darin Adler']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.appspot.com/results/1907002