<?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>241182</bug_id>
          
          <creation_ts>2022-06-01 07:15:50 -0700</creation_ts>
          <short_desc>[ARM][NEON] FELightningNEON.cpp fails to build, NEON fast path seems unused</short_desc>
          <delta_ts>2024-04-15 05:39:00 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>267349</dup_id>
          
          <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>241183</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>loic.yhuel</cc>
    
    <cc>olivier.blin</cc>
    
    <cc>psaavedra</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1873293</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-06-01 07:15:50 -0700</bug_when>
    <thetext>In order to reproduce, the easiest is to check out Buildroot
commit eb5e2d2d43c5c0f71ae8243081625261de2cd134, and use the
following snippet as a defconfig:

  % cat &gt; configs/wpewebkit_neon_defconfig &lt;&lt;EOF
  BR2_arm=y
  BR2_cortex_a72=y
  BR2_ARM_FPU_NEON_VFPV4=y
  BR2_PER_PACKAGE_DIRECTORIES=y
  BR2_TOOLCHAIN_EXTERNAL=y
  BR2_SYSTEM_DHCP=&quot;eth0&quot;
  BR2_ROOTFS_POST_BUILD_SCRIPT=&quot;board/raspberrypi4/post-build.sh&quot;
  BR2_ROOTFS_POST_IMAGE_SCRIPT=&quot;board/raspberrypi4/post-image.sh&quot;
  BR2_LINUX_KERNEL=y
  BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
  BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION=&quot;$(call github,raspberrypi,linux,0b54dbda3cca2beb51e236a25738784e90853b64)/linux-0b54dbda3cca2beb51e236a25738784e90853b64.tar.gz&quot;
  BR2_LINUX_KERNEL_DEFCONFIG=&quot;bcm2711&quot;
  BR2_LINUX_KERNEL_DTS_SUPPORT=y
  BR2_LINUX_KERNEL_INTREE_DTS_NAME=&quot;bcm2711-rpi-4-b&quot;
  BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
  BR2_PACKAGE_COG=y
  BR2_PACKAGE_MESA3D=y
  BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D=y
  BR2_PACKAGE_MESA3D_OPENGL_ES=y
  BR2_PACKAGE_RPI_FIRMWARE=y
  BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4=y
  BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE=&quot;board/raspberrypi4/config_4.txt&quot;
  BR2_PACKAGE_WPEWEBKIT=y
  BR2_TARGET_ROOTFS_EXT2=y
  BR2_TARGET_ROOTFS_EXT2_4=y
  BR2_TARGET_ROOTFS_EXT2_SIZE=&quot;120M&quot;
  BR2_PACKAGE_HOST_DOSFSTOOLS=y
  BR2_PACKAGE_HOST_GENIMAGE=y
  BR2_PACKAGE_HOST_MTOOLS=y
  EOF
  % make O=wpewebkit-neon wpewebkit_neon_defconfig
  % make O=wpewebkit-neon BR2_JLEVEL=$(nproc) wpewebkit

After a while, the build will fail with:

[ 48%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-cbdfe323-42.cpp.o
In file included from platform/graphics/filters/FESpecularLighting.h:25,
                 from svg/SVGFESpecularLightingElement.h:25,
                 from ../../WebCore/DerivedSources/JSSVGFESpecularLightingElement.h:26,
                 from ../../WebCore/DerivedSources/JSSVGFESpecularLightingElement.cpp:22,
                 from ../../WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-119.cpp:5:
platform/graphics/filters/FELighting.h:72:41: error: ‘LightingData’ does not name a type
   72 |     inline void platformApplyNeon(const LightingData&amp;, const LightSource::PaintingData&amp;);
      |                                         ^~~~~~~~~~~~
make[4]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:5152: Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-119.cpp.o] Error 1


Moreover, it seems that nothing calls FELighting::platformApplyNeon()
anymore, which means even the code got built it would not be used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873538</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-06-02 01:50:03 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/1233</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874712</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-08 07:16:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/94631062&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926245</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Blin">olivier.blin</who>
    <bug_when>2023-01-18 05:33:12 -0800</bug_when>
    <thetext>FELighting::platformApplyNeon() being unused seems to be a regression from bug 232832, see https://commits.webkit.org/r286140</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028297</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-04-13 12:08:05 -0700</bug_when>
    <thetext>This has been implemented using the new filters infrastructure 
in 272873@main ^=^

*** This bug has been marked as a duplicate of bug 267349 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028490</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Blin">olivier.blin</who>
    <bug_when>2024-04-15 05:39:00 -0700</bug_when>
    <thetext>Thanks Adrian!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>