<?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>254828</bug_id>
          
          <creation_ts>2023-03-31 10:21:26 -0700</creation_ts>
          <short_desc>[GTK] AcceleratedSurfaceDMABuf.cpp does not build on i386</short_desc>
          <delta_ts>2023-04-14 09:56:17 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=255460</see_also>
          <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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1945735</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-31 10:21:26 -0700</bug_when>
    <thetext>In file included from /buildstream/gnome/sdk/webkitgtk-6.0.bst/_builddir/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-29.cpp:2:
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:133:20: error: non-constant-expression cannot be narrowed from type &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; in initializer list [-Wc++11-narrowing]
                EGL_WIDTH, gbm_bo_get_width(backObject),
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:133:20: note: insert an explicit cast to silence this issue
                EGL_WIDTH, gbm_bo_get_width(backObject),
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           static_cast&lt;int&gt;(           )
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:134:21: error: non-constant-expression cannot be narrowed from type &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; in initializer list [-Wc++11-narrowing]
                EGL_HEIGHT, gbm_bo_get_height(backObject),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:134:21: note: insert an explicit cast to silence this issue
                EGL_HEIGHT, gbm_bo_get_height(backObject),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            static_cast&lt;int&gt;(            )
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:135:35: error: non-constant-expression cannot be narrowed from type &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; in initializer list [-Wc++11-narrowing]
                EGL_LINUX_DRM_FOURCC_EXT, gbm_bo_get_format(backObject),
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:135:35: note: insert an explicit cast to silence this issue
                EGL_LINUX_DRM_FOURCC_EXT, gbm_bo_get_format(backObject),
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          static_cast&lt;int&gt;(            )
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:137:40: error: non-constant-expression cannot be narrowed from type &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; in initializer list [-Wc++11-narrowing]
                EGL_DMA_BUF_PLANE0_OFFSET_EXT, gbm_bo_get_offset(backObject, 0),
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:137:40: note: insert an explicit cast to silence this issue
                EGL_DMA_BUF_PLANE0_OFFSET_EXT, gbm_bo_get_offset(backObject, 0),
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                               static_cast&lt;int&gt;(               )
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:138:39: error: non-constant-expression cannot be narrowed from type &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; in initializer list [-Wc++11-narrowing]
                EGL_DMA_BUF_PLANE0_PITCH_EXT, gbm_bo_get_stride(backObject),
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:138:39: note: insert an explicit cast to silence this issue
                EGL_DMA_BUF_PLANE0_PITCH_EXT, gbm_bo_get_stride(backObject),
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                              static_cast&lt;int&gt;(            )
        5 errors generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945758</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-31 10:57:26 -0700</bug_when>
    <thetext>I guess it&apos;s safe to cast these to EGLAttrib because surfaces with size that would overflow an int would be outrageous.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945784</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-31 11:24:23 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/12250</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945957</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-01 07:26:33 -0700</bug_when>
    <thetext>Committed 262476@main (f8991bed5a03): &lt;https://commits.webkit.org/262476@main&gt;

Reviewed commits have been landed. Closing PR #12250 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>