Index: head/multimedia/Makefile =================================================================== --- head/multimedia/Makefile (revision 484212) +++ head/multimedia/Makefile (revision 484213) @@ -1,486 +1,488 @@ # $FreeBSD$ # COMMENT = Multimedia software SUBDIR += 2mandvd SUBDIR += Bento4 SUBDIR += QtAV SUBDIR += ab25 SUBDIR += abby SUBDIR += acidrip SUBDIR += aegisub SUBDIR += aom SUBDIR += aravis SUBDIR += asdcplib SUBDIR += assimp SUBDIR += atomicparsley SUBDIR += audacious SUBDIR += audacious-gtk3 SUBDIR += audacious-plugins SUBDIR += audacious-plugins-gtk3 SUBDIR += audiopreview SUBDIR += avidemux SUBDIR += avidemux-cli SUBDIR += avidemux-plugins SUBDIR += avidemux-qt4 SUBDIR += avinfo SUBDIR += baka-mplayer SUBDIR += bcmatroska2 SUBDIR += bino SUBDIR += bitstream SUBDIR += blind SUBDIR += bsdbktr_tvtune SUBDIR += camserv SUBDIR += ccextractor SUBDIR += cclive SUBDIR += cheese SUBDIR += chilitags SUBDIR += cinelerra-gg SUBDIR += clipgrab SUBDIR += clive SUBDIR += clutter-gst SUBDIR += clutter-gst3 SUBDIR += cmrt SUBDIR += cuse4bsd-kmod SUBDIR += cx88 SUBDIR += deforaos-player SUBDIR += devede SUBDIR += din SUBDIR += dirac SUBDIR += dragon SUBDIR += dragon-kde4 SUBDIR += dtv-scan-tables SUBDIR += dumpmpeg SUBDIR += dv2jpg SUBDIR += dv2sub SUBDIR += dvb-apps SUBDIR += dvbcut SUBDIR += dvbsnoop SUBDIR += dvd-slideshow SUBDIR += dvdauthor SUBDIR += dvdid SUBDIR += dvdrip SUBDIR += dvdstyler SUBDIR += dvts SUBDIR += emby-server SUBDIR += emovix SUBDIR += ffdec SUBDIR += ffmpeg SUBDIR += ffmpeg0 SUBDIR += ffmpeg2theora SUBDIR += ffmpegthumbnailer SUBDIR += ffms2 SUBDIR += flvmeta SUBDIR += flvstreamer SUBDIR += flvtool++ SUBDIR += fpc-dts SUBDIR += fpc-libvlc SUBDIR += freevo SUBDIR += fxtv SUBDIR += gaupol SUBDIR += gavl SUBDIR += gcfilms SUBDIR += gdialog SUBDIR += gdvrecv SUBDIR += gmerlin SUBDIR += gmerlin-avdecoder SUBDIR += gmimms + SUBDIR += gmmlib SUBDIR += gmp-api SUBDIR += gmtk SUBDIR += gnome-mplayer SUBDIR += gnome-mpv SUBDIR += gnome-subtitles SUBDIR += gpac-libgpac SUBDIR += gpac-mp4box SUBDIR += gpodder SUBDIR += grake SUBDIR += gst123 SUBDIR += gstreamer SUBDIR += gstreamer-ffmpeg SUBDIR += gstreamer-plugins SUBDIR += gstreamer-plugins-all SUBDIR += gstreamer-plugins-annodex SUBDIR += gstreamer-plugins-bad SUBDIR += gstreamer-plugins-buzztard SUBDIR += gstreamer-plugins-bz2 SUBDIR += gstreamer-plugins-core SUBDIR += gstreamer-plugins-dts SUBDIR += gstreamer-plugins-dv SUBDIR += gstreamer-plugins-dvd SUBDIR += gstreamer-plugins-fluendo-mpegdemux SUBDIR += gstreamer-plugins-gnonlin SUBDIR += gstreamer-plugins-good SUBDIR += gstreamer-plugins-mpeg2dec SUBDIR += gstreamer-plugins-mpeg2enc SUBDIR += gstreamer-plugins-resindvd SUBDIR += gstreamer-plugins-schroedinger SUBDIR += gstreamer-plugins-theora SUBDIR += gstreamer-plugins-ugly SUBDIR += gstreamer-plugins-v4l2 SUBDIR += gstreamer-plugins-vdpau SUBDIR += gstreamer-plugins-vp8 SUBDIR += gstreamer-plugins-x264 SUBDIR += gstreamer-plugins-xvid SUBDIR += gstreamer-qt4 SUBDIR += gstreamer1 SUBDIR += gstreamer1-editing-services SUBDIR += gstreamer1-libav SUBDIR += gstreamer1-plugins SUBDIR += gstreamer1-plugins-all SUBDIR += gstreamer1-plugins-aom SUBDIR += gstreamer1-plugins-assrender SUBDIR += gstreamer1-plugins-bad SUBDIR += gstreamer1-plugins-core SUBDIR += gstreamer1-plugins-dash SUBDIR += gstreamer1-plugins-dts SUBDIR += gstreamer1-plugins-dv SUBDIR += gstreamer1-plugins-dvdread SUBDIR += gstreamer1-plugins-gnonlin SUBDIR += gstreamer1-plugins-good SUBDIR += gstreamer1-plugins-hls SUBDIR += gstreamer1-plugins-kate SUBDIR += gstreamer1-plugins-libde265 SUBDIR += gstreamer1-plugins-mpeg2dec SUBDIR += gstreamer1-plugins-mpeg2enc SUBDIR += gstreamer1-plugins-mplex SUBDIR += gstreamer1-plugins-openh264 SUBDIR += gstreamer1-plugins-resindvd SUBDIR += gstreamer1-plugins-rtmp SUBDIR += gstreamer1-plugins-smoothstreaming SUBDIR += gstreamer1-plugins-theora SUBDIR += gstreamer1-plugins-ttml SUBDIR += gstreamer1-plugins-ugly SUBDIR += gstreamer1-plugins-v4l2 SUBDIR += gstreamer1-plugins-vpx SUBDIR += gstreamer1-plugins-x264 SUBDIR += gstreamer1-plugins-x265 SUBDIR += gstreamer1-qt SUBDIR += gstreamer1-rtsp-server SUBDIR += gstreamer1-vaapi SUBDIR += gstreamer1-validate SUBDIR += gstreamermm SUBDIR += gtk-recordmydesktop SUBDIR += gtk-youtube-viewer SUBDIR += gxine SUBDIR += handbrake SUBDIR += harvid SUBDIR += imagination SUBDIR += iriverter SUBDIR += iso2mkv SUBDIR += jmref SUBDIR += k9copy-kde4 SUBDIR += kaffeine SUBDIR += kamoso SUBDIR += kdemultimedia SUBDIR += kdemultimedia-ffmpegthumbs SUBDIR += kdemultimedia-ffmpegthumbs-kde4 SUBDIR += kdemultimedia-kde4 SUBDIR += kdemultimedia-mplayerthumbs-kde4 SUBDIR += kdenlive SUBDIR += kdenlive-kde4 SUBDIR += kf5-kmediaplayer SUBDIR += kissdx SUBDIR += kmplayer-kde4 SUBDIR += kodi SUBDIR += kodi-addon-pvr-hts SUBDIR += kodi-addon-pvr-iptvsimple SUBDIR += kodi-devel SUBDIR += kplayer-kde4 SUBDIR += kvazaar SUBDIR += l-smash SUBDIR += libaacs SUBDIR += libass SUBDIR += libav SUBDIR += libbdplus SUBDIR += libbluray SUBDIR += libcec SUBDIR += libdc1394 SUBDIR += libdca SUBDIR += libdcadec SUBDIR += libde265 SUBDIR += libdv SUBDIR += libdvbcsa SUBDIR += libdvbpsi SUBDIR += libdvdcss SUBDIR += libdvdnav SUBDIR += libdvdread SUBDIR += libfame SUBDIR += libhdhomerun SUBDIR += libkate SUBDIR += libmatroska SUBDIR += libmediaart SUBDIR += libmediainfo SUBDIR += libmpeg2 SUBDIR += libmpeg3 SUBDIR += libmtp SUBDIR += libquicktime SUBDIR += libquicktime-lame SUBDIR += libquvi SUBDIR += libquvi-scripts SUBDIR += libquvi-scripts09 SUBDIR += libquvi09 SUBDIR += librtmp SUBDIR += libsmacker SUBDIR += libtheora SUBDIR += libtuner SUBDIR += libuvc SUBDIR += libv4l SUBDIR += libva SUBDIR += libva-intel-driver SUBDIR += libva-intel-hybrid-driver + SUBDIR += libva-intel-media-driver SUBDIR += libva-utils SUBDIR += libva-vdpau-driver SUBDIR += libvdpau SUBDIR += libvdpau-va-gl SUBDIR += libvpx SUBDIR += libx264 SUBDIR += libxine SUBDIR += libxspf SUBDIR += libzen SUBDIR += linux-c6-libtheora SUBDIR += linux-c6-libv4l SUBDIR += linux-c7-libtheora SUBDIR += linux-c7-libv4l SUBDIR += linux-tsmuxer SUBDIR += linux_dvbwrapper-kmod SUBDIR += lives SUBDIR += livestreamer SUBDIR += lsdvd SUBDIR += lxdvdrip SUBDIR += m2tstoavi SUBDIR += m2vrequantiser SUBDIR += mediadownloader SUBDIR += mediainfo SUBDIR += mencoder SUBDIR += mimms SUBDIR += minitube SUBDIR += miro SUBDIR += mjpegtools SUBDIR += mjpg-streamer SUBDIR += mkclean SUBDIR += mkvalidator SUBDIR += mkvtoolnix SUBDIR += mkxvcd SUBDIR += mlt SUBDIR += mlt-qt4 SUBDIR += mlt-qt5 SUBDIR += mmpython SUBDIR += mmsclient SUBDIR += mmsrip SUBDIR += motion SUBDIR += mp3cd SUBDIR += mp4v2 SUBDIR += mpc-qt SUBDIR += mpeg2codec SUBDIR += mpeg2play SUBDIR += mpeg4ip SUBDIR += mpeg_encode SUBDIR += mpeg_play SUBDIR += mpeg_stat SUBDIR += mpgtx SUBDIR += mplayer SUBDIR += mplayer-skins SUBDIR += mplex SUBDIR += mps-youtube SUBDIR += mpv SUBDIR += msdl SUBDIR += msopenh264 SUBDIR += mswebrtc SUBDIR += mxflib SUBDIR += mythtv SUBDIR += mythtv-frontend SUBDIR += naludump SUBDIR += nordlicht SUBDIR += nostt SUBDIR += obs-qtwebkit SUBDIR += obs-studio SUBDIR += oggvideotools SUBDIR += ogmrip SUBDIR += ogmtools SUBDIR += omxplayer SUBDIR += openh264 SUBDIR += openquicktime SUBDIR += openshot SUBDIR += oqtencoder SUBDIR += oqtplayer SUBDIR += oscam SUBDIR += p5-Audio-M4P SUBDIR += p5-FFmpeg-Command SUBDIR += p5-FLV-Info SUBDIR += p5-File-Format-RIFF SUBDIR += p5-GStreamer SUBDIR += p5-MP4-Info SUBDIR += p5-Net-UPnP SUBDIR += p5-Subtitles SUBDIR += p5-Umph-Prompt SUBDIR += p5-Video-OpenQuicktime SUBDIR += pHash SUBDIR += phonon SUBDIR += phonon-designerplugin SUBDIR += phonon-gstreamer SUBDIR += phonon-vlc SUBDIR += phonon-xine SUBDIR += photofilmstrip SUBDIR += php-pHash SUBDIR += pitivi SUBDIR += playd SUBDIR += plexmediaserver SUBDIR += plexmediaserver-plexpass SUBDIR += plexwatch SUBDIR += podcastdl SUBDIR += poe SUBDIR += ppm2fli SUBDIR += projectx SUBDIR += ptx-kmod SUBDIR += pwcbsd SUBDIR += pwcview SUBDIR += py-PySceneDetect SUBDIR += py-av SUBDIR += py-cec SUBDIR += py-enzyme SUBDIR += py-flvlib SUBDIR += py-gstreamer SUBDIR += py-gstreamer1 SUBDIR += py-guessit SUBDIR += py-kaa-base SUBDIR += py-kaa-imlib2 SUBDIR += py-kaa-metadata SUBDIR += py-librtmp SUBDIR += py-mido SUBDIR += py-mlt SUBDIR += py-moviepy SUBDIR += py-openlp SUBDIR += py-periscope SUBDIR += py-pretty_midi SUBDIR += py-qt4-multimedia SUBDIR += py-qt4-phonon SUBDIR += py-qt5-multimedia SUBDIR += py-qt5-multimediawidgets SUBDIR += py-soco SUBDIR += py-subliminal SUBDIR += py-tvnamer SUBDIR += pyjama SUBDIR += pymp SUBDIR += qmmp SUBDIR += qmmp-plugin-pack SUBDIR += qmmp-plugin-pack-qt5 SUBDIR += qmmp-qt5 SUBDIR += qt-faststart SUBDIR += qt4-mobility SUBDIR += qt4-multimedia SUBDIR += qt5-multimedia SUBDIR += quark SUBDIR += quodlibet SUBDIR += quvi SUBDIR += quvi09 SUBDIR += rage SUBDIR += recmpeg SUBDIR += recordmydesktop SUBDIR += replex SUBDIR += rox-videothumbnail SUBDIR += rtmpdump SUBDIR += rubygem-av SUBDIR += rubygem-clutter-gstreamer SUBDIR += rubygem-flvtool2 SUBDIR += rubygem-gstreamer SUBDIR += rubygem-paperclip-av-transcoder SUBDIR += rubygem-paperclip-av-transcoder-rails50 SUBDIR += rubygem-streamio-ffmpeg SUBDIR += sabbu SUBDIR += schroedinger SUBDIR += shotcut SUBDIR += simplescreenrecorder SUBDIR += smpeg SUBDIR += smpeg2 SUBDIR += smplayer SUBDIR += smplayer-skins SUBDIR += smplayer-themes SUBDIR += sms1xxx-kmod SUBDIR += smtube SUBDIR += snappy SUBDIR += spigot SUBDIR += spook SUBDIR += subtitlecomposer SUBDIR += subtitlecomposer-kde4 SUBDIR += subtitleeditor SUBDIR += subtitleoffsetmodifier SUBDIR += subtitleripper SUBDIR += subtools SUBDIR += swfdec-gnome SUBDIR += syncplay SUBDIR += szap-s2 SUBDIR += tautulli SUBDIR += tcmplex-panteltje SUBDIR += tivodecode SUBDIR += totem SUBDIR += totem-pl-parser SUBDIR += tovid SUBDIR += transcode SUBDIR += tstools SUBDIR += tvheadend SUBDIR += umph SUBDIR += umplayer SUBDIR += umr SUBDIR += v4l-utils SUBDIR += v4l_compat SUBDIR += vamps SUBDIR += vapoursynth SUBDIR += vapoursynth-l-smash-works SUBDIR += vcdgear SUBDIR += vcdimager SUBDIR += vcdpad SUBDIR += vdpauinfo SUBDIR += vdr SUBDIR += vdr-plugin-control SUBDIR += vdr-plugin-eepg SUBDIR += vdr-plugin-epgsearch SUBDIR += vdr-plugin-extrecmenu SUBDIR += vdr-plugin-femon SUBDIR += vdr-plugin-infosatepg SUBDIR += vdr-plugin-iptv SUBDIR += vdr-plugin-markad SUBDIR += vdr-plugin-osdpip SUBDIR += vdr-plugin-osdteletext SUBDIR += vdr-plugin-reelchannelscan SUBDIR += vdr-plugin-remote SUBDIR += vdr-plugin-skinenigmang SUBDIR += vdr-plugin-sleeptimer SUBDIR += vdr-plugin-softhddevice SUBDIR += vdr-plugin-streamdev SUBDIR += vdr-plugin-ttxtsubs SUBDIR += vdr-plugin-upnp SUBDIR += vdr-plugin-vdrmanager SUBDIR += vdr-plugin-vnsiserver SUBDIR += vdr-plugin-wirbelscan SUBDIR += vdr-plugin-xineliboutput SUBDIR += vdr-plugin-xvdr SUBDIR += vdr-plugins SUBDIR += vid.stab SUBDIR += vlc SUBDIR += vlc-qt4 SUBDIR += vlc3 SUBDIR += vtkmpeg2encode SUBDIR += w_scan SUBDIR += webcamd SUBDIR += webcamoid SUBDIR += webvfx-qt5 SUBDIR += win32-codecs SUBDIR += winff SUBDIR += x264 SUBDIR += x265 SUBDIR += xanim SUBDIR += xawtv SUBDIR += xfce4-parole SUBDIR += xine SUBDIR += xmms SUBDIR += xmms-skins SUBDIR += xmms-skins-huge SUBDIR += xporthdmv SUBDIR += xtheater SUBDIR += xvid SUBDIR += yamdi SUBDIR += zoneminder SUBDIR += zoneminder-h264 .include Index: head/multimedia/gmmlib/Makefile =================================================================== --- head/multimedia/gmmlib/Makefile (nonexistent) +++ head/multimedia/gmmlib/Makefile (revision 484213) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= gmmlib +DISTVERSIONPREFIX= intel-${PORTNAME}- +DISTVERSION= 18.3.0 +CATEGORIES= multimedia + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Intel Graphics Memory Management Library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS_REASON= Only Intel GPUs on x86 are supported + +USES= cmake:outsource compiler:c++11-lib +USE_GITHUB= yes +USE_LDCONFIG= yes +GH_ACCOUNT= intel +CMAKE_OFF= RUN_TEST_SUITE +CMAKE_ARGS= -DBUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \ + -DGMMLIB_MARCH:STRING="${CPUTYPE}" + +post-patch: +# Silence -Wmacro-redefined + @${REINPLACE_CMD} -e '/__fastcall/d' \ + ${WRKSRC}/Source/inc/portable_compiler.h + +post-install: +# Clean up after PATTERN-based install + @${FIND} ${STAGEDIR}${PREFIX}/include -type d -empty -delete + +.include Property changes on: head/multimedia/gmmlib/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/gmmlib/distinfo =================================================================== --- head/multimedia/gmmlib/distinfo (nonexistent) +++ head/multimedia/gmmlib/distinfo (revision 484213) @@ -0,0 +1,3 @@ +TIMESTAMP = 1538161179 +SHA256 (intel-gmmlib-intel-gmmlib-18.3.0_GH0.tar.gz) = e3114d7ddd429f1b9aa43a1b1d0086d881fbf4d90e4a90ab8577c369d2e3a5e1 +SIZE (intel-gmmlib-intel-gmmlib-18.3.0_GH0.tar.gz) = 620491 Property changes on: head/multimedia/gmmlib/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/gmmlib/files/patch-gcc-atomics =================================================================== --- head/multimedia/gmmlib/files/patch-gcc-atomics (nonexistent) +++ head/multimedia/gmmlib/files/patch-gcc-atomics (revision 484213) @@ -0,0 +1,82 @@ +__sync* are GCC/Clang atomic builtins supported on any platform + +--- Source/GmmLib/Platform/GmmPlatforms.h.orig 2018-09-28 18:59:39 UTC ++++ Source/GmmLib/Platform/GmmPlatforms.h +@@ -69,7 +69,7 @@ namespace GmmLib { + { + #if defined(__GMM_KMD__) || _WIN32 + InterlockedIncrement((LONG *)&RefCount); +-#elif defined(__linux__) ++#elif defined(__GNUC__) + __sync_fetch_and_add(&RefCount, 1); + #endif + //TODO[Android] +@@ -79,7 +79,7 @@ namespace GmmLib { + { + #if defined(__GMM_KMD__) || _WIN32 + return(InterlockedDecrement((LONG *)&RefCount)); +-#elif defined(__linux__) ++#elif defined(__GNUC__) + return(__sync_sub_and_fetch(&RefCount, 1)); + #endif + //TODO[Android] +--- Source/GmmLib/inc/External/Common/GmmCachePolicyCommon.h.orig 2018-09-28 18:59:39 UTC ++++ Source/GmmLib/inc/External/Common/GmmCachePolicyCommon.h +@@ -57,7 +57,7 @@ namespace GmmLib + { + #if defined(__GMM_KMD__) || _WIN32 + InterlockedIncrement((LONG *)&RefCount); +- #elif defined(__linux__) ++ #elif defined(__GNUC__) + __sync_fetch_and_add(&RefCount, 1); + #endif + //TODO[Android] +@@ -67,7 +67,7 @@ namespace GmmLib + { + #if defined(__GMM_KMD__) || _WIN32 + return(InterlockedDecrement((LONG *)&RefCount)); +- #elif defined(__linux__) ++ #elif defined(__GNUC__) + return(__sync_sub_and_fetch(&RefCount, 1)); + #endif + //TODO[Android] +--- Source/GmmLib/inc/External/Common/GmmInfo.h.orig 2018-09-28 18:59:39 UTC ++++ Source/GmmLib/inc/External/Common/GmmInfo.h +@@ -128,7 +128,7 @@ namespace GmmLib + { + #if defined(_WIN32) + return(InterlockedIncrement((LONG *)&RefCount) - 1); //InterLockedIncrement() returns incremented value +-#elif defined(__linux__) ++#elif defined(__GNUC__) + return(__sync_fetch_and_add(&RefCount, 1)); + #endif + } +@@ -150,7 +150,7 @@ namespace GmmLib + } + #if defined(_WIN32) + } while (!(InterlockedCompareExchange((LONG *)&RefCount, TargetValue, CurrentValue) == CurrentValue)); +-#elif defined(__linux__) ++#elif defined(__GNUC__) + } while (!__sync_bool_compare_and_swap(&RefCount, CurrentValue, TargetValue)); + #endif + +--- Source/GmmLib/inc/Internal/Common/Texture/GmmTextureCalc.h.orig 2018-09-28 18:59:39 UTC ++++ Source/GmmLib/inc/Internal/Common/Texture/GmmTextureCalc.h +@@ -146,7 +146,7 @@ namespace GmmLib + { + #if defined(__GMM_KMD__) || _WIN32 + InterlockedIncrement((LONG *)&RefCount); +- #elif defined(__linux__) ++ #elif defined(__GNUC__) + __sync_fetch_and_add(&RefCount, 1); + #endif + //TODO[Android] +@@ -156,7 +156,7 @@ namespace GmmLib + { + #if defined(__GMM_KMD__) || _WIN32 + return(InterlockedDecrement((LONG *)&RefCount)); +- #elif defined(__linux__) ++ #elif defined(__GNUC__) + return(__sync_sub_and_fetch(&RefCount, 1)); + #endif + //TODO[Android] Property changes on: head/multimedia/gmmlib/files/patch-gcc-atomics ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/gmmlib/files/patch-limits =================================================================== --- head/multimedia/gmmlib/files/patch-limits (nonexistent) +++ head/multimedia/gmmlib/files/patch-limits (revision 484213) @@ -0,0 +1,14 @@ +Source/GmmLib/Utility/GmmLog/GmmLog.cpp:36:10: fatal error: 'linux/limits.h' file not found +#include + ^~~~~~~~~~~~~~~~ + +--- Source/GmmLib/Utility/GmmLog/GmmLog.cpp.orig 2018-09-28 18:59:39 UTC ++++ Source/GmmLib/Utility/GmmLog/GmmLog.cpp +@@ -33,7 +33,6 @@ OTHER DEALINGS IN THE SOFTWARE. + #include + #include + #include +-#include + #endif + + /// Logger instance shared by all of GmmLib within a process Property changes on: head/multimedia/gmmlib/files/patch-limits ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/gmmlib/files/patch-thread-id =================================================================== --- head/multimedia/gmmlib/files/patch-thread-id (nonexistent) +++ head/multimedia/gmmlib/files/patch-thread-id (revision 484213) @@ -0,0 +1,39 @@ +Add more BSDs and update to modern way to get thread ID + +--- Source/GmmLib/Utility/GmmLog/spdlog/details/os.h.orig 2018-09-28 18:59:39 UTC ++++ Source/GmmLib/Utility/GmmLog/spdlog/details/os.h +@@ -39,9 +39,15 @@ + #include + #include + +-#elif __FreeBSD__ +-#include //Use thr_self() syscall under FreeBSD to get thread id ++#elif defined(__DragonFly__) ++#include // for lwp_gettid + ++#elif defined(__FreeBSD__) ++#include // for pthread_getthreadid_np ++ ++#elif defined(__NetBSD__) ++#include // for _lwp_self ++ + #else + #include + +@@ -302,10 +308,12 @@ inline size_t thread_id() + # define SYS_gettid __NR_gettid + # endif + return static_cast(syscall(SYS_gettid)); +-#elif __FreeBSD__ +- long tid; +- thr_self(&tid); +- return static_cast(tid); ++#elif defined(__DragonFly__) ++ return static_cast(lwp_gettid()); ++#elif defined(__FreeBSD__) ++ return static_cast(pthread_getthreadid_np()); ++#elif defined(__NetBSD__) ++ return static_cast(_lwp_self()); + #else //Default to standard C++11 (OSX and other Unix) + return static_cast(std::hash()(std::this_thread::get_id())); + #endif Property changes on: head/multimedia/gmmlib/files/patch-thread-id ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/gmmlib/pkg-descr =================================================================== --- head/multimedia/gmmlib/pkg-descr (nonexistent) +++ head/multimedia/gmmlib/pkg-descr (revision 484213) @@ -0,0 +1,5 @@ +The Intel Graphics Memory Management Library provides device specific +and buffer management for the Intel Graphics Compute Runtime for +OpenCL and the Intel Media Driver for VAAPI. + +WWW: https://github.com/intel/gmmlib Property changes on: head/multimedia/gmmlib/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/gmmlib/pkg-plist =================================================================== --- head/multimedia/gmmlib/pkg-plist (nonexistent) +++ head/multimedia/gmmlib/pkg-plist (revision 484213) @@ -0,0 +1,96 @@ +include/igdgmm/GmmLib/CachePolicy/GmmCachePolicyConditionals.h +include/igdgmm/GmmLib/CachePolicy/GmmCachePolicyResourceUsageDefinitions.h +include/igdgmm/GmmLib/CachePolicy/GmmCachePolicyUndefineConditionals.h +include/igdgmm/GmmLib/CachePolicy/GmmGen10CachePolicy.h +include/igdgmm/GmmLib/CachePolicy/GmmGen11CachePolicy.h +include/igdgmm/GmmLib/CachePolicy/GmmGen8CachePolicy.h +include/igdgmm/GmmLib/CachePolicy/GmmGen9CachePolicy.h +include/igdgmm/GmmLib/Platform/GmmPlatforms.h +include/igdgmm/GmmLib/Texture/GmmTexture.h +include/igdgmm/GmmLib/Utility/CpuSwizzleBlt/CpuSwizzleBlt.c +include/igdgmm/GmmLib/Utility/CpuSwizzleBlt/assert.h +include/igdgmm/GmmLib/Utility/GmmLog/GmmLog.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/async_logger.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/common.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/async_log_helper.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/async_logger_impl.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/file_helper.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/format.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/line_logger_fwd.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/line_logger_impl.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/log_msg.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/logger_impl.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/mpmc_bounded_q.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/null_mutex.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/os.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/pattern_formatter_impl.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/registry.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/details/spdlog_impl.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/fmt/bundled/format.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/fmt/bundled/ostream.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/fmt/bundled/printf.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/fmt/fmt.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/fmt/ostr.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/formatter.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/logger.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/android_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/ansicolor_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/base_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/dist_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/file_sinks.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/msvc_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/null_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/ostream_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/stdout_sinks.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/syslog_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/sinks/wincolor_sink.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/spdlog.h +include/igdgmm/GmmLib/Utility/GmmLog/spdlog/tweakme.h +include/igdgmm/GmmLib/Utility/GmmUtility.h +include/igdgmm/GmmLib/inc/External/Common/CachePolicy/GmmCachePolicyGen10.h +include/igdgmm/GmmLib/inc/External/Common/CachePolicy/GmmCachePolicyGen11.h +include/igdgmm/GmmLib/inc/External/Common/CachePolicy/GmmCachePolicyGen8.h +include/igdgmm/GmmLib/inc/External/Common/CachePolicy/GmmCachePolicyGen9.h +include/igdgmm/GmmLib/inc/External/Common/GmmCachePolicy.h +include/igdgmm/GmmLib/inc/External/Common/GmmCachePolicyCommon.h +include/igdgmm/GmmLib/inc/External/Common/GmmCachePolicyExt.h +include/igdgmm/GmmLib/inc/External/Common/GmmClientContext.h +include/igdgmm/GmmLib/inc/External/Common/GmmCommonExt.h +include/igdgmm/GmmLib/inc/External/Common/GmmConst.h +include/igdgmm/GmmLib/inc/External/Common/GmmDebug.h +include/igdgmm/GmmLib/inc/External/Common/GmmFormatTable.h +include/igdgmm/GmmLib/inc/External/Common/GmmGttExt.h +include/igdgmm/GmmLib/inc/External/Common/GmmInfo.h +include/igdgmm/GmmLib/inc/External/Common/GmmInfoExt.h +include/igdgmm/GmmLib/inc/External/Common/GmmInternal.h +include/igdgmm/GmmLib/inc/External/Common/GmmLibDll.h +include/igdgmm/GmmLib/inc/External/Common/GmmLibDllName.h +include/igdgmm/GmmLib/inc/External/Common/GmmMemAllocator.hpp +include/igdgmm/GmmLib/inc/External/Common/GmmPlatformExt.h +include/igdgmm/GmmLib/inc/External/Common/GmmProto.h +include/igdgmm/GmmLib/inc/External/Common/GmmResourceFlags.h +include/igdgmm/GmmLib/inc/External/Common/GmmResourceInfo.h +include/igdgmm/GmmLib/inc/External/Common/GmmResourceInfoCommon.h +include/igdgmm/GmmLib/inc/External/Common/GmmResourceInfoExt.h +include/igdgmm/GmmLib/inc/External/Common/GmmTextureExt.h +include/igdgmm/GmmLib/inc/External/Common/GmmUtil.h +include/igdgmm/GmmLib/inc/External/Linux/GmmResourceInfoLin.h +include/igdgmm/GmmLib/inc/GmmLib.h +include/igdgmm/igdgmm.h +include/igdgmm/inc/common/gfxmacro.h +include/igdgmm/inc/common/gfxplatform.h +include/igdgmm/inc/common/gtsysinfo.h +include/igdgmm/inc/common/igfxfmid.h +include/igdgmm/inc/common/sku_wa.h +include/igdgmm/inc/portable_compiler.h +include/igdgmm/inc/umKmInc/UmKmDmaPerfTimer.h +include/igdgmm/inc/umKmInc/UmKmEnum.h +include/igdgmm/inc/umKmInc/sharedata.h +include/igdgmm/util/g_gfxDebug.h +include/igdgmm/util/gfxDebug.h +lib/libgmm_umd.a +lib/libigdgmm.so +lib/libigdgmm.so.1 +lib/libigdgmm.so.1.0.0 +libdata/pkgconfig/igdgmm.pc Property changes on: head/multimedia/gmmlib/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/Makefile =================================================================== --- head/multimedia/libva-intel-media-driver/Makefile (nonexistent) +++ head/multimedia/libva-intel-media-driver/Makefile (revision 484213) @@ -0,0 +1,44 @@ +# $FreeBSD$ + +PORTNAME= media-driver +DISTVERSIONPREFIX= intel-media- +DISTVERSION= 18.3.0 +CATEGORIES= multimedia +PKGNAMEPREFIX= libva-intel- + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Intel Media Driver for VAAPI + +LICENSE= MIT BSD3CLAUSE +LICENSE_COMB= multi +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS_REASON= Only Intel GPUs on x86 are supported + +LIB_DEPENDS= libpciaccess.so:devel/libpciaccess \ + libigdgmm.so:multimedia/gmmlib \ + libva.so:multimedia/libva + +USES= cmake:outsource compiler:c++11-lib pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= intel +ARCH_SUFX= ${ARCH:S/i386/32/:S/amd//} +CMAKE_OFF= MEDIA_BUILD_FATAL_WARNINGS MEDIA_RUN_TEST_SUITE +CMAKE_ARGS= -DBUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \ + -DARCH:STRING="${ARCH_SUFX}" \ + -DUFO_MARCH:STRING="${CPUTYPE}" +PLIST_FILES= etc/profile.d/intel-media.sh \ + lib/dri/iHD_drv_video.so \ + lib/igfxcmrt${ARCH_SUFX}.so + +post-patch: + @${REINPLACE_CMD} -e '/install.*igfxcmrt/s/64/${ARCH_SUFX}/' \ + ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} -e '/-D__linux__/d' \ + ${WRKSRC}/media_driver/cmake/linux/media_compile_flags_linux.cmake +# Silence -Wmacro-redefined + @${REINPLACE_CMD} -e '/__fastcall/d' \ + ${WRKSRC}/media_driver/linux/common/cm/cm_mem_os.h + +.include Property changes on: head/multimedia/libva-intel-media-driver/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/distinfo =================================================================== --- head/multimedia/libva-intel-media-driver/distinfo (nonexistent) +++ head/multimedia/libva-intel-media-driver/distinfo (revision 484213) @@ -0,0 +1,3 @@ +TIMESTAMP = 1538429992 +SHA256 (intel-media-driver-intel-media-18.3.0_GH0.tar.gz) = df9af1cc796b4123508aacaf19d040cc5d8c5742c05199f45c9a3905ed8d1b52 +SIZE (intel-media-driver-intel-media-18.3.0_GH0.tar.gz) = 14422845 Property changes on: head/multimedia/libva-intel-media-driver/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/files/patch-clang =================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-clang (nonexistent) +++ head/multimedia/libva-intel-media-driver/files/patch-clang (revision 484213) @@ -0,0 +1,15 @@ +media_driver/linux/common/os/mos_utilities_specific.c:2617:12: error: cast from pointer to smaller type 'uint32_t' (aka 'unsigned int') loses information + return (uint32_t)pthread_self(); + ^~~~~~~~~~~~~~~~~~~~~~~~ + +--- media_driver/linux/common/os/mos_utilities_specific.c.orig 2018-10-01 21:39:52 UTC ++++ media_driver/linux/common/os/mos_utilities_specific.c +@@ -2614,7 +2614,7 @@ uint32_t MOS_GetThreadId( + + uint32_t MOS_GetCurrentThreadId() + { +- return (uint32_t)pthread_self(); ++ return (uintptr_t)pthread_self(); + } + + MOS_STATUS MOS_WaitThread( Property changes on: head/multimedia/libva-intel-media-driver/files/patch-clang ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/files/patch-fbres =================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-fbres (nonexistent) +++ head/multimedia/libva-intel-media-driver/files/patch-fbres (revision 484213) @@ -0,0 +1,63 @@ +Get framebuffer resolution on more platforms + +--- 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,38 @@ + #include + #endif + ++#if defined(__linux__) + #include ++#define DEFAULT_FBDEV "/dev/graphics/fb0" ++#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__sun) ++#include ++# if defined(__sun) ++#define DEFAULT_FBDEV "/dev/fb" ++# else ++#define DEFAULT_FBDEV "/dev/ttyv0" ++# endif ++#define FBIOGET_VSCREENINFO FBIOGTYPE ++#define fb_var_screeninfo fbtype ++#define xres fb_width ++#define yres fb_height ++#elif defined(__NetBSD__) || defined(__OpenBSD__) ++#include ++# if defined(__OpenBSD__) ++#define DEFAULT_FBDEV "/dev/ttyC0" ++# else ++#define DEFAULT_FBDEV "/dev/ttyE0" ++# endif ++#define FBIOGET_VSCREENINFO WSDISPLAYIO_GINFO ++#define fb_var_screeninfo wsdisplay_fbinfo ++#define xres width ++#define yres height ++#else ++#define FBIOGET_VSCREENINFO 0 ++struct fb_var_screeninfo { ++ uint32_t xres; ++ uint32_t yres; ++}; ++#endif + + typedef MediaDdiFactory DdiDecodeFactory; + static int32_t DdiDecode_GetDisplayInfo(VADriverContextP ctx) +@@ -56,7 +70,7 @@ static int32_t DdiDecode_GetDisplayInfo(VADriverContex + vsinfo.xres = 0; + vsinfo.yres = 0; + +- fd = open("/dev/graphics/fb0",O_RDONLY); ++ fd = open(DEFAULT_FBDEV,O_RDONLY); + if(fd > 0) + { + if(ioctl(fd, FBIOGET_VSCREENINFO, &vsinfo) < 0) +--- media_driver/linux/common/ddi/media_libva.cpp.orig 2018-10-01 21:39:52 UTC ++++ media_driver/linux/common/ddi/media_libva.cpp +@@ -36,8 +36,6 @@ + #include + #endif + +-#include +- + #include "media_libva_util.h" + #include "media_libva_decoder.h" + #include "media_libva_encoder.h" Property changes on: head/multimedia/libva-intel-media-driver/files/patch-fbres ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/files/patch-glibc =================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-glibc (nonexistent) +++ head/multimedia/libva-intel-media-driver/files/patch-glibc (revision 484213) @@ -0,0 +1,45 @@ +makedev() is defined in on BSDs and on Solaris + +--- 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 @@ + #include + #include + #include ++#if defined(__GLIBC__) || defined(__linux__) + #include ++#endif + #include + #define stat_t struct stat + #include + #include + #include +-#ifdef HAVE_SYS_MKDEV_H ++#ifdef __sun + # include /* defines major(), minor(), and makedev() on Solaris */ + #endif + +--- media_driver/linux/ult/libdrm_mock/xf86drm_mock.c.orig 2018-10-01 21:39:52 UTC ++++ media_driver/linux/ult/libdrm_mock/xf86drm_mock.c +@@ -47,16 +47,20 @@ + #include + #include + #include ++#if defined(__GLIBC__) || defined(__linux__) + #include ++#endif + #include + #define stat_t struct stat + #include + #include + #include +-#ifdef HAVE_SYS_MKDEV_H ++#ifdef __sun + # include /* defines major(), minor(), and makedev() on Solaris */ + #endif ++#ifdef __GLIBC__ + #include ++#endif + + /* Not all systems have MAP_FAILED defined */ + #ifndef MAP_FAILED Property changes on: head/multimedia/libva-intel-media-driver/files/patch-glibc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/files/patch-i386-atomics =================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-i386-atomics (nonexistent) +++ head/multimedia/libva-intel-media-driver/files/patch-i386-atomics (revision 484213) @@ -0,0 +1,18 @@ +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) + +--- 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 +@@ -437,6 +437,10 @@ void OsContextSpecific::SetSliceCount(uint32_t *pSlice + + for (int sliceCountShm = m_gtSystemInfo.SliceCount; sliceCountShm > 0; sliceCountShm--) + { ++#if defined(__clang__) && defined(__i386__) ++#define __atomic_load_n(ptr, order) __sync_fetch_and_add(ptr, 0) ++#define __atomic_store_n(ptr, val, order) __sync_swap(ptr, val) ++#endif + uint64_t* pTimestampShm = (uint64_t*)m_sseuShm + sliceCountShm; + uint64_t timestampShm = __atomic_load_n(pTimestampShm, __ATOMIC_SEQ_CST); + if (sliceNum == sliceCountShm) Property changes on: head/multimedia/libva-intel-media-driver/files/patch-i386-atomics ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/files/patch-memalign =================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-memalign (nonexistent) +++ head/multimedia/libva-intel-media-driver/files/patch-memalign (revision 484213) @@ -0,0 +1,52 @@ +memalign is Linux-specific, so use C11 aligned_alloc instead + +--- 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 @@ + #endif + #include //open + +-#include // For memalign + #include // memset + #include // atoi atol + #include +--- media_driver/agnostic/ult/cm/buffer_up_test.cpp.orig 2018-10-01 21:39:52 UTC ++++ media_driver/agnostic/ult/cm/buffer_up_test.cpp +@@ -21,7 +21,6 @@ + */ + + #include "cm_test.h" +-#include + + class BufferUPTest: public CmTest + { +--- media_driver/linux/common/os/mos_utilities_specific.h.orig 2018-10-01 21:39:52 UTC ++++ media_driver/linux/common/os/mos_utilities_specific.h +@@ -88,7 +88,7 @@ + #define UFINT_PATH_LINUX "UFINT" + #define UFEXT_PATH_LINUX "UFEXT" + +-#define _aligned_malloc(size, alignment) memalign(alignment, size) ++#define _aligned_malloc(size, alignment) aligned_alloc(alignment, size) + #define _aligned_free(ptr) free(ptr) + + #define __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE_STR "1" +--- media_driver/linux/ult/ult_app/cm/cm_test.h.orig 2018-10-01 21:39:52 UTC ++++ media_driver/linux/ult/ult_app/cm/cm_test.h +@@ -23,7 +23,6 @@ + #ifndef MEDIADRIVER_LINUX_CODECHAL_ULT_ULTAPP_CMTEST_H_ + #define MEDIADRIVER_LINUX_CODECHAL_ULT_ULTAPP_CMTEST_H_ + +-#include + #include "gtest/gtest.h" + #include "mock_device.h" + #include "../memory_leak_detector.h" +@@ -34,7 +33,7 @@ class CmTest: public testing::Test + { + public: + static void* AllocateAlignedMemory(size_t size, size_t alignment) +- { return memalign(alignment, size); } ++ { return aligned_alloc(alignment, size); } + + static void FreeAlignedMemory(void *memory) { free(memory); } + Property changes on: head/multimedia/libva-intel-media-driver/files/patch-memalign ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/files/patch-thread-id =================================================================== --- head/multimedia/libva-intel-media-driver/files/patch-thread-id (nonexistent) +++ head/multimedia/libva-intel-media-driver/files/patch-thread-id (revision 484213) @@ -0,0 +1,37 @@ +Get thread ID on more platforms + +--- 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 @@ + + #include "mos_os.h" + #include "media_libva_common.h" ++#if defined(__linux__) + #include + #include ++#elif defined(__FreeBSD__) ++#include ++#elif defined(__NetBSD__) ++#include ++#else // OpenBSD, Solaris ++#include ++#endif + #include + + //Require DRM VMAP patch, +@@ -95,5 +103,15 @@ inline void GetLocalTime(PSYSTEMTIME psystime) + #endif + + #define CmGetCurProcessId() getpid() ++#if defined(__linux__) + #define CmGetCurThreadId() syscall(SYS_gettid) ++#elif defined(__DragonFly__) ++#define CmGetCurThreadId() lwp_gettid() ++#elif defined(__FreeBSD__) ++#define CmGetCurThreadId() pthread_getthreadid_np() ++#elif defined(__NetBSD__) ++#define CmGetCurThreadId() _lwp_self() ++#else // OpenBSD, Solaris ++#define CmGetCurThreadId() (uintptr_t)pthread_self() ++#endif + Property changes on: head/multimedia/libva-intel-media-driver/files/patch-thread-id ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-media-driver/pkg-descr =================================================================== --- head/multimedia/libva-intel-media-driver/pkg-descr (nonexistent) +++ head/multimedia/libva-intel-media-driver/pkg-descr (revision 484213) @@ -0,0 +1,5 @@ +The Intel Media Driver for VAAPI is a new VA-API (Video Acceleration API) +user mode driver supporting hardware accelerated decoding, encoding, and +video post processing for GEN based graphics hardware. + +WWW: https://github.com/intel/media-driver Property changes on: head/multimedia/libva-intel-media-driver/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property