WebKit Bugzilla
Attachment 372333 Details for
Bug 198929
: [WebGL] Extensions3DOpenGLES::bindVertexArrayOES() should allow zero array object
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-198929-20190618113214.patch (text/plain), 9.13 KB, created by
Zan Dobersek
on 2019-06-18 02:32:16 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Zan Dobersek
Created:
2019-06-18 02:32:16 PDT
Size:
9.13 KB
patch
obsolete
>Subversion Revision: 246532 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index 61548b320a7c9508f93d4bae785b46e4ae698e61..2e0e29f595249f6d644294f8ff6b17887d95e61e 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,20 @@ >+2019-06-18 Zan Dobersek <zdobersek@igalia.com> >+ >+ [WebGL] Extensions3DOpenGLES::bindVertexArrayOES() should allow zero array object >+ https://bugs.webkit.org/show_bug.cgi?id=198929 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ A 0 object parameter for the glBindVertexArrayOES() call is a valid >+ value since it binds the default vertex array object for any updates and >+ draws. As such the Extensions3DOpenGLES implementation shouldn't return >+ early if the object value is 0. >+ >+ No new tests -- covered by existing tests. >+ >+ * platform/graphics/opengl/Extensions3DOpenGLES.cpp: >+ (WebCore::Extensions3DOpenGLES::bindVertexArrayOES): >+ > 2019-06-17 Sihui Liu <sihui_liu@apple.com> > > -[WKWebsiteDataStore removeDataOfTypes:modifiedSince:completionHandler:] doesn't delete _WKWebsiteDataTypeCredentials >diff --git a/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp b/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp >index b032ed7fc2f4095f38eecbdbede975c6a98e8e11..b2b4b03d5ebc5c2c39e7be4940d965c902955b7c 100644 >--- a/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp >+++ b/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp >@@ -167,9 +167,6 @@ GC3Dboolean Extensions3DOpenGLES::isVertexArrayOES(Platform3DObject array) > > void Extensions3DOpenGLES::bindVertexArrayOES(Platform3DObject array) > { >- if (!array) >- return; >- > m_context->makeContextCurrent(); > if (m_glBindVertexArrayOES) > m_glBindVertexArrayOES(array); >diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog >index c4ec313e8be98b59b10400b1e999f0546b85cb80..f409b085cf4ea229a97d6c3fe5fb6d540b2f7577 100644 >--- a/LayoutTests/ChangeLog >+++ b/LayoutTests/ChangeLog >@@ -1,3 +1,15 @@ >+2019-06-18 Zan Dobersek <zdobersek@igalia.com> >+ >+ [WebGL] Extensions3DOpenGLES::bindVertexArrayOES() should allow zero array object >+ https://bugs.webkit.org/show_bug.cgi?id=198929 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Enable the passing tests and update one baseline. >+ >+ * platform/wpe/TestExpectations: >+ * platform/wpe/webgl/2.0.0/conformance/extensions/oes-vertex-array-object-expected.txt: >+ > 2019-06-17 Saam Barati <sbarati@apple.com> > > [WHLSL] Make .length work >diff --git a/LayoutTests/platform/wpe/TestExpectations b/LayoutTests/platform/wpe/TestExpectations >index d597daf4d5817fb1cb2b86e27008bc23cb360ec4..b278800112b2a32bdc12e0640bc28382bda37339 100644 >--- a/LayoutTests/platform/wpe/TestExpectations >+++ b/LayoutTests/platform/wpe/TestExpectations >@@ -863,7 +863,6 @@ Bug(WPE) loader/stateobjects/pushstate-size.html [ Skip ] > # Failing > Bug(WPE) webgl/1.0.2/conformance/canvas/drawingbuffer-test.html [ Failure ] > Bug(WPE) webgl/1.0.2/conformance/context/premultiplyalpha-test.html [ Failure ] >-Bug(WPE) webgl/1.0.2/conformance/extensions/oes-vertex-array-object.html [ Failure ] > # Timing out > Bug(WPE) webgl/1.0.2/conformance/extensions/oes-texture-float-with-video.html [ Timeout ] > Bug(WPE) webgl/1.0.2/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html [ Timeout ] >@@ -920,7 +919,6 @@ fast/canvas/webgl/multisample-resolve-consistency.html [ Failure ] > fast/canvas/webgl/oes-texture-half-float-with-canvas.html [ Failure ] > fast/canvas/webgl/oes-texture-half-float-with-image.html [ Failure ] > fast/canvas/webgl/oes-texture-half-float-with-video.html [ Failure ] >-fast/canvas/webgl/oes-vertex-array-object.html [ Failure ] > fast/canvas/webgl/premultiplyalpha-test.html [ Failure ] > fast/canvas/webgl/webglcontextchangedevent.html [ Timeout ] > fast/canvas/webgl/webgl2-buffers.html [ Failure ] >diff --git a/LayoutTests/platform/wpe/webgl/2.0.0/conformance/extensions/oes-vertex-array-object-expected.txt b/LayoutTests/platform/wpe/webgl/2.0.0/conformance/extensions/oes-vertex-array-object-expected.txt >index 0347dd944c480f934e4a7ab71cfe3f40a9c2f567..8b18ba00297320d8e7ab3d9315376cfefc21b941 100644 >--- a/LayoutTests/platform/wpe/webgl/2.0.0/conformance/extensions/oes-vertex-array-object-expected.txt >+++ b/LayoutTests/platform/wpe/webgl/2.0.0/conformance/extensions/oes-vertex-array-object-expected.txt >@@ -1,76 +1,5 @@ > This test runs the WebGL Test listed below in an iframe and reports PASS or FAIL. > > Test: ../../resources/webgl_test_files/conformance/extensions/oes-vertex-array-object.html >-[ 1: PASS ] WebGL context exists >-[ 2: PASS ] getError was expected value: INVALID_ENUM : VERTEX_ARRAY_BINDING_OES should not be queryable if extension is disabled >-[ 3: PASS ] Successfully enabled OES_vertex_array_object extension >-[ 4: PASS ] OES_vertex_array_object listed as supported and getExtension succeeded >-[ 5: PASS ] ext.VERTEX_ARRAY_BINDING_OES is 0x85B5 >-[ 6: PASS ] getError was expected value: NO_ERROR : VERTEX_ARRAY_BINDING_OES query should succeed if extension is enabled >-[ 7: PASS ] Default value of VERTEX_ARRAY_BINDING_OES is null >-[ 8: PASS ] gl.getParameter(ext.VERTEX_ARRAY_BINDING_OES) is null >-[ 9: PASS ] gl.getParameter(ext.VERTEX_ARRAY_BINDING_OES) is expected VAO >-[ 10: PASS ] gl.getParameter(ext.VERTEX_ARRAY_BINDING_OES) is expected VAO >-[ 11: PASS ] gl.getParameter(ext.VERTEX_ARRAY_BINDING_OES) is null >-[ 12: PASS ] getError was expected value: INVALID_OPERATION : binding a deleted vertex array object >-[ 13: PASS ] gl.getParameter(ext.VERTEX_ARRAY_BINDING_OES) is null >-[ 14: PASS ] getError was expected value: NO_ERROR : createVertexArrayOES should not set an error >-[ 15: PASS ] vao is non-null. >-[ 16: PASS ] ext.isVertexArrayOES(vao) is false >-[ 17: PASS ] ext.isVertexArrayOES(vao) is true >-[ 18: PASS ] ext.isVertexArrayOES(vao) is true >-[ 19: PASS ] ext.isVertexArrayOES(null) is false >-[ 20: PASS ] All attributes preserved across bindings >-[ 21: PASS ] Vertex attribute values are not attached to bindings >-[ 22: FAIL ] Drawing with the default VAO should pass at (25, 25) expected: 0,0,0,255 was 128,128,128,255 >-[ 23: FAIL ] Drawing with the default VAO should pass at (20, 20) expected: 0,0,0,255 was 128,128,128,255 >-[ 24: FAIL ] Drawing with the default VAO should pass at (15, 15) expected: 0,0,0,255 was 128,128,128,255 >-[ 25: FAIL ] Drawing with the default VAO should pass at (10, 10) expected: 0,0,0,255 was 128,128,128,255 >-[ 26: FAIL ] Drawing with the default VAO should pass at (5, 5) expected: 0,0,0,255 was 255,255,255,255 >-[ 27: FAIL ] Drawing with the default VAO should pass at (0, 0) expected: 0,0,0,255 was 255,255,255,255 >-[ 28: PASS ] Drawing with VAO #0 should pass >-[ 29: PASS ] Drawing with VAO #0 should pass >-[ 30: PASS ] Drawing with VAO #0 should pass >-[ 31: PASS ] Drawing with VAO #0 should pass >-[ 32: PASS ] Drawing with VAO #0 should pass >-[ 33: PASS ] Drawing with VAO #0 should pass >-[ 34: PASS ] Drawing with VAO #1 should pass >-[ 35: PASS ] Drawing with VAO #1 should pass >-[ 36: PASS ] Drawing with VAO #1 should pass >-[ 37: PASS ] Drawing with VAO #1 should pass >-[ 38: PASS ] Drawing with VAO #1 should pass >-[ 39: PASS ] Drawing with VAO #1 should pass >-[ 40: PASS ] Drawing with VAO that has the color array disabled should pass >-[ 41: PASS ] Drawing with VAO that has the color array disabled should pass >-[ 42: PASS ] Drawing with VAO that has the color array disabled should pass >-[ 43: PASS ] Drawing with VAO that has the color array disabled should pass >-[ 44: PASS ] Drawing with VAO that has the color array disabled should pass >-[ 45: PASS ] Drawing with VAO that has the color array disabled should pass >-[ 46: PASS ] Drawing after deleting another VAO should pass >-[ 47: PASS ] Drawing after deleting another VAO should pass >-[ 48: PASS ] Drawing after deleting another VAO should pass >-[ 49: PASS ] Drawing after deleting another VAO should pass >-[ 50: PASS ] Drawing after deleting another VAO should pass >-[ 51: PASS ] Drawing after deleting another VAO should pass >-[ 52: PASS ] Drawing after deleting the VAO that was bound should pass >-[ 53: PASS ] Drawing after deleting the VAO that was bound should pass >-[ 54: PASS ] Drawing after deleting the VAO that was bound should pass >-[ 55: PASS ] Drawing after deleting the VAO that was bound should pass >-[ 56: PASS ] Drawing after deleting the VAO that was bound should pass >-[ 57: PASS ] Drawing after deleting the VAO that was bound should pass >-[ 58: PASS ] should be green >-[ 59: PASS ] should be green >-[ 60: PASS ] should be 255,0,0,255 >-[ 61: PASS ] should be 0,255,0,255 >-[ 62: PASS ] should be 0,0,255,255 >-[ 63: PASS ] should be 0,255,255,255 >-[ 64: PASS ] getError was expected value: INVALID_OPERATION : Draw call should fail. >-[ 65: PASS ] getError was expected value: NO_ERROR : Draw call should not fail. >-[ 66: PASS ] getError was expected value: NO_ERROR : Draw call should not fail. >-[ 67: PASS ] getError was expected value: NO_ERROR : Draw call should not fail. >-[ 68: PASS ] should be red >-[ 69: PASS ] should be green >-[ 70: PASS ] getError was expected value: NO_ERROR : there should be no errors >-[ 71: PASS ] successfullyParsed is true >-[ FAIL ] 6 failures reported >+[ PASS ] All tests passed >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 198929
:
372264
| 372333