<?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>126470</bug_id>
          
          <creation_ts>2014-01-03 16:24:41 -0800</creation_ts>
          <short_desc>[WebGL] Blit operation from Multisample FBO to rendering FBO must ignore GL_SCISSOR test</short_desc>
          <delta_ts>2014-01-03 16:48:30 -0800</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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>noam</cc>
    
    <cc>roger_fong</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>964319</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-03 16:24:41 -0800</bug_when>
    <thetext>When we use Multisampling to antialias our drawing, we have to Blit from the multisample buffers into the FBO used for rendering to screen.  The drawing portion of this bug was corrected by Bug 126455. However, WebGL code that used glGetPixels would still fail, because the pixel read operations were being done on a buffer that was only partially initialized.

The fix is to make sure our &quot;resolveMultisamplingIfNecessary&quot; operation deactivates the GL_SCISSOR test so that we blit the entire buffer, not just whatever region of memory is activated by the scissor region.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964320</commentid>
    <comment_count>1</comment_count>
      <attachid>220352</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-03 16:30:12 -0800</bug_when>
    <thetext>Created attachment 220352
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964321</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-01-03 16:32:06 -0800</bug_when>
    <thetext>Attachment 220352 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/WebCore/ChangeLog&apos;, u&apos;Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp&apos;, &apos;--commit-queue&apos;]&quot; exit_code: 1
ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:165:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:166:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:167:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:167:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:179:  Wrong number of spaces before statement. (expected: 12)  [whitespace/indent] [4]
ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:181:  Wrong number of spaces before statement. (expected: 12)  [whitespace/indent] [4]
Total errors found: 6 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964322</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-03 16:32:55 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Attachment 220352 [details] did not pass style-queue:
&gt; 
&gt; Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/WebCore/ChangeLog&apos;, u&apos;Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp&apos;, &apos;--commit-queue&apos;]&quot; exit_code: 1
&gt; ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:165:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
&gt; ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:166:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
&gt; ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:167:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
&gt; ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:167:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
&gt; ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:179:  Wrong number of spaces before statement. (expected: 12)  [whitespace/indent] [4]
&gt; ERROR: Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:181:  Wrong number of spaces before statement. (expected: 12)  [whitespace/indent] [4]
&gt; Total errors found: 6 in 2 files
&gt; 

More false positives.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964328</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-03 16:48:30 -0800</bug_when>
    <thetext>Committed r161297: &lt;http://trac.webkit.org/changeset/161297&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>220352</attachid>
            <date>2014-01-03 16:30:12 -0800</date>
            <delta_ts>2014-01-03 16:39:56 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-126470-20140103163011.patch</filename>
            <type>text/plain</type>
            <size>2371</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE2MTI5NSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDE0LTAxLTAzICBCcmVudCBG
dWxnaGFtICA8YmZ1bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFtXZWJHTF0gQmxpdCBvcGVy
YXRpb24gZnJvbSBNdWx0aXNhbXBsZSBGQk8gdG8gcmVuZGVyaW5nIEZCTyBtdXN0IGlnbm9yZSBH
TF9TQ0lTU09SIHRlc3QKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcu
Y2dpP2lkPTEyNjQ3MAorICAgICAgICA8cmRhcjovL3Byb2JsZW0vMTUyMDEzNzA+CisKKyAgICAg
ICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgQ292ZXJlZCBieSB3ZWJn
bC8xLjAuMi9yZXNvdXJjZXMvd2ViZ2xfdGVzdF9maWxlcy9jb25mb3JtYW5jZS9yZW5kZXJpbmcv
Z2wtc2Npc3Nvci10ZXN0Lmh0bWwKKworICAgICAgICAqIHBsYXRmb3JtL2dyYXBoaWNzL29wZW5n
bC9HcmFwaGljc0NvbnRleHQzRE9wZW5HTC5jcHA6CisgICAgICAgIChXZWJDb3JlOjpHcmFwaGlj
c0Nvb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mVuZGVy
YnVmZmVyU3RvcmFnZShHQzNEZW51bSB0YXJnZXQsIEdDM0RlbnVtIGludGVybmFsZm9ybWF0LCBH
QzNEc2l6ZWkgd2lkdGgsIEdDM0RzaXplaSBoZWlnaHQpCg==
</data>
<flag name="review"
          id="244053"
          type_id="1"
          status="+"
          setter="dino"
    />
          </attachment>
      

    </bug>

</bugzilla>