<?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>134683</bug_id>
          
          <creation_ts>2014-07-07 10:13:28 -0700</creation_ts>
          <short_desc>fix nested function crash on iOS</short_desc>
          <delta_ts>2014-07-09 10:28:17 -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>https://www.khronos.org/registry/webgl/sdk/tests/conformance/glsl/bugs/nested-functions-should-not-crash.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>134748</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Christensen">achristensen</reporter>
          <assigned_to name="Alex Christensen">achristensen</assigned_to>
          <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>1020826</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-07-07 10:13:28 -0700</bug_when>
    <thetext>I verified that this fixes the WebGL crash in the nested-functions-should-not-crash.html test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1020827</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-07-07 10:13:50 -0700</bug_when>
    <thetext>&lt;rdar://problem/17541529&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1020828</commentid>
    <comment_count>2</comment_count>
      <attachid>234491</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-07-07 10:15:54 -0700</bug_when>
    <thetext>Created attachment 234491
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1020843</commentid>
    <comment_count>3</comment_count>
      <attachid>234491</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2014-07-07 10:59:05 -0700</bug_when>
    <thetext>Comment on attachment 234491
Patch

r=me

Is there a performance cost to this limit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1020848</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-07-07 11:05:56 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 234491 [details])
&gt; r=me
&gt; 
&gt; Is there a performance cost to this limit?
If someone has a shader with more than 256 nested functions, it will no longer compile.  I don&apos;t think there&apos;s a performance hit because this only changes the shader validator, and I think the call depth is counted anyway.  It just wasn&apos;t used without this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1020856</commentid>
    <comment_count>5</comment_count>
      <attachid>234491</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-07 11:21:39 -0700</bug_when>
    <thetext>Comment on attachment 234491
Patch

Clearing flags on attachment: 234491

Committed r170849: &lt;http://trac.webkit.org/changeset/170849&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1020857</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-07 11:21:42 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1021250</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-08 17:37:38 -0700</bug_when>
    <thetext>Re-opened since this is blocked by bug 134748</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1021387</commentid>
    <comment_count>8</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-07-09 10:28:17 -0700</bug_when>
    <thetext>this did not break the build and it was not rolled out. reclosing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>234491</attachid>
            <date>2014-07-07 10:15:54 -0700</date>
            <delta_ts>2014-07-07 11:21:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-134683-20140707101536.patch</filename>
            <type>text/plain</type>
            <size>1896</size>
            <attacher name="Alex Christensen">achristensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE3MDg0NSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDE0LTA3LTA3ICBBbGV4IENo
cmlzdGVuc2VuICA8YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CisKKyAgICAgICAgW2lPUyBXZWJH
TF0gRml4IGNyYXNoIHdpdGggdG9vIG1hbnkgbmVzdGVkIGdsc2wgZnVuY3Rpb25zLgorICAgICAg
ICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTM0NjgzCisgICAgICAg
IDxyZGFyOi8vcHJvYmxlbS8xNzU0MTUyOT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworICAgICAgICBUaGlzIGZpeGVzIHRoZSBLaHJvbm9zIFdlYkd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