<?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>300527</bug_id>
          
          <creation_ts>2025-10-10 15:42:32 -0700</creation_ts>
          <short_desc>[WPE] API test TestDisplayWayland failing on dual GPU systems</short_desc>
          <delta_ts>2025-10-10 15:42:32 -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>WPE WebKit</component>
          <version>WebKit Nightly Build</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2150077</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-10-10 15:42:32 -0700</bug_when>
    <thetext>./Tools/Scripts/run-wpe-tests --release WPEPlatform/TestDisplay WPEPlatform/TestDisplayWayland

On my laptop (dual intel/nvidia), the TestDisplayWayland are failing due to the following (fatal) warning:

** (TestDisplayWayland:569583): WARNING **: 13:10:40.312: Infered DRM device (/dev/dri/card1) using libdrm but multiple were found, you can override this with WPE_DRM_DEVICE

It&apos;s emitted by `wpeDRMDeviceCreateForDevice`, which `WPEDisplayWayland` calls with nullptr. Meanwhile, `WPE_DRM_DEVICE` is just checked lazily in `wpe_display_get_drm_device`, before asking the child class for the drm device.

In fact, IIUC, currently, if we use `WPE_DRM_DEVICE, we can have the scenario where `WPEDisplayWayland` might be using a given `WPEDRMDevice` (its `priv-&gt;drmDevice`) that&apos;s different from the one returned by `wpe_display_get_drm_device`, which would be `WPEDisplay`&apos;s `priv-&gt;overridenDRMDevice`.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>