Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libva: switch to virtual opengl provider
@ 2019-10-12 15:39 Bernd Kuhls
  2019-10-12 19:45 ` Thomas Petazzoni
  2019-10-22 20:59 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Kuhls @ 2019-10-12 15:39 UTC (permalink / raw)
  To: buildroot

This allows to use libva without mesa3d.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/libva/libva.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/libva/libva.mk b/package/libva/libva.mk
index 6c8243da90..176f971128 100644
--- a/package/libva/libva.mk
+++ b/package/libva/libva.mk
@@ -20,8 +20,8 @@ LIBVA_CONF_OPTS = \
 ifeq ($(BR2_PACKAGE_XORG7),y)
 LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
 LIBVA_CONF_OPTS += --enable-x11
-ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX),y)
-LIBVA_DEPENDENCIES += mesa3d
+ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
+LIBVA_DEPENDENCIES += libgl
 LIBVA_CONF_OPTS += --enable-glx
 endif
 else
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/libva: switch to virtual opengl provider
  2019-10-12 15:39 [Buildroot] [PATCH 1/1] package/libva: switch to virtual opengl provider Bernd Kuhls
@ 2019-10-12 19:45 ` Thomas Petazzoni
  2019-10-19  7:59   ` Bernd Kuhls
  2019-10-22 20:59 ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2019-10-12 19:45 UTC (permalink / raw)
  To: buildroot

On Sat, 12 Oct 2019 17:39:31 +0200
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:

> diff --git a/package/libva/libva.mk b/package/libva/libva.mk
> index 6c8243da90..176f971128 100644
> --- a/package/libva/libva.mk
> +++ b/package/libva/libva.mk
> @@ -20,8 +20,8 @@ LIBVA_CONF_OPTS = \
>  ifeq ($(BR2_PACKAGE_XORG7),y)
>  LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
>  LIBVA_CONF_OPTS += --enable-x11
> -ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX),y)
> -LIBVA_DEPENDENCIES += mesa3d
> +ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
> +LIBVA_DEPENDENCIES += libgl
>  LIBVA_CONF_OPTS += --enable-glx

Do all OpenGL implementation provide GLX support ? I would assume that
in most practical cases, yes, but I'm wondering.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/libva: switch to virtual opengl provider
  2019-10-12 19:45 ` Thomas Petazzoni
@ 2019-10-19  7:59   ` Bernd Kuhls
  0 siblings, 0 replies; 4+ messages in thread
From: Bernd Kuhls @ 2019-10-19  7:59 UTC (permalink / raw)
  To: buildroot

Am Sat, 12 Oct 2019 21:45:04 +0200 schrieb Thomas Petazzoni:

> Do all OpenGL implementation provide GLX support ? I would assume that
> in most practical cases, yes, but I'm wondering.

Hi Thomas,

three packages contain "select BR2_PACKAGE_HAS_LIBGL":

- amd-catalyst
- mesa3d
- nvidia-driver

Building libva with glx support was successful with these defconfigs:

BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XSERVER_XORG_SERVER=y
BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_17=y
BR2_PACKAGE_AMD_CATALYST=y
BR2_PACKAGE_LIBVA=y

BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XSERVER_XORG_SERVER=y
BR2_PACKAGE_NVIDIA_DRIVER=y
BR2_PACKAGE_LIBVA=y

Regards, Bernd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/libva: switch to virtual opengl provider
  2019-10-12 15:39 [Buildroot] [PATCH 1/1] package/libva: switch to virtual opengl provider Bernd Kuhls
  2019-10-12 19:45 ` Thomas Petazzoni
@ 2019-10-22 20:59 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2019-10-22 20:59 UTC (permalink / raw)
  To: buildroot

On Sat, 12 Oct 2019 17:39:31 +0200
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:

> This allows to use libva without mesa3d.
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/libva/libva.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-22 20:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-12 15:39 [Buildroot] [PATCH 1/1] package/libva: switch to virtual opengl provider Bernd Kuhls
2019-10-12 19:45 ` Thomas Petazzoni
2019-10-19  7:59   ` Bernd Kuhls
2019-10-22 20:59 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox