<?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>223314</bug_id>
          
          <creation_ts>2021-03-16 23:33:26 -0700</creation_ts>
          <short_desc>webgl/1.0.4/conformance/extensions/oes-texture-float.html fails</short_desc>
          <delta_ts>2021-03-23 23:34:29 -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>1740402</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-16 23:33:26 -0700</bug_when>
    <thetext>webgl/1.0.4/conformance/extensions/oes-texture-float.html fails</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740536</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-17 01:23:43 -0700</bug_when>
    <thetext>https://www.khronos.org/registry/webgl/sdk/tests/conformance/extensions/oes-texture-float.html?webglVersion=1&amp;quiet=0&amp;quick=1

This test verifies the functionality of the OES_texture_float and WEBGL_color_buffer_float extensions, if available.

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


PASS WebGL context exists

testing format: RGBA expect:failure
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: INVALID_ENUM : floating-point texture allocation must be disallowed if OES_texture_float isn&apos;t enabled
PASS Successfully enabled OES_texture_float extension

testing format: RGBA expect:success
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS should be green
PASS should be red

testing format: RGB expect:success
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS should be green
PASS should be red

testing format: LUMINANCE expect:success
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS should be green
PASS should be red

testing format: ALPHA expect:success
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS should be green
PASS should be red

testing format: LUMINANCE_ALPHA expect:success
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS should be green
PASS should be red


testing floating-point RGBA render target
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS getError was expected value: NO_ERROR : rendering to floating-point texture should succeed
PASS getError was expected value: NO_ERROR : rendering from floating-point texture should succeed
PASS should be green
PASS getError was expected value: NO_ERROR : getParameter of IMPLEMENTATION_COLOR_READ_{FORMAT|TYPE} should succeed
Checking readback of floating-point values
PASS getError was expected value: NO_ERROR : readPixels from floating-point renderbuffer should succeed
PASS readPixels of float-type data from floating-point renderbuffer succeeded

testing floating-point RGB render target
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS getError was expected value: NO_ERROR : rendering to floating-point texture should succeed
PASS getError was expected value: NO_ERROR : rendering from floating-point texture should succeed
PASS should be green
PASS getError was expected value: NO_ERROR : getParameter of IMPLEMENTATION_COLOR_READ_{FORMAT|TYPE} should succeed
Checking readback of floating-point values
PASS getError was expected value: NO_ERROR : readPixels from floating-point renderbuffer should succeed
PASS readPixels of float-type data from floating-point renderbuffer succeeded

testing floating-point RGBA render target after calling texSubImage
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS getError was expected value: NO_ERROR : texSubImage2D should succeed if OES_texture_float is enabled
PASS getError was expected value: NO_ERROR : rendering to floating-point texture should succeed
PASS getError was expected value: NO_ERROR : rendering from floating-point texture should succeed
PASS should be green
PASS getError was expected value: NO_ERROR : getParameter of IMPLEMENTATION_COLOR_READ_{FORMAT|TYPE} should succeed
Checking readback of floating-point values
PASS getError was expected value: NO_ERROR : readPixels from floating-point renderbuffer should succeed
PASS readPixels of float-type data from floating-point renderbuffer succeeded

testing floating-point RGBA render target after calling texSubImage
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
PASS getError was expected value: NO_ERROR : floating-point texture allocation should succeed if OES_texture_float is enabled
PASS getError was expected value: NO_ERROR : texSubImage2D should succeed if OES_texture_float is enabled
PASS getError was expected value: NO_ERROR : rendering to floating-point texture should succeed
PASS getError was expected value: NO_ERROR : rendering from floating-point texture should succeed
PASS should be green
PASS getError was expected value: NO_ERROR : getParameter of IMPLEMENTATION_COLOR_READ_{FORMAT|TYPE} should succeed
Checking readback of floating-point values
PASS getError was expected value: NO_ERROR : readPixels from floating-point renderbuffer should succeed
PASS readPixels of float-type data from floating-point renderbuffer succeeded

Framebuffer Tests
PASS getError was expected value: NO_ERROR : texture parameter setup should succeed
Ensure non-color-renderable formats [LUMINANCE, LUMINANCE_ALPHA, ALPHA] fail.
LUMINANCE framebuffer
PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT
PASS gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_FORMAT) is null
PASS getError was expected value: INVALID_OPERATION : IMPLEMENTATION_COLOR_READ_FORMAT should fail for incomplete framebuffers.
PASS gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_TYPE) is null
PASS getError was expected value: INVALID_OPERATION : IMPLEMENTATION_COLOR_READ_TYPE should fail for incomplete framebuffers.
PASS getError was expected value: INVALID_FRAMEBUFFER_OPERATION : readPixels should fail on incomplete framebuffers.

LUMINANCE_ALPHA framebuffer
PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT
PASS gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_FORMAT) is null
PASS getError was expected value: INVALID_OPERATION : IMPLEMENTATION_COLOR_READ_FORMAT should fail for incomplete framebuffers.
PASS gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_TYPE) is null
PASS getError was expected value: INVALID_OPERATION : IMPLEMENTATION_COLOR_READ_TYPE should fail for incomplete framebuffers.
PASS getError was expected value: INVALID_FRAMEBUFFER_OPERATION : readPixels should fail on incomplete framebuffers.

ALPHA framebuffer
PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT
PASS gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_FORMAT) is null
PASS getError was expected value: INVALID_OPERATION : IMPLEMENTATION_COLOR_READ_FORMAT should fail for incomplete framebuffers.
PASS gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_TYPE) is null
PASS getError was expected value: INVALID_OPERATION : IMPLEMENTATION_COLOR_READ_TYPE should fail for incomplete framebuffers.
PASS getError was expected value: INVALID_FRAMEBUFFER_OPERATION : readPixels should fail on incomplete framebuffers.

Ensure color renderable formats [RGBA, RGB] succeed.

RGBA framebuffer tests
RGBA framebuffer with FLOAT readback.
PASS getError was expected value: NO_ERROR : readPixels should return NO_ERROR when reading FLOAT data.
PASS Red channel should be 0 for FLOAT readPixels. Received: 0
PASS Green channel should be 0.25 for FLOAT readPixels. Received: 0.25
PASS Blue channel should be 0.5 for FLOAT readPixels. Received: 0.5
PASS Alpha channel should be 0.75 for FLOAT readPixels. Received: 0.75
PASS getError was expected value: INVALID_OPERATION : readPixels should return INVALID_OPERATION when reading mismatched types. function Uint8Array() {
    [native code]
}
PASS getError was expected value: INVALID_OPERATION : readPixels should return INVALID_OPERATION when reading mismatched types. function Uint16Array() {
    [native code]
}
PASS IMPLEMENTATION_COLOR_READ_FORMAT should be color renderable: RGBA or RGB. Received: RGBA
PASS Passed

RGB framebuffer tests
RGB framebuffer with FLOAT readback.
PASS getError was expected value: NO_ERROR : readPixels should return NO_ERROR when reading FLOAT data.
PASS Red channel should be 0 for FLOAT readPixels. Received: 0
PASS Green channel should be 0.25 for FLOAT readPixels. Received: 0.25
PASS Blue channel should be 0.5 for FLOAT readPixels. Received: 0.5
PASS Alpha channel should be 1 for FLOAT readPixels. Received: 1
PASS getError was expected value: INVALID_OPERATION : readPixels should return INVALID_OPERATION when reading mismatched types. function Uint8Array() {
    [native code]
}
PASS getError was expected value: INVALID_OPERATION : readPixels should return INVALID_OPERATION when reading mismatched types. function Uint16Array() {
    [native code]
}
PASS IMPLEMENTATION_COLOR_READ_FORMAT should be color renderable: RGBA or RGB. Received: RGB
PASS Passed

Test float32 blending without EXT_float_blend.
PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_COMPLETE
PASS getError was expected value: NO_ERROR : Float32 draw target without blending
FAIL getError expected: NO_ERROR. Was INVALID_OPERATION : Float32 blending is allowed 

Testing that float32 blending succeeds with EXT_float_blend.
PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_COMPLETE
PASS getError was expected value: NO_ERROR : Float32 draw target without blending
PASS getError was expected value: NO_ERROR : Float32 blending is allowed 

Testing that getExtension() returns the same object each time
PASS gl.getExtension(&quot;OES_texture_float&quot;).myProperty is 2

PASS successfullyParsed is true

TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740591</commentid>
    <comment_count>2</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-17 01:45:50 -0700</bug_when>
    <thetext>At least macOS 11.3, iMacPro1,1, Radeon Pro Vega 56</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1743165</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-23 23:34:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/75772549&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>