summaryrefslogtreecommitdiff
path: root/src/core/api
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2023-01-18 11:02:53 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2023-02-15 13:40:30 +0100
commit1b7aaf1c7d98482cd6dc3d80aa0140fe9dd2c7d3 (patch)
treef8aab87736bc017bbc7933df7ce64ce541d10aec /src/core/api
parent47564e329a71fed8b73be403bbdc30fbf684f7a4 (diff)
downloadqtwebengine-1b7aaf1c7d98482cd6dc3d80aa0140fe9dd2c7d3.tar.gz
Enable VAAPI and gpu memory buffers on Linux
Only seen working in vulkan and EGL modes so far. Does not work with system libvpx Fixes: QTBUG-91677 Change-Id: Ie2956c2b841854c78fc1af3c1010fb877728acb1 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/api')
-rw-r--r--src/core/api/configure.cmake17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/api/configure.cmake b/src/core/api/configure.cmake
index a35651b8b..df7583e25 100644
--- a/src/core/api/configure.cmake
+++ b/src/core/api/configure.cmake
@@ -12,6 +12,8 @@ if(NOT QT_CONFIGURE_RUNNING)
pkg_check_modules(PULSEAUDIO libpulse>=0.9.10 libpulse-mainloop-glib)
pkg_check_modules(XDAMAGE xdamage)
pkg_check_modules(POPPLER_CPP poppler-cpp IMPORTED_TARGET)
+ pkg_check_modules(GBM gbm)
+ pkg_check_modules(LIBVA libva)
if(NOT GIO_FOUND)
pkg_check_modules(GIO gio-2.0)
endif()
@@ -152,6 +154,13 @@ qt_feature("webengine-vulkan" PRIVATE
PURPOSE "Enables support for Vulkan rendering"
CONDITION QT_FEATURE_vulkan
)
+qt_feature("webengine-vaapi" PRIVATE
+ SECTION "WebEngine"
+ LABEL "VA-API support"
+ PURPOSE "Enables support for VA-API hardware acceleration"
+ AUTODETECT GBM_FOUND AND LIBVA_FOUND
+ CONDITION LINUX
+)
# internal testing feature
qt_feature("webengine-system-poppler" PRIVATE
LABEL "popler"
@@ -184,12 +193,16 @@ qt_configure_add_summary_entry(
CONDITION QT_FEATURE_vulkan
)
qt_configure_add_summary_entry(
+ ARGS "webengine-vaapi"
+ CONDITION LINUX
+)
+qt_configure_add_summary_entry(
ARGS "webengine-system-alsa"
- CONDITION UNIX
+ CONDITION LINUX
)
qt_configure_add_summary_entry(
ARGS "webengine-system-pulseaudio"
- CONDITION UNIX
+ CONDITION LINUX
)
qt_configure_end_summary_section() # end of "Qt WebEngineCore" section
if(CMAKE_CROSSCOMPILING)