<?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>100789</bug_id>
          
          <creation_ts>2012-10-30 14:40:00 -0700</creation_ts>
          <short_desc>glsl-function-atan.html WebGL conformance test fails after https://bugs.webkit.org/show_bug.cgi?id=99154</short_desc>
          <delta_ts>2012-10-31 22:56: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>WebGL</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roger Fong">roger_fong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>dino</cc>
    
    <cc>fpizlo</cc>
    
    <cc>hausmann</cc>
    
    <cc>roger_fong</cc>
    
    <cc>yuqiang.xian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>754670</commentid>
    <comment_count>0</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2012-10-30 14:40:00 -0700</bug_when>
    <thetext>Hello, I&apos;m not savvy enough with Javascript, Compilers or MacroAssemblers to know what&apos;s causing this but a WebGL conformance test started failing after this patch (https://bugs.webkit.org/show_bug.cgi?id=99154 / r131858) landed. 

The test is here https://www.khronos.org/registry/webgl/conformance-suites/1.0.1/conformance/glsl/functions/glsl-function-atan.html.
In particular the part of the test that is failing is this.

  tests: [
    {
      source: [&quot;$(output) = vec4(&quot;,
               &quot;    $(func)($(input).x * 8.0 - 4.0) / k2PI + 0.5,&quot;,
               &quot;    0.5,&quot;,
               &quot;    0,&quot;,
               &quot;    1);&quot;].join(&quot;\n&quot;),
      generator: function(x, y, z, w) {
        return [ atan(x * 8.0 - 4.0) / k2PI + 0.5,
                 0.5,
                 0,
                 1 ];
      },
    },


The &quot;generator&quot; is the reference for the test and it seems to be having trouble with the second (green) element of the array, which is set to .5. 

I noticed however, that if I set it to anything besides .5 (like .50001)  the test passes.

Could someone take a look at it? 
Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>754839</commentid>
    <comment_count>1</comment_count>
    <who name="Yuqiang Xian">yuqiang.xian</who>
    <bug_when>2012-10-30 17:51:13 -0700</bug_when>
    <thetext>I&apos;m looking.

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>754916</commentid>
    <comment_count>2</comment_count>
      <attachid>171571</attachid>
    <who name="Yuqiang Xian">yuqiang.xian</who>
    <bug_when>2012-10-30 20:41:00 -0700</bug_when>
    <thetext>Created attachment 171571
patch

Sorry for introducing the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>755013</commentid>
    <comment_count>3</comment_count>
    <who name="Yuqiang Xian">yuqiang.xian</who>
    <bug_when>2012-10-31 00:00:38 -0700</bug_when>
    <thetext>Fix landed: https://trac.webkit.org/changeset/132991</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>755903</commentid>
    <comment_count>4</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2012-10-31 22:56:49 -0700</bug_when>
    <thetext>Many thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>171571</attachid>
            <date>2012-10-30 20:41:00 -0700</date>
            <delta_ts>2012-10-30 23:46:04 -0700</delta_ts>
            <desc>patch</desc>
            <filename>100789.0.patch</filename>
            <type>text/plain</type>
            <size>1487</size>
            <attacher name="Yuqiang Xian">yuqiang.xian</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTMyOTc5KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBA
CisyMDEyLTEwLTMwICBZdXFpYW5nIFhpYW4gIDx5dXFpYW5nLnhpYW5AaW50ZWwuY29tPgorCisg
ICAgICAgIGdsc2wtZnVuY3Rpb24tYXRhbi5odG1sIFdlYkdMIGNvbmZvcm1hbmNlIHRlc3QgZmFp
bHMgYWZ0ZXIgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTk5MTU0Cisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMDA3ODkKKwor
ICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBXZSBhY2NpZGVu
dGx5IG1pc3NlZCBhIGJpdHdpc2UgZG91YmxlIHRvIGludDY0IGNvbnZlcnNpb24uCisKKyAgICAg
ICAgKiBkZmcvREZHU3BlY3VsYXRpdmVKSVQuaDoKKyAgICAgICAgKEpTQzo6REZHOjpTcGVjdWxh
dGl2ZUpJVDo6c2lsZW50RmlsbCk6CisKIDIwMTItMTAtMzAgIEpvc2VwaCBQZWNvcmFybyAgPHBl
Y29yYXJvQGFwcGxlLmNvbT4KIAogICAgICAgICBbTWFjXSBTeW5jIHVwIEZlYXR1cmVEZWZpbmUg
Q29uZmlndXJhdGlvbiBGaWxlcwpJbmRleDogU291cmNlL0phdmFTY3JpcHRDb3JlL2RmZy9ERkdT
cGVjdWxhdGl2ZUpJVC5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9kZmcv
REZHU3BlY3VsYXRpdmVKSVQuaAkocmV2aXNpb24gMTMyOTc5KQorKysgU291cmNlL0phdmFTY3Jp
cHRDb3JlL2RmZy9ERkdTcGVjdWxhdGl2ZUpJVC5oCSh3b3JraW5nIGNvcHkpCkBAIC01NDMsNyAr
NTQzLDcgQEAgcHVibGljOgogICAgICAgICAgICAgbV9qaXQubW92ZSh2YWx1ZU9mSlNDb25zdGFu
dEFzSW1tNjQocGxhbi5ub2RlSW5kZXgoKSksIHBsYW4uZ3ByKCkpOwogICAgICAgICAgICAgYnJl
YWs7CiAgICAgICAgIGNhc2UgU2V0RG91YmxlQ29uc3RhbnQ6Ci0gICAgICAgICAgICBtX2ppdC5t
b3ZlKEltbTY0KHZhbHVlT2ZOdW1iZXJDb25zdGFudChwbGFuLm5vZGVJbmRleCgpKSksIGNhblRy
YW1wbGUpOworICAgICAgICAgICAgbV9qaXQubW92ZShJbW02NChyZWludGVycHJldERvdWJsZVRv
SW50NjQodmFsdWVPZk51bWJlckNvbnN0YW50KHBsYW4ubm9kZUluZGV4KCkpKSksIGNhblRyYW1w
bGUpOwogICAgICAgICAgICAgbV9qaXQubW92ZTY0VG9Eb3VibGUoY2FuVHJhbXBsZSwgcGxhbi5m
cHIoKSk7CiAgICAgICAgICAgICBicmVhazsKICAgICAgICAgY2FzZSBMb2FkMzJQYXlsb2FkQm94
SW50Ogo=
</data>
<flag name="review"
          id="185541"
          type_id="1"
          status="+"
          setter="fpizlo"
    />
          </attachment>
      

    </bug>

</bugzilla>