<?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>64613</bug_id>
          
          <creation_ts>2011-07-15 11:56:12 -0700</creation_ts>
          <short_desc>Use supported framebuffer renderbuffer mode.</short_desc>
          <delta_ts>2011-08-05 19:26:14 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>65037</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Tom Hudson">tomhudson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alokp</cc>
    
    <cc>jamesr</cc>
    
    <cc>senorblanco</cc>
    
    <cc>tomhudson</cc>
    
    <cc>vangelis</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>437873</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2011-07-15 11:56:12 -0700</bug_when>
    <thetext>Use supported framebuffer renderbuffer mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437874</commentid>
    <comment_count>1</comment_count>
      <attachid>101018</attachid>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2011-07-15 11:58:49 -0700</bug_when>
    <thetext>Created attachment 101018
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437878</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2011-07-15 12:00:47 -0700</bug_when>
    <thetext>When force compositing &amp; accelerated drawing are both on, the glFramebufferRenderbuffer call failed because the Chromium command buffer supports DEPTH and STENCIL but not DEPTH_STENCIL attachment modes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437883</commentid>
    <comment_count>3</comment_count>
      <attachid>101018</attachid>
    <who name="Alok Priyadarshi">alokp</who>
    <bug_when>2011-07-15 12:03:21 -0700</bug_when>
    <thetext>Comment on attachment 101018
Patch

looks good</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437891</commentid>
    <comment_count>4</comment_count>
      <attachid>101022</attachid>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2011-07-15 12:11:45 -0700</bug_when>
    <thetext>Created attachment 101022
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437897</commentid>
    <comment_count>5</comment_count>
      <attachid>101022</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-07-15 12:19:51 -0700</bug_when>
    <thetext>Comment on attachment 101022
Patch

We already query for the GL_OES_packed_depth_stencil extension at lines 211-214, so how is this code failing?

It makes me really sad that we aren&apos;t sharing code with DrawingBuffer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437900</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2011-07-15 12:25:21 -0700</bug_when>
    <thetext>Although that framebuffer configuration is supported, that enum for requesting the framebuffer configuration isn&apos;t. This is an EGL oddness that the Chromium command buffer mimics: you can get a DEPTH_STENCIL buffer, but only by requesting separately as DEPTH and STENCIL.

So in practice: we succeed at the extensions-&gt;supports() call, then we get an error message from gles2_cmd_decoder.cc (&quot;glFramebufferRenderbuffer: attachment GL_INVALID_ENUM) and cascading errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437917</commentid>
    <comment_count>7</comment_count>
    <who name="Alok Priyadarshi">alokp</who>
    <bug_when>2011-07-15 12:39:36 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 101022 [details])
&gt; We already query for the GL_OES_packed_depth_stencil extension at lines 211-214, so how is this code failing?
&gt; 
&gt; It makes me really sad that we aren&apos;t sharing code with DrawingBuffer.

Brian is working on moving most of the stencil buffer management code here to SKIA.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437922</commentid>
    <comment_count>8</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-07-15 12:45:08 -0700</bug_when>
    <thetext>If that fixes things, great.  Otherwise (or until then) we should be using DrawingBuffer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441048</commentid>
    <comment_count>9</comment_count>
    <who name="Vangelis Kokkevis">vangelis</who>
    <bug_when>2011-07-22 11:29:48 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; If that fixes things, great.  Otherwise (or until then) we should be using DrawingBuffer.

Not sure I understand the objection to this patch though.  If appears to fix a path that&apos;s already there but is not coded the right way.  If a later change simplified things, that&apos;s even better, but why not fix now something we know is broken?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441101</commentid>
    <comment_count>10</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-07-22 12:38:48 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; If that fixes things, great.  Otherwise (or until then) we should be using DrawingBuffer.
&gt; 
&gt; Not sure I understand the objection to this patch though.  If appears to fix a path that&apos;s already there but is not coded the right way.  If a later change simplified things, that&apos;s even better, but why not fix now something we know is broken?

The patch isn&apos;t wrong, but it&apos;s a symptom of a greater issue that this code is using a completely untested codepath that breaks all the time.  We typically require tests for patches because patching untested code is a large waste of effort.  If this code was using the same code as the test canvas 2d path, then it wouldn&apos;t have to deal with this issue and it wouldn&apos;t suffer from the other breakages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441718</commentid>
    <comment_count>11</comment_count>
    <who name="Vangelis Kokkevis">vangelis</who>
    <bug_when>2011-07-25 10:10:57 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; (In reply to comment #8)
&gt; &gt; &gt; If that fixes things, great.  Otherwise (or until then) we should be using DrawingBuffer.
&gt; &gt; 
&gt; &gt; Not sure I understand the objection to this patch though.  If appears to fix a path that&apos;s already there but is not coded the right way.  If a later change simplified things, that&apos;s even better, but why not fix now something we know is broken?
&gt; 
&gt; The patch isn&apos;t wrong, but it&apos;s a symptom of a greater issue that this code is using a completely untested codepath that breaks all the time.  We typically require tests for patches because patching untested code is a large waste of effort.  If this code was using the same code as the test canvas 2d path, then it wouldn&apos;t have to deal with this issue and it wouldn&apos;t suffer from the other breakages.

The accelerated drawing path doesn&apos;t necessarily require its own tests.  We just need to start running DRT with the --accelerated-drawing flag to make sure there are no regressions.

There is some refactoring work going on both to make the DrawingBuffer less canvas2d-specific and to move the management of the buffers into Ganesh. Neither of these changes is going to make M14 but it would be a shame if the accelerated drawing option (which otherwise works modulo a couple more regression fixes that are in review) doesn&apos;t make it and has to be removed. I would consider this as a short term fix to meet our ship deadline.  It is after an improvement over code that&apos;s already been checked in and is known broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447550</commentid>
    <comment_count>12</comment_count>
      <attachid>101022</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-05 19:26:10 -0700</bug_when>
    <thetext>Comment on attachment 101022
Patch

Clearing flags on attachment: 101022

Committed r92541: &lt;http://trac.webkit.org/changeset/92541&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447551</commentid>
    <comment_count>13</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-05 19:26:14 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>101018</attachid>
            <date>2011-07-15 11:58:49 -0700</date>
            <delta_ts>2011-07-15 12:11:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-64613-20110715145847.patch</filename>
            <type>text/plain</type>
            <size>2108</size>
            <attacher name="Tom Hudson">tomhudson</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDkxMDg0KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTEtMDctMTUgIFRvbSBIdWRz
b24gIDx0b21odWRzb25AZ29vZ2xlLmNvbT4KKworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0
Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NjQ2MTMKKyAgICAgICAgVXNlIHN1cHBvcnRlZCBmcmFtZWJ1
ZmZlciByZW5kZXJidWZmZXIgbW9kZTsgY2hyb21pdW0gY29tbWFuZCBidWZmZXIKKyAgICAgICAg
YWxsb3dzIERFUFRIIGFuZCBTVEVOQ0lMIGJ1dCBub3QgREVQVEhfU1RFTkNJTC4KKworICAgICAg
ICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBObyBuZXcgdGVzdHMgYmVj
YXVzZSB3YXMgY2F1Z2h0IGJ5IGV4dGFudCB0ZXN0cywgYWxiZWl0IG9ubHkgd2hlbgorICAgICAg
ICBhY2NlbGVyYXRlZCBkcmF3aW5nIGFuZCBmb3JjZWQgY29tcG9zaXRpbmcgd2VyZSBib3RoIHR1
cm5lZCBvbi4KKworICAgICAgICAqIHBsYXRmb3JtL2d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VQVEgyNF9TVEVOQ0lMOCwg
bV9idWZmZXJTaXplLndpZHRoKCksIG1fYnVmZmVyU2l6ZS5oZWlnaHQoKSk7Ci0gICAgY29udGV4
dCgpLT5mcmFtZWJ1ZmZlclJlbmRlcmJ1ZmZlcihHcmFwaGljc0NvbnRleHQzRDo6RlJBTUVCVUZG
RVIsIEdyYXBoaWNzQ29udGV4dDNEOjpERVBUSF9TVEVOQ0lMX0FUVEFDSE1FTlQsIEdyYXBoaWNz
Q29udGV4dDNEOjpSRU5ERVJCVUZGRVIsIG1fZGVwdGhTdGVuY2lsQnVmZmVyKTsKKyAgICBjb250
ZXh0KCktPmZyYW1lYnVmZmVyUmVuZGVyYnVmZmVyKEdyYXBoaWNzQ29udGV4dDNEOjpGUkFNRUJV
RkZFUiwgR3JhcGhpY3NDb250ZXh0M0Q6OkRFUFRIX0FUVEFDSE1FTlQsIEdyYXBoaWNzQ29udGV4
dDNEOjpSRU5ERVJCVUZGRVIsIG1fZGVwdGhTdGVuY2lsQnVmZmVyKTsKKyAgICBjb250ZXh0KCkt
PmZyYW1lYnVmZmVyUmVuZGVyYnVmZmVyKEdyYXBoaWNzQ29udGV4dDNEOjpGUkFNRUJVRkZFUiwg
R3JhcGhpY3NDb250ZXh0M0Q6OlNURU5DSUxfQVRUQUNITUVOVCwgR3JhcGhpY3NDb250ZXh0M0Q6
OlJFTkRFUkJVRkZFUiwgbV9kZXB0aFN0ZW5jaWxCdWZmZXIpOwogCiAgICAgLy8gQ3JlYXRlIGEg
c2tpYSBncHUgY2FudmFzLgogICAgIEdyUGxhdGZvcm1TdXJmYWNlRGVzYyB0YXJnZXREZXNjOwo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>101022</attachid>
            <date>2011-07-15 12:11:45 -0700</date>
            <delta_ts>2011-08-05 19:26:10 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-64613-20110715151144.patch</filename>
            <type>text/plain</type>
            <size>2108</size>
            <attacher name="Tom Hudson">tomhudson</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDkxMDg0KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTEtMDctMTUgIFRvbSBIdWRz
b24gIDx0b21odWRzb25AZ29vZ2xlLmNvbT4KKworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0
Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NjQ2MTMKKyAgICAgICAgVXNlIHN1cHBvcnRlZCBmcmFtZWJ1
ZmZlciByZW5kZXJidWZmZXIgbW9kZTsgY2hyb21pdW0gY29tbWFuZCBidWZmZXIKKyAgICAgICAg
YWxsb3dzIERFUFRIIGFuZCBTVEVOQ0lMIGJ1dCBub3QgREVQVEhfU1RFTkNJTC4KKworICAgICAg
ICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBObyBuZXcgdGVzdHMgYmVj
YXVzZSB3YXMgY2F1Z2h0IGJ5IGV4dGFudCB0ZXN0cywgYWxiZWl0IG9ubHkgd2hlbgorICAgICAg
ICBhY2NlbGVyYXRlZCBkcmF3aW5nIGFuZCBmb3JjZWQgY29tcG9zaXRpbmcgd2VyZSBib3RoIHR1
cm5lZCBvbi4KKworICAgICAgICAqIHBsYXRmb3JtL2dyYXBoaWNzL2Nocm9taXVtL0xheWVyVGV4
dHVyZVVwZGF0ZXJDYW52YXMuY3BwOgorICAgICAgICAoV2ViQ29yZTo6TGF5ZXJUZXh0dXJlVXBk
YXRlclNrUGljdHVyZTo6Y3JlYXRlRnJhbWVCdWZmZXIpOgorCiA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