<?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>202835</bug_id>
          
          <creation_ts>2019-10-10 17:47:08 -0700</creation_ts>
          <short_desc>Support eGPUs correctly in ANGLE backend</short_desc>
          <delta_ts>2022-06-30 16:39:24 -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 Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>198948</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Russell">kbr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>hypertree</cc>
    
    <cc>jdarpinian</cc>
    
    <cc>justin_fan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1578929</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2019-10-10 17:47:08 -0700</bug_when>
    <thetext>WebKit&apos;s current WebGL implementation supports external GPUs (eGPUs) correctly, specifically when the browser window is moved from one screen to another driven by an eGPU. ANGLE doesn&apos;t currently contain the code required to let this work correctly (the associated CGLSetVirtualScreen calls, and others).

Investigation will be needed to understand how exactly to make this work. For example, should WebKit&apos;s code continue to register a CGDisplayRegisterReconfigurationCallback, and call into ANGLE via some new extension so ANGLE can set the CGL renderer ID of its internal CGLContextObj?

This is a blocker to switching to the ANGLE backend - it would be unfortunate to regress support for eGPUs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1653261</commentid>
    <comment_count>1</comment_count>
    <who name="Sanjay Kumar">hypertree</who>
    <bug_when>2020-05-15 18:52:00 -0700</bug_when>
    <thetext>This seems like biggest blocker in switching to ANGLE.
Any update ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1653718</commentid>
    <comment_count>2</comment_count>
    <who name="James Darpinian">jdarpinian</who>
    <bug_when>2020-05-18 12:59:41 -0700</bug_when>
    <thetext>We should test this, but I believe it is fixed already. CGLSetVirtualScreen is called outside of ANGLE, in the same place as in the non-ANGLE path (GraphicsContextGLOpenGLCocoa.mm).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879581</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-06-30 16:39:24 -0700</bug_when>
    <thetext>We believe this is fixed in modern Apple platforms.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>