<?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>223319</bug_id>
          
          <creation_ts>2021-03-16 23:36:16 -0700</creation_ts>
          <short_desc>webgl/1.0.4/conformance/misc/invalid-passed-params.html fails</short_desc>
          <delta_ts>2021-03-23 23:37: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>WebGL</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>222812</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1740407</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-16 23:36:16 -0700</bug_when>
    <thetext>webgl/1.0.4/conformance/misc/invalid-passed-params.html fails</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740435</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-17 00:27:23 -0700</bug_when>
    <thetext>*** Bug 223339 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740442</commentid>
    <comment_count>2</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-17 00:28:17 -0700</bug_when>
    <thetext>*** Bug 223338 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740531</commentid>
    <comment_count>3</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-17 01:20:45 -0700</bug_when>
    <thetext>https://www.khronos.org/registry/webgl/sdk/tests/conformance/misc/invalid-passed-params.html?webglVersion=1&amp;quiet=0&amp;quick=1

Test for invalid passed parameters

On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.


Test createShader()
PASS getError was expected value: NO_ERROR : after evaluating: context.createShader(context.FRAGMENT_SHADER)
PASS getError was expected value: NO_ERROR : after evaluating: context.createShader(context.VERTEX_SHADER)
PASS getError was expected value: INVALID_ENUM : after evaluating: context.createShader(0)
PASS getError was expected value: INVALID_ENUM : after evaluating: context.createShader(context.TRIANGLES)

Test clear()
PASS getError was expected value: INVALID_VALUE : after evaluating: context.clear(desktopGL[&apos;ACCUM_BUFFER_BIT&apos;])
PASS getError was expected value: INVALID_VALUE : after evaluating: context.clear(desktopGL[&apos;ACCUM_BUFFER_BIT&apos;] | context.COLOR_BUFFER_BIT)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.clear(desktopGL[&apos;ACCUM_BUFFER_BIT&apos;] | context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT | context.STENCIL_BUFFER_BIT)
PASS getError was expected value: NO_ERROR : after evaluating: context.clear(context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT | context.STENCIL_BUFFER_BIT)

Test {copy}Tex{Sub}Image2D with negative offset/width/height
PASS getError was expected value: NO_ERROR : after evaluating: context.bindTexture(context.TEXTURE_2D, tex)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.texImage2D(context.TEXTURE_2D, 0, context.RGBA, -16, -16, 0, context.RGBA, context.UNSIGNED_BYTE, null)
PASS getError was expected value: NO_ERROR : after evaluating: context.texImage2D(context.TEXTURE_2D, 0, context.RGBA, 16, 16, 0, context.RGBA, context.UNSIGNED_BYTE, null)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.texSubImage2D(context.TEXTURE_2D, 0, -1, -1, 2, 2, context.RGBA, context.UNSIGNED_BYTE, pixels)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.texSubImage2D(context.TEXTURE_2D, 0, 0, 0, -1, -1, context.RGBA, context.UNSIGNED_BYTE, pixels)
PASS getError was expected value: NO_ERROR : after evaluating: context.texSubImage2D(context.TEXTURE_2D, 0, 0, 0, 2, 2, context.RGBA, context.UNSIGNED_BYTE, pixels)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.copyTexImage2D(context.TEXTURE_2D, 0, context.RGBA, 0, 0, -1, -1, 0)
PASS getError was expected value: NO_ERROR : after evaluating: context.copyTexImage2D(context.TEXTURE_2D, 0, context.RGBA, 0, 0, 16, 16, 0)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.copyTexSubImage2D(context.TEXTURE_2D, 0, -1, -1, 0, 0, 2, 2)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.copyTexSubImage2D(context.TEXTURE_2D, 0, 0, 0, 0, 0, -1, -1)
PASS getError was expected value: NO_ERROR : after evaluating: context.copyTexSubImage2D(context.TEXTURE_2D, 0, 0, 0, 0, 0, 2, 2)

Test renderbufferStorage() with negative width/height
PASS getError was expected value: NO_ERROR : after evaluating: context.bindRenderbuffer(context.RENDERBUFFER, renderbuffer)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.renderbufferStorage(context.RENDERBUFFER, context.RGBA4, -2, -2)
PASS getError was expected value: NO_ERROR : after evaluating: context.renderbufferStorage(context.RENDERBUFFER, context.RGBA4, 16, 16)

Test scissor() with negative width/height
PASS getError was expected value: INVALID_VALUE : after evaluating: context.scissor(0, 0, -2, -2)
PASS getError was expected value: NO_ERROR : after evaluating: context.scissor(0, 0, 16, 16)

Test viewport() with negative width/height
PASS getError was expected value: INVALID_VALUE : after evaluating: context.viewport(0, 0, -2, -2)
PASS getError was expected value: NO_ERROR : after evaluating: context.viewport(0, 0, 16, 16)

Set up a program to test invalid characters
PASS context.getError() is context.NO_ERROR
PASS context.getError() is context.NO_ERROR
PASS linkStatus is true
PASS context.getError() is context.NO_ERROR
PASS context.getError() is context.NO_ERROR
PASS context.getError() is context.NO_ERROR
PASS context.getError() is context.NO_ERROR

Test shaderSource() with invalid characters
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.

Test bindAttribLocation() with invalid characters
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE

Test getAttribLocation() with invalid characters
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE

Test getUniformLocation() with invalid characters
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE

PASS successfullyParsed is true

TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740601</commentid>
    <comment_count>4</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-17 01:45:54 -0700</bug_when>
    <thetext>At least macOS 11.3, iMacPro1,1, Radeon Pro Vega 56</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1743171</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-23 23:37:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/75772693&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>