Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 863764 Details for
Bug 904437
media-tv/mythtv-32.0-r3 fails to build with >=media-libs/libva-2.18 (opengl/mythvaapiinterop.h:25:10: fatal error: va/va_glx.h: No such file or directory)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mythtv-33.1-libva.patch
mythtv-33.1-libva.patch (text/plain), 3.56 KB, created by
Sebastian Parborg
on 2023-06-13 11:56:39 UTC
(
hide
)
Description:
mythtv-33.1-libva.patch
Filename:
MIME Type:
Creator:
Sebastian Parborg
Created:
2023-06-13 11:56:39 UTC
Size:
3.56 KB
patch
obsolete
>diff --git a/mythtv/libs/libmythtv/libmythtv.pro b/mythtv/libs/libmythtv/libmythtv.pro >index 0ab94a295c..08b4c4d335 100644 >--- a/libs/libmythtv/libmythtv.pro >+++ b/libs/libmythtv/libmythtv.pro >@@ -538,7 +538,7 @@ using_frontend { > DEFINES += USING_VAAPI > HEADERS += decoders/mythvaapicontext.h > SOURCES += decoders/mythvaapicontext.cpp >- LIBS += -lva -lva-x11 -lva-glx -lva-drm >+ LIBS += -lva -lva-drm > } > > using_nvdec { >@@ -605,10 +605,9 @@ using_frontend { > SOURCES += opengl/mythopengltonemap.cpp > SOURCES += visualisations/videovisualcircles.cpp > >- > using_vaapi { >- HEADERS += opengl/mythvaapiinterop.h opengl/mythvaapiglxinterop.h >- SOURCES += opengl/mythvaapiinterop.cpp opengl/mythvaapiglxinterop.cpp >+ HEADERS += opengl/mythvaapiinterop.h >+ SOURCES += opengl/mythvaapiinterop.cpp > } > > using_vdpau:using_x11 { >@@ -649,6 +648,12 @@ using_frontend { > HEADERS += opengl/mythvaapidrminterop.h > SOURCES += opengl/mythvaapidrminterop.cpp > } >+ } else { >+ using_vaapi { >+ HEADERS += opengl/mythvaapiglxinterop.h >+ SOURCES += opengl/mythvaapiglxinterop.cpp >+ LIBS += -lva-x11 -lva-glx >+ } > } > > !win32-msvc* { >diff --git a/mythtv/libs/libmythtv/opengl/mythvaapiinterop.cpp b/mythtv/libs/libmythtv/opengl/mythvaapiinterop.cpp >index 5f92a6beb0..b87ed0da35 100644 >--- a/libs/libmythtv/opengl/mythvaapiinterop.cpp >+++ b/libs/libmythtv/opengl/mythvaapiinterop.cpp >@@ -8,8 +8,12 @@ > #include "mythvideocolourspace.h" > #include "fourcc.h" > #include "mythvaapiinterop.h" >+ >+#ifdef USING_EGL > #include "mythvaapidrminterop.h" >+#else > #include "mythvaapiglxinterop.h" >+#endif > > extern "C" { > #include "libavfilter/buffersrc.h" >@@ -57,14 +61,14 @@ void MythVAAPIInterop::GetVAAPITypes(MythRenderOpenGL* Context, MythInteropGPU:: > // zero copy > if (egl && MythVAAPIInteropDRM::IsSupported(Context)) > vaapitypes.emplace_back(GL_VAAPIEGLDRM); >-#endif >+#else > // 1x copy > if (!egl && !wayland && MythVAAPIInteropGLXPixmap::IsSupported(Context)) > vaapitypes.emplace_back(GL_VAAPIGLXPIX); > // 2x copy > if (!egl && !opengles && !wayland) > vaapitypes.emplace_back(GL_VAAPIGLXCOPY); >- >+#endif > if (!vaapitypes.empty()) > Types[FMT_VAAPI] = vaapitypes; > } >@@ -82,11 +86,12 @@ MythVAAPIInterop* MythVAAPIInterop::CreateVAAPI(MythPlayerUI *Player, MythRender > #ifdef USING_EGL > if ((type == GL_VAAPIEGLDRM) || (type == DRM_DRMPRIME)) > return new MythVAAPIInteropDRM(Player, Context, type); >-#endif >+#else > if (type == GL_VAAPIGLXPIX) > return new MythVAAPIInteropGLXPixmap(Player, Context); > if (type == GL_VAAPIGLXCOPY) > return new MythVAAPIInteropGLXCopy(Player, Context); >+#endif > } > } > return nullptr; >diff --git a/mythtv/libs/libmythtv/opengl/mythvaapiinterop.h b/mythtv/libs/libmythtv/opengl/mythvaapiinterop.h >index 11358db236..2048d4586c 100644 >--- a/libs/libmythtv/opengl/mythvaapiinterop.h >+++ b/libs/libmythtv/opengl/mythvaapiinterop.h >@@ -25,9 +25,12 @@ struct AVFilterContext; > #undef None // X11/X.h defines this. Causes compile failure in Qt6. > #undef Cursor > #undef pointer >-#include "va/va_glx.h" >+#ifdef USING_EGL > #include "va/va_drm.h" > #include "va/va_drmcommon.h" >+#else >+#include "va/va_glx.h" >+#endif > #undef Bool // Interferes with cmake moc file compilation > > #ifndef VA_FOURCC_I420
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 904437
:
860225
|
863763
| 863764