<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>220720</bug_id>
          
          <creation_ts>2021-01-18 20:01:15 -0800</creation_ts>
          <short_desc>REGRESSION(r271444) [WPE] fast/canvas/webgl/oes-vertex-array-object.html is failing</short_desc>
          <delta_ts>2021-07-23 00:32:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGL</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=220372</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=169917</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>dino</cc>
    
    <cc>dpino</cc>
    
    <cc>estea</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>kpiddington</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1720460</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2021-01-18 20:01:15 -0800</bug_when>
    <thetext>fast/canvas/webgl/oes-vertex-array-object.html

Diff:

--- /home/buildbot/worker/wpe-linux-64-release-tests/build/layout-test-results/fast/canvas/webgl/oes-vertex-array-object-expected.txt
+++ /home/buildbot/worker/wpe-linux-64-release-tests/build/layout-test-results/fast/canvas/webgl/oes-vertex-array-object-actual.txt
@@ -36,6 +36,9 @@
 PASS Draw 1 passed pixel test
 PASS Draw 2 passed pixel test
 Testing using deleted buffers referenced by VAOs
+FAIL buffer removed too early
+FAIL buffer removed too early
+FAIL buffer removed too early
 PASS should be 255,0,0,255
 PASS should be 0,255,0,255
 PASS should be 0,0,255,255
@@ -46,6 +49,7 @@
 PASS getError was expected value: NO_ERROR : there should be no errors
 
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE

These &quot;buffer removed too early&quot; also started appearing in GTK results (It already failed there with other assertion errors).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1720627</commentid>
    <comment_count>1</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2021-01-19 12:41:19 -0800</bug_when>
    <thetext>Sorry about this regression which was apparently introduced with the fix for Bug 220372. Can the WPE port switch over to the USE_ANGLE code path? ANGLE runs on Linux, so hopefully this should be a straightforward switch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1768092</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-06-09 00:48:53 -0700</bug_when>
    <thetext>We&apos;re working on enabling ANGLE on GLIB ports.

In the meantime, I&apos;d use this bug the file same regressions for WebKitGTK. Output is slightly different:

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/fast/canvas/webgl/oes-vertex-array-object-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/fast/canvas/webgl/oes-vertex-array-object-actual.txt
@@ -1,3 +1,7 @@
+CONSOLE MESSAGE: *** Error loading shader &apos;[object WebGLShader]&apos;:INVALID_OPERATION
+CONSOLE MESSAGE: Error in compiling shader
+CONSOLE MESSAGE: *** Error loading shader &apos;[object WebGLShader]&apos;:INVALID_OPERATION
+CONSOLE MESSAGE: Error in compiling shader
 This test verifies the functionality of the OES_vertex_array_object extension, if it is available.
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
@@ -32,20 +36,30 @@
 Testing that attribute values are not attached to bindings
 PASS Vertex attribute values are not attached to bindings
 Testing draws with various VAO bindings
-PASS Draw 0 passed pixel test
+FAIL Draw 0 failed pixel test
 PASS Draw 1 passed pixel test
 PASS Draw 2 passed pixel test
 Testing using deleted buffers referenced by VAOs
-PASS should be 255,0,0,255
-PASS should be 0,255,0,255
-PASS should be 0,0,255,255
-PASS should be 0,255,255,255
+FAIL buffer removed too early
+FAIL buffer removed too early
+FAIL buffer removed too early
+FAIL should be 255,0,0,255
+at (0, 0) expected: 255,0,0,255 was 255,255,255,255
+FAIL should be 0,255,0,255
+at (0, 0) expected: 0,255,0,255 was 255,255,255,255
+FAIL should be 0,0,255,255
+at (0, 0) expected: 0,0,255,255 was 255,255,255,255
+FAIL should be 0,255,255,255
+at (0, 0) expected: 0,255,255,255 was 255,255,255,255
 Testing that VAOs don&apos;t effect ARRAY_BUFFER binding.
-PASS should be red
-PASS should be green
-PASS getError was expected value: NO_ERROR : there should be no errors
+FAIL should be red
+at (0, 0) expected: 255,0,0,255 was 255,255,255,255
+FAIL should be green
+at (0, 0) expected: 0,255,0,255 was 255,255,255,255
+FAIL getError expected: NO_ERROR. Was INVALID_OPERATION : there should be no errors
 
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777709</commentid>
    <comment_count>3</comment_count>
      <attachid>433731</attachid>
    <who name="Eleni Maria Stea">estea</who>
    <bug_when>2021-07-17 04:24:07 -0700</bug_when>
    <thetext>Created attachment 433731
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777710</commentid>
    <comment_count>4</comment_count>
    <who name="Eleni Maria Stea">estea</who>
    <bug_when>2021-07-17 04:30:15 -0700</bug_when>
    <thetext>I think that this test should be removed as it is based in the incorrect assumption that deleted buffer names remain valid until the object they used to refer to is destroyed. 

According to the WebGL spec (this paragraph is present in 1.0.0 and on):
https://www.khronos.org/registry/webgl/specs/1.0.3/ 

section: 5.14.5 isBuffer &quot;Return false if the buffer&apos;s invalidated flag is set&quot;, this is not true and names become invalid immediately.

So, the correct behavior is that after the user calls deleteBuffer the buffer is invalidated (== marked as deleted), although it is still valid, and isBuffer returns false. If you check the WebGL implementation of isBuffer, we return false when the object is marked as deleted (m_deleted is true) which is the correct behavior, and that&apos;s why the incorrect test fails.


This patch together with this fix (WIP the MacOSX problem in comments): https://bugs.webkit.org/show_bug.cgi?id=96828 fix make the vertex array OES tests pass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778957</commentid>
    <comment_count>5</comment_count>
      <attachid>433731</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2021-07-22 19:15:08 -0700</bug_when>
    <thetext>Comment on attachment 433731
Patch

This test is quite out of date with respect to the top-of-tree version of the test. It&apos;s OK to remove just this portion, but ideally we&apos;d start running the webgl/1.0.x and webgl/2.0.y versions of the layout tests and remove all of the now-obsolete ones. r+

FYI, the win EWS failures are unrelated to this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778994</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-07-23 00:31:03 -0700</bug_when>
    <thetext>Committed r280218 (239905@main): &lt;https://commits.webkit.org/239905@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433731.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778995</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-23 00:32:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/81006096&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>433731</attachid>
            <date>2021-07-17 04:24:07 -0700</date>
            <delta_ts>2021-07-23 00:31:05 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-220720-20210717142253.patch</filename>
            <type>text/plain</type>
            <size>1907</size>
            <attacher name="Eleni Maria Stea">estea</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjgwMDE3CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggMWVmM2QzOWU0NWU4NjIxYTI0NDE4
N2EzZDQ3OTFlY2MyZTBjYTE3ZC4uODJlYmY2Y2RiZTNiZmVhOGRlMDk5YjUxODUwM2MxOTM2ODVh
Mzk2YyAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDE5IEBACisyMDIxLTA3LTE3ICBFbGVuaSBNYXJpYSBTdGVh
ICA8ZXN0ZWFAaWdhbGlhLmNvbT4KKworICAgICAgICBSZW1vdmVkIGluY29ycmVjdCB0ZXN0IGZy
b20gd2ViZ2wgdGVzdHMuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVn
LmNnaT9pZD0yMjA3MjAKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKwor
ICAgICAgICBUaGUgcmVtb3ZlZCB0ZXN0IHdhcyBiYXNlZCBvbiB0aGUgaW5jb3JyZWN0IGFzc3Vt
cHRpb24gdGhhdAorICAgICAgICBkZWxldGVkIGJ1ZmZlciBuYW1lcyByZW1haW4gdmFsaWQgdW50
aWwgdGhlIG9iamVjdCB0aGV5IHVzZWQgdG8KKyAgICAgICAgcmVmZXIgdG8gaXMgZGVzdHJveWVk
LiBBY2NvcmRpbmcgdG8gdGhlIFdlYkdMIH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