<?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>238813</bug_id>
          
          <creation_ts>2022-04-05 09:54:10 -0700</creation_ts>
          <short_desc>[GTK][WPE] Regression after r292025, in GraphicsContextGLANGLE if the dmabuf backed is not created we need to bail out</short_desc>
          <delta_ts>2022-07-12 12:19:49 -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>ANGLE</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>242108</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro G. Castro">alex</reporter>
          <assigned_to name="Alejandro G. Castro">alex</assigned_to>
          <cc>clord</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>dino</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>extinstall.mstoolsai.jupyter</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>luiz</cc>
    
    <cc>zan</cc>
    
    <cc>zdobersek</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1858417</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2022-04-05 09:54:10 -0700</bug_when>
    <thetext>We are causing issues to the tests since r292025, there are still the situation we have with xvfb support but we will address that in a different patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1858426</commentid>
    <comment_count>1</comment_count>
      <attachid>456713</attachid>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2022-04-05 10:07:24 -0700</bug_when>
    <thetext>Created attachment 456713
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1858793</commentid>
    <comment_count>2</comment_count>
      <attachid>456713</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2022-04-06 05:51:54 -0700</bug_when>
    <thetext>Comment on attachment 456713
Patch

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

&gt; Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp:139
&gt; +        if (!result.iterator-&gt;value)
&gt; +            return madeCurrent;
&gt; +

And how are the actual contents of the WebGL-backing framebuffer composited in this case? Cause you&apos;re not rendering anything in the bo, and that&apos;s what&apos;s to be displayed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1858809</commentid>
    <comment_count>3</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2022-04-06 06:44:01 -0700</bug_when>
    <thetext>(In reply to Zan Dobersek from comment #2)
&gt; Comment on attachment 456713 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=456713&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp:139
&gt; &gt; +        if (!result.iterator-&gt;value)
&gt; &gt; +            return madeCurrent;
&gt; &gt; +
&gt; 
&gt; And how are the actual contents of the WebGL-backing framebuffer composited
&gt; in this case? Cause you&apos;re not rendering anything in the bo, and that&apos;s
&gt; what&apos;s to be displayed.

The idea here is to avoid calling GL functions using a null image to avoid errors when we do not have the backing buffer, I don&apos;t think we need to create a solution for this situation better than this. The fallback is to use the texture that is later send to the compositor copying an ImageBuffer. We could add a log here if that feels that can help to make sure people know they are in this situation, because it is true sometimes you can end up here and not know about it.

Thanks for the comment!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882454</commentid>
    <comment_count>5</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2022-07-12 12:19:49 -0700</bug_when>
    <thetext>That commit broke the previous implementation of the fallback mode that was the reason it failed. We have added a new implementation in the bug 242108.

*** This bug has been marked as a duplicate of bug 242108 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>456713</attachid>
            <date>2022-04-05 10:07:24 -0700</date>
            <delta_ts>2022-07-12 12:18:12 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-238813-20220405190723.patch</filename>
            <type>text/plain</type>
            <size>2138</size>
            <attacher name="Alejandro G. Castro">alex</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjkyMDI1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMmUyNDVhM2YxMDY3Njhh
ZmJmY2IzZGJlYjM2NzQ4ZTRlNWJlNjk3MS4uMzhkNzIzM2E0YThiM2RlNmRkOTY2Yjg2OTQ5NzQ4
MGY4OTdlZGZjYyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIxIEBACisyMDIyLTA0LTA1ICBBbGVq
YW5kcm8gRy4gQ2FzdHJvICA8YWxleEBpZ2FsaWEuY29tPgorCisgICAgICAgIFtHVEtdW1dQRV0g
UmVncmVzc2lvbiBhZnRlciByMjkyMDI1LCBpbiBHcmFwaGljc0NvbnRleHRHTEFOR0xFIGlmIHRo
ZSBkbWFidWYgYmFja2VkIGlzIG5vdCBjcmVhdGVkIHdlIG5lZWQgdG8gY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