From owner-svn-ports-all@freebsd.org Thu Nov 22 00:08:39 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 213A21104322; Thu, 22 Nov 2018 00:08:38 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C9BF7DB57; Thu, 22 Nov 2018 00:08:38 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0EF7C279A8; Thu, 22 Nov 2018 00:08:38 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAM08b8w070302; Thu, 22 Nov 2018 00:08:37 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAM08bNL070298; Thu, 22 Nov 2018 00:08:37 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201811220008.wAM08bNL070298@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 22 Nov 2018 00:08:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485572 - head/multimedia/libva-intel-media-driver/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/multimedia/libva-intel-media-driver/files X-SVN-Commit-Revision: 485572 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 2C9BF7DB57 X-Spamd-Result: default: False [1.61 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_LONG(0.42)[0.420,0]; NEURAL_SPAM_MEDIUM(0.51)[0.514,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_SPAM_SHORT(0.68)[0.679,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2018 00:08:40 -0000 Author: jbeich Date: Thu Nov 22 00:08:36 2018 New Revision: 485572 URL: https://svnweb.freebsd.org/changeset/ports/485572 Log: multimedia/libva-intel-media-driver: expand patch comments Modified: head/multimedia/libva-intel-media-driver/files/patch-fbres (contents, props changed) head/multimedia/libva-intel-media-driver/files/patch-glibc (contents, props changed) head/multimedia/libva-intel-media-driver/files/patch-i386-atomics (contents, props changed) head/multimedia/libva-intel-media-driver/files/patch-memalign (contents, props changed) head/multimedia/libva-intel-media-driver/files/patch-thread-id (contents, props changed) Modified: head/multimedia/libva-intel-media-driver/files/patch-fbres ============================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-fbres Thu Nov 22 00:08:23 2018 (r485571) +++ head/multimedia/libva-intel-media-driver/files/patch-fbres Thu Nov 22 00:08:36 2018 (r485572) @@ -1,5 +1,18 @@ Get framebuffer resolution on more platforms +media_driver/linux/common/codec/ddi/media_libva_decoder.cpp:48:10: fatal error: 'linux/fb.h' file not found +#include + ^~~~~~~~~~~~ +media_driver/linux/common/codec/ddi/media_libva_decoder.cpp:55:43: error: variable has incomplete type 'struct fb_var_screeninfo' + struct fb_var_screeninfo vsinfo; + ^ +media_driver/linux/common/codec/ddi/media_libva_decoder.cpp:62:22: error: use of undeclared identifier 'FBIOGET_VSCREENINFO' + if(ioctl(fd, FBIOGET_VSCREENINFO, &vsinfo) < 0) + ^ +media_driver/linux/common/ddi/media_libva.cpp:39:10: fatal error: 'linux/fb.h' file not found +#include + ^~~~~~~~~~~~ + --- media_driver/linux/common/codec/ddi/media_libva_decoder.cpp.orig 2018-10-01 21:39:52 UTC +++ media_driver/linux/common/codec/ddi/media_libva_decoder.cpp @@ -45,7 +45,39 @@ Modified: head/multimedia/libva-intel-media-driver/files/patch-glibc ============================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-glibc Thu Nov 22 00:08:23 2018 (r485571) +++ head/multimedia/libva-intel-media-driver/files/patch-glibc Thu Nov 22 00:08:36 2018 (r485572) @@ -1,5 +1,12 @@ makedev() is defined in on BSDs and on Solaris +mon/os/libdrm/xf86drm.c:50:10: fatal error: 'sys/sysmacros.h' file not found +#include + ^~~~~~~~~~~~~~~~~ +media_driver/linux/ult/libdrm_mock/xf86drm_mock.c:50:10: fatal error: 'sys/sysmacros.h' file not found +#include + ^~~~~~~~~~~~~~~~~ + --- media_driver/linux/common/os/libdrm/xf86drm.c.orig 2018-10-01 21:39:52 UTC +++ media_driver/linux/common/os/libdrm/xf86drm.c @@ -47,13 +47,15 @@ Modified: head/multimedia/libva-intel-media-driver/files/patch-i386-atomics ============================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-i386-atomics Thu Nov 22 00:08:23 2018 (r485571) +++ head/multimedia/libva-intel-media-driver/files/patch-i386-atomics Thu Nov 22 00:08:36 2018 (r485572) @@ -1,7 +1,11 @@ +FreeBSD doesn't ship libatomic, so use __sync* builtins instead: + media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/mos_context_specific.cpp.o: In function `OsContextSpecific::SetSliceCount(unsigned int*)': media_driver/linux/common/os/mos_context_specific.cpp:441: undefined reference to `__atomic_load_8' media_driver/linux/common/os/mos_context_specific.cpp:444: undefined reference to `__atomic_store_8' c++: error: linker command failed with exit code 1 (use -v to see invocation) + +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220822 --- media_driver/linux/common/os/mos_context_specific.cpp.orig 2018-10-01 21:39:52 UTC +++ media_driver/linux/common/os/mos_context_specific.cpp Modified: head/multimedia/libva-intel-media-driver/files/patch-memalign ============================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-memalign Thu Nov 22 00:08:23 2018 (r485571) +++ head/multimedia/libva-intel-media-driver/files/patch-memalign Thu Nov 22 00:08:36 2018 (r485572) @@ -1,5 +1,16 @@ memalign is Linux-specific, so use C11 aligned_alloc instead +In file included from media_driver/agnostic/common/os/mos_utilities.c:36: +/usr/include/malloc.h:3:2: error: " has been replaced by " +#error " has been replaced by " + ^ +media_driver/agnostic/common/os/mos_utilities.c:3096:11: error: use of undeclared identifier 'memalign' + ptr = _aligned_malloc(size, alignment); + ^ +media_driver/linux/common/os/mos_utilities_specific.h:91:43: note: expanded from macro '_aligned_malloc' +#define _aligned_malloc(size, alignment) memalign(alignment, size) + ^ + --- media_driver/agnostic/common/os/mos_utilities.c.orig 2018-10-01 21:39:52 UTC +++ media_driver/agnostic/common/os/mos_utilities.c @@ -33,7 +33,6 @@ Modified: head/multimedia/libva-intel-media-driver/files/patch-thread-id ============================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-thread-id Thu Nov 22 00:08:23 2018 (r485571) +++ head/multimedia/libva-intel-media-driver/files/patch-thread-id Thu Nov 22 00:08:36 2018 (r485572) @@ -1,5 +1,18 @@ Get thread ID on more platforms +media_driver/agnostic/common/cm/cm_task_internal.cpp:851:39: error: use of undeclared identifier 'SYS_gettid' + m_taskProfilingInfo.threadID = CmGetCurThreadId(); // Get Thread ID + ^ +media_driver/linux/common/cm/cm_innerdef_os.h:98:37: note: expanded from macro 'CmGetCurThreadId' +#define CmGetCurThreadId() syscall(SYS_gettid) + ^ +media_driver/agnostic/common/cm/cm_task_internal.cpp:952:39: error: use of undeclared identifier 'SYS_gettid' + m_taskProfilingInfo.threadID = CmGetCurThreadId(); // Get Thread ID + ^ +media_driver/linux/common/cm/cm_innerdef_os.h:98:37: note: expanded from macro 'CmGetCurThreadId' +#define CmGetCurThreadId() syscall(SYS_gettid) + ^ + --- media_driver/linux/common/cm/cm_innerdef_os.h.orig 2018-10-01 21:39:52 UTC +++ media_driver/linux/common/cm/cm_innerdef_os.h @@ -35,8 +35,16 @@