⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 227901 in webkit


Ignore:
Timestamp:
Jan 31, 2018, 8:11:57 AM (9 years ago)
Author:
Philippe Normand
Message:

[JHBuild] Add gstreamer-vaapi in moduleset
​https://bugs.webkit.org/show_bug.cgi?id=182283

Reviewed by Carlos Alberto Lopez Perez.

GStreamer-VAAPI is required for hardware-accelerated video
playback support on Intel and AMD (using radeosi driver)
platforms.

  • gstreamer/jhbuild.modules: Add gstreamer-vaapi.
  • gtk/install-dependencies: Install libva.
  • wpe/install-dependencies: Ditto.
  • Scripts/webkitpy/port/gtk.py:

(GtkPort.setup_environ_for_server): Disable va-api support when
testing because it's incompatible with Mesa's softGL driver.

Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r227900 r227901  
     12018-01-31  Philippe Normand  <pnormand@igalia.com>
     2
     3        [JHBuild] Add gstreamer-vaapi in moduleset
     4        https://bugs.webkit.org/show_bug.cgi?id=182283
     5
     6        Reviewed by Carlos Alberto Lopez Perez.
     7
     8        GStreamer-VAAPI is required for hardware-accelerated video
     9        playback support on Intel and AMD (using radeosi driver)
     10        platforms.
     11
     12        * gstreamer/jhbuild.modules: Add gstreamer-vaapi.
     13        * gtk/install-dependencies: Install libva.
     14        * wpe/install-dependencies: Ditto.
     15        * Scripts/webkitpy/port/gtk.py:
     16        (GtkPort.setup_environ_for_server): Disable va-api support when
     17        testing because it's incompatible with Mesa's softGL driver.
     18
    1192018-01-31  Charlie Turner  <cturner@igalia.com>
    220
  • trunk/Tools/Scripts/webkitpy/port/gtk.py

    r227427 r227901  
    122122        environment['TEST_RUNNER_INJECTED_BUNDLE_FILENAME'] = self._build_path('lib', 'libTestRunnerInjectedBundle.so')
    123123        environment['TEST_RUNNER_TEST_PLUGIN_PATH'] = self._build_path('lib', 'plugins')
    124         environment['OWR_USE_TEST_SOURCES'] = '1'
    125124        self._copy_value_from_environ_if_set(environment, 'WEBKIT_OUTPUTDIR')
    126125
    … …  
    131130            dri_libgl_path = os.path.join(llvmpipe_libgl_path, "dri")
    132131            if os.path.exists(os.path.join(llvmpipe_libgl_path, "libGL.so")) and os.path.exists(os.path.join(dri_libgl_path, "swrast_dri.so")):
    133                     # Force the Gallium llvmpipe software rasterizer
    134                     environment['LIBGL_ALWAYS_SOFTWARE'] = "1"
    135                     environment['LIBGL_DRIVERS_PATH'] = dri_libgl_path
    136                     environment['LD_LIBRARY_PATH'] = llvmpipe_libgl_path
    137                     if os.environ.get('LD_LIBRARY_PATH'):
    138                             environment['LD_LIBRARY_PATH'] += ':%s' % os.environ.get('LD_LIBRARY_PATH')
     132                # Make sure va-api support gets disabled because it's incompatible with Mesa's softGL driver.
     133                environment['LIBVA_DRIVER_NAME'] = "null"
     134                # Force the Gallium llvmpipe software rasterizer
     135                environment['LIBGL_ALWAYS_SOFTWARE'] = "1"
     136                environment['LIBGL_DRIVERS_PATH'] = dri_libgl_path
     137                environment['LD_LIBRARY_PATH'] = llvmpipe_libgl_path
     138                if os.environ.get('LD_LIBRARY_PATH'):
     139                    environment['LD_LIBRARY_PATH'] += ':%s' % os.environ.get('LD_LIBRARY_PATH')
    139140            else:
    140                     _log.warning("Can't find Gallium llvmpipe driver. Try to run update-webkitgtk-libs")
     141                _log.warning("Can't find Gallium llvmpipe driver. Try to run update-webkitgtk-libs")
    141142        if self.get_option("leaks"):
    142143            # Turn off GLib memory optimisations https://wiki.gnome.org/Valgrind.
  • trunk/Tools/gstreamer/jhbuild.modules

    r225780 r227901  
    1111      <dep package="gst-plugins-bad"/>
    1212      <dep package="gst-libav"/>
     13      <dep package="gstreamer-vaapi"/>
    1314    </dependencies>
    1415  </metamodule>
    … …  
    104105  </autotools>
    105106
     107  <autotools id="gstreamer-vaapi">
     108    <branch module="gstreamer-vaapi/gstreamer-vaapi-${version}.tar.xz" version="1.12.4"
     109            repo="gstreamer"
     110            hash="sha256:1c2d77242e1f30c4d1394636cae9f6877228a017960fca96881e0080d8b6e9c9"/>
     111    <dependencies>
     112      <dep package="gstreamer"/>
     113      <dep package="gst-plugins-base"/>
     114      <dep package="gst-plugins-bad"/>
     115    </dependencies>
     116   </autotools>
     117
    106118</moduleset>
  • trunk/Tools/gtk/install-dependencies

    r226950 r227901  
    197197        libssl-dev \
    198198        libtiff5-dev \
     199        libva-dev \
    199200        libv4l-dev \
    200201        libxcb-composite0-dev \
    … …  
    347348        libproxy \
    348349        libtiff \
     350        libva \
    349351        libxfixes \
    350352        libxfont \
    … …  
    509511        libproxy-devel \
    510512        libtiff-devel \
     513        libva-devel \
    511514        libxcb-devel \
    512515        libxkbfile-devel \
  • trunk/Tools/wpe/install-dependencies

    r226395 r227901  
    119119        libtheora-dev \
    120120        libtool-bin \
     121        libva-dev \
    121122        libvorbis-dev \
    122123        libvpx-dev \
    … …  
    204205        libtheora \
    205206        libv4l-dev \
     207        libva \
    206208        libvorbis \
    207209        libvpx \
    … …  
    285287        libtheora-devel \
    286288        libv4l-devel \
     289        libva-devel \
    287290        libvorbis-devel \
    288291        libvpx-devel \
Note: See TracChangeset for help on using the changeset viewer.