<?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>238197</bug_id>
          
          <creation_ts>2022-03-22 02:32:50 -0700</creation_ts>
          <short_desc>WebGL: rendering difference OpenGL, Metal: MSAA + disable depth_test causes depth invalid depth buffer (AMD)</short_desc>
          <delta_ts>2022-03-29 02:33:16 -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>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=238118</see_also>
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>geofflang</cc>
    
    <cc>gman</cc>
    
    <cc>jonahr</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>kpiddington</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1853583</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2022-03-22 02:32:50 -0700</bug_when>
    <thetext>WebGL: rendering difference OpenGL, Metal, AMD: MSAA + disable depth_test causes depth invalid depth buffer

iMacPro1,1 AMD OpenGL: white outer rectangle
iMacPro1,1 AMD Metal: black outer rectangle

https://github.com/brendan-duncan/webgl_bug_tests/blob/main/msaa_depth_buffer.html
and viewed from here:
https://brendan-duncan.github.io/webgl_bug_tests/msaa_depth_buffer.html

From bug 238118</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1853837</commentid>
    <comment_count>1</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2022-03-22 12:19:31 -0700</bug_when>
    <thetext>What&apos;s the behavior on Chrome Canary, both with the defaults, and with the command line argument:
  --use-angle=metal
? If the two paths render identically there, then this will be fixed with the forthcoming ANGLE roll in Bug 238171.

On my 2017 dual-GPU Intel/AMD MacBook Pro, I don&apos;t see a behavioral difference in either Canary or stable Safari 15.4, using gSwitch to force on the AMD GPU. This might be specific to this particular GPU family. There have certainly been other bugs specific to newer AMD GPUs than were in the 2017 MBP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1855961</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-03-29 02:33:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/90972518&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>