mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Fixing vaapi-vdpau build with newer mesa.
This commit is contained in:
parent
4c6a981070
commit
d4aa6099bd
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
||||
sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
|
||||
'';
|
||||
|
||||
patches = [ ./glext85.patch ];
|
||||
|
||||
meta = {
|
||||
homepage = http://cgit.freedesktop.org/vaapi/vdpau-driver/;
|
||||
license = "GPLv2+";
|
||||
|
18
pkgs/development/libraries/vaapi-vdpau/glext85.patch
Normal file
18
pkgs/development/libraries/vaapi-vdpau/glext85.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/src/utils_glx.h b/src/utils_glx.h
|
||||
index 19d03e4..f270fba 100644
|
||||
--- a/src/utils_glx.h
|
||||
+++ b/src/utils_glx.h
|
||||
@@ -42,6 +42,13 @@ typedef void (*PFNGLVDPAUMAPSURFACESNVPROC)(GLsizei numSurfaces, const GLvdpauSu
|
||||
typedef void (*PFNGLVDPAUUNMAPSURFACESNVPROC)(GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
|
||||
#endif
|
||||
|
||||
+#if GL_GLEXT_VERSION >= 85
|
||||
+/* XXX: PFNGLMULTITEXCOORD2FPROC got out of the GL_VERSION_1_3_DEPRECATED
|
||||
+ block and is not defined if GL_VERSION_1_3 is defined in <GL/gl.h>
|
||||
+ Redefine the type here as an interim solution */
|
||||
+typedef void (*PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
|
||||
+#endif
|
||||
+
|
||||
/* GLX_EXT_texture_from_pixmap */
|
||||
#if GLX_GLXEXT_VERSION < 18
|
||||
typedef void (*PFNGLXBINDTEXIMAGEEXTPROC)(Display *, GLXDrawable, int, const int *);
|
Loading…
Reference in New Issue
Block a user