<?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>214640</bug_id>
          
          <creation_ts>2020-07-22 07:01:28 -0700</creation_ts>
          <short_desc>sRGB render targets not working</short_desc>
          <delta_ts>2020-09-09 11:13:58 -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>Safari 13</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          <dependson>212277</dependson>
    
    <dependson>215844</dependson>
    
    <dependson>215973</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>jujjyl</reporter>
          <assigned_to name="Kenneth Russell">kbr</assigned_to>
          <cc>dino</cc>
    
    <cc>jdarpinian</cc>
    
    <cc>jonlee</cc>
    
    <cc>kbr</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1673804</commentid>
    <comment_count>0</comment_count>
    <who name="">jujjyl</who>
    <bug_when>2020-07-22 07:01:28 -0700</bug_when>
    <thetext>STR:

https://www.khronos.org/registry/webgl/sdk/tests/conformance/extensions/ext-sRGB.html?webglVersion=1&amp;quiet=0&amp;quick=1

Fails on two subsections

&quot;Test the conversion of colors from linear to sRGB_ALPHA on framebuffer (texture) write&quot;
&quot;Test the conversion of colors from linear to sRGB on framebuffer (renderbuffer) write&quot;

on macOS and iOS. We suspect that this causes incorrect brightness in rendering e.g. in Tiny Unity demo at

https://tiny.vision/demos/TinyRacing/Wasm/TinyRacing.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1673805</commentid>
    <comment_count>1</comment_count>
    <who name="">jujjyl</who>
    <bug_when>2020-07-22 07:02:30 -0700</bug_when>
    <thetext>It looks like the same issue occurs on both WebGL 1 contexts when using the EXT_sRGB extension, and WebGL 2 contexts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1673853</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-07-22 09:39:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/65940663&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674512</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2020-07-23 18:25:01 -0700</bug_when>
    <thetext>This has been fixed in Safari Technology Preview (Safari 14) with the ANGLE backend, likely via Bug 212277. Jukka, can you please confirm?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1687061</commentid>
    <comment_count>4</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2020-09-09 11:13:58 -0700</bug_when>
    <thetext>One of the earlier Safari Technology Previews ran Tiny Racing successfully, but the current one on macOS (Release 112 (Safari 14.0, WebKit 15610.1.25.5.1)) does have a regression where Tiny Racing renders black.

jdarpinian@ fixed two recent related bugs:

Implement WEBGL_compressed_texture_s3tc_srgb extension
https://bugs.webkit.org/show_bug.cgi?id=215973

and

WebGL goes in a bad state where glContext.createProgram() returns null
https://bugs.webkit.org/show_bug.cgi?id=215844

with those two fixes, top-of-tree WebKit at r266786 runs both Tiny Racing and https://www.khronos.org/registry/webgl/sdk/tests/conformance/extensions/ext-sRGB.html?webglVersion=1 successfully.

Closing this report as WontFix since other bugs resolved it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>