Skip to content

Commit

Permalink
audio/ardour: Update to 7.3.0 release.
Browse files Browse the repository at this point in the history
ChangeLog: https://ardour.org/whatsnew.html

PR:		270056
Reported by:	dev@submerge.ch (maintainer)
  • Loading branch information
0EVSG authored and fernape committed Apr 5, 2023
1 parent 303d674 commit 53e8e70
Show file tree
Hide file tree
Showing 8 changed files with 223 additions and 31 deletions.
5 changes: 2 additions & 3 deletions audio/ardour/Makefile
@@ -1,12 +1,11 @@
PORTNAME= ardour
DISTVERSION= 7.2.0
PORTREVISION= 1
DISTVERSION= 7.3.0
CATEGORIES= audio
# Official source download is tailored to browsers, downloads from github are
# deliberately made empty. Put the badly named distfile into a subdirectory.
MASTER_SITES= https://community.ardour.org/download/release/
DISTNAME= Ardour-${DISTVERSION}
DISTFILES= 516
DISTFILES= 522
DIST_SUBDIR= ${DISTNAME}

MAINTAINER= dev@submerge.ch
Expand Down
6 changes: 3 additions & 3 deletions audio/ardour/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1671141631
SHA256 (Ardour-7.2.0/516) = c92d5b1dd09e7b8a580121478934b30cd9322fe052f45229dcf49363ca6e377f
SIZE (Ardour-7.2.0/516) = 12882609
TIMESTAMP = 1676815269
SHA256 (Ardour-7.3.0/522) = 1f45263b4fbfd69e605125bd9094b43fac85d164f1839d29681b8d4ee5695f29
SIZE (Ardour-7.3.0/522) = 12897398
25 changes: 0 additions & 25 deletions audio/ardour/files/patch-libs_ardour_ardour_cycles.h

This file was deleted.

11 changes: 11 additions & 0 deletions audio/ardour/files/patch-libs_ardour_sse__functions__avx.cc
@@ -0,0 +1,11 @@
--- libs/ardour/sse_functions_avx.cc.orig 2023-02-21 01:18:30 UTC
+++ libs/ardour/sse_functions_avx.cc
@@ -47,7 +47,7 @@ x86_sse_avx_find_peaks(const float* buf, uint32_t nfra
// load each 64 bytes into cash before processing
while (nframes >= 16) {
#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
- _mm_prefetch(((char*)buf+64), _mm_hint(0) );
+ _mm_prefetch(((char*)buf+64), _MM_HINT_NTA );
#else
__builtin_prefetch(buf+64,0,0);
#endif
84 changes: 84 additions & 0 deletions audio/ardour/files/patch-libs_ardour_sse__functions__avx__linux.cc
@@ -0,0 +1,84 @@
--- libs/ardour/sse_functions_avx_linux.cc.orig 2023-02-21 01:17:58 UTC
+++ libs/ardour/sse_functions_avx_linux.cc
@@ -106,7 +106,7 @@ x86_sse_avx_compute_peak(const float *src, uint32_t nf
while (nframes >= 32)
{
#ifdef _WIN32
- _mm_prefetch(reinterpret_cast<char const *>(src + 32), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<char const *>(src + 32), _MM_HINT_NTA);
#else
__builtin_prefetch(reinterpret_cast<void const *>(src + 32), 0, 0);
#endif
@@ -196,7 +196,7 @@ x86_sse_avx_find_peaks(const float *src, uint32_t nfra
while (nframes >= 32)
{
#ifdef _WIN32
- _mm_prefetch(reinterpret_cast<char const *>(src + 32), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<char const *>(src + 32), _MM_HINT_NTA);
#else
__builtin_prefetch(reinterpret_cast<void const *>(src + 32), 0, 0);
#endif
@@ -278,7 +278,7 @@ x86_sse_avx_apply_gain_to_buffer(float *dst, uint32_t
while (frames >= 16)
{
#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
- _mm_prefetch(((char *)dst + (16 * sizeof(float))), _mm_hint(0));
+ _mm_prefetch(((char *)dst + (16 * sizeof(float))), _MM_HINT_NTA);
#else
__builtin_prefetch(reinterpret_cast<void const *>(dst + 16), 0, 0);
#endif
@@ -410,8 +410,8 @@ x86_sse_avx_mix_buffers_with_gain_unaligned(float *dst
while (nframes >= 16)
{
#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
- _mm_prefetch(((char *)dst + (16 * sizeof(float))), _mm_hint(0));
- _mm_prefetch(((char *)src + (16 * sizeof(float))), _mm_hint(0));
+ _mm_prefetch(((char *)dst + (16 * sizeof(float))), _MM_HINT_NTA);
+ _mm_prefetch(((char *)src + (16 * sizeof(float))), _MM_HINT_NTA);
#else
__builtin_prefetch(reinterpret_cast<void const *>(src + 16), 0, 0);
__builtin_prefetch(reinterpret_cast<void const *>(dst + 16), 0, 0);
@@ -503,8 +503,8 @@ x86_sse_avx_mix_buffers_with_gain_aligned(float *dst,
while (nframes >= 16)
{
#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
- _mm_prefetch(((char *)dst + (16 * sizeof(float))), _mm_hint(0));
- _mm_prefetch(((char *)src + (16 * sizeof(float))), _mm_hint(0));
+ _mm_prefetch(((char *)dst + (16 * sizeof(float))), _MM_HINT_NTA);
+ _mm_prefetch(((char *)src + (16 * sizeof(float))), _MM_HINT_NTA);
#else
__builtin_prefetch(reinterpret_cast<void const *>(src + 16), 0, 0);
__builtin_prefetch(reinterpret_cast<void const *>(dst + 16), 0, 0);
@@ -592,8 +592,8 @@ x86_sse_avx_mix_buffers_no_gain_unaligned(float *dst,
while (nframes >= 16)
{
#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
- _mm_prefetch(((char *)dst + (16 * sizeof(float))), _mm_hint(0));
- _mm_prefetch(((char *)src + (16 * sizeof(float))), _mm_hint(0));
+ _mm_prefetch(((char *)dst + (16 * sizeof(float))), _MM_HINT_NTA);
+ _mm_prefetch(((char *)src + (16 * sizeof(float))), _MM_HINT_NTA);
#else
__builtin_prefetch(reinterpret_cast<void const *>(src + 16), 0, 0);
__builtin_prefetch(reinterpret_cast<void const *>(dst + 16), 0, 0);
@@ -674,8 +674,8 @@ x86_sse_avx_mix_buffers_no_gain_aligned(float *dst, co
while (nframes >= 32)
{
#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
- _mm_prefetch(((char *)dst + (32 * sizeof(float))), _mm_hint(0));
- _mm_prefetch(((char *)src + (32 * sizeof(float))), _mm_hint(0));
+ _mm_prefetch(((char *)dst + (32 * sizeof(float))), _MM_HINT_NTA);
+ _mm_prefetch(((char *)src + (32 * sizeof(float))), _MM_HINT_NTA);
#else
__builtin_prefetch(reinterpret_cast<void const *>(src + 32), 0, 0);
__builtin_prefetch(reinterpret_cast<void const *>(dst + 32), 0, 0);
@@ -717,8 +717,8 @@ x86_sse_avx_mix_buffers_no_gain_aligned(float *dst, co
while (nframes >= 16)
{
#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
- _mm_prefetch(((char *)dst + (16 * sizeof(float))), _mm_hint(0));
- _mm_prefetch(((char *)src + (16 * sizeof(float))), _mm_hint(0));
+ _mm_prefetch(((char *)dst + (16 * sizeof(float))), _MM_HINT_NTA);
+ _mm_prefetch(((char *)src + (16 * sizeof(float))), _MM_HINT_NTA);
#else
__builtin_prefetch(reinterpret_cast<void const *>(src + 16), 0, 0);
__builtin_prefetch(reinterpret_cast<void const *>(dst + 16), 0, 0);
109 changes: 109 additions & 0 deletions audio/ardour/files/patch-libs_ardour_x86__functions__avx512f.cc
@@ -0,0 +1,109 @@
--- libs/ardour/x86_functions_avx512f.cc.orig 2023-02-21 01:05:04 UTC
+++ libs/ardour/x86_functions_avx512f.cc
@@ -83,7 +83,7 @@ x86_avx512f_compute_peak(const float *src, uint32_t nf
}

while (frames >= 256) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 256), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 256), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -142,7 +142,7 @@ x86_avx512f_compute_peak(const float *src, uint32_t nf
}

while (frames >= 128) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 128), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 128), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -176,7 +176,7 @@ x86_avx512f_compute_peak(const float *src, uint32_t nf
}

while (frames >= 64) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 64), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 64), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -310,7 +310,7 @@ x86_avx512f_find_peaks(const float *src, uint32_t nfra
}

while (frames >= 256) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 256), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 256), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -371,7 +371,7 @@ x86_avx512f_find_peaks(const float *src, uint32_t nfra
}

while (frames >= 128) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 128), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 128), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -405,7 +405,7 @@ x86_avx512f_find_peaks(const float *src, uint32_t nfra
}

while (frames >= 64) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 64), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 64), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -532,7 +532,7 @@ x86_avx512f_apply_gain_to_buffer(float *dst, uint32_t

// Process the remaining samples 128 at a time
while (frames >= 128) {
- _mm_prefetch(reinterpret_cast<void const *>(dst + 128), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(dst + 128), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(dst + 0);
__m512 x1 = _mm512_load_ps(dst + 16);
@@ -679,8 +679,8 @@ x86_avx512f_mix_buffers_with_gain(float *dst, const fl

// Process the remaining samples 128 at a time
while (frames >= 128) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 128), _mm_hint(0));
- _mm_prefetch(reinterpret_cast<void const *>(dst + 128), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 128), _MM_HINT_NTA);
+ _mm_prefetch(reinterpret_cast<void const *>(dst + 128), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -836,8 +836,8 @@ x86_avx512f_mix_buffers_no_gain(float *dst, const floa

// Process the remaining samples 128 at a time
while (frames >= 128) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 128), _mm_hint(0));
- _mm_prefetch(reinterpret_cast<void const *>(dst + 128), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 128), _MM_HINT_NTA);
+ _mm_prefetch(reinterpret_cast<void const *>(dst + 128), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -987,8 +987,8 @@ x86_avx512f_copy_vector(float *dst, const float *src,

// Process 256 samples at a time
while (frames >= 256) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 256), _mm_hint(0));
- _mm_prefetch(reinterpret_cast<void const *>(dst + 256), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 256), _MM_HINT_NTA);
+ _mm_prefetch(reinterpret_cast<void const *>(dst + 256), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
@@ -1033,8 +1033,8 @@ x86_avx512f_copy_vector(float *dst, const float *src,

// Process remaining samples 64 at a time
while (frames >= 64) {
- _mm_prefetch(reinterpret_cast<void const *>(src + 64), _mm_hint(0));
- _mm_prefetch(reinterpret_cast<void const *>(dst + 64), _mm_hint(0));
+ _mm_prefetch(reinterpret_cast<void const *>(src + 64), _MM_HINT_NTA);
+ _mm_prefetch(reinterpret_cast<void const *>(dst + 64), _MM_HINT_NTA);

__m512 x0 = _mm512_load_ps(src + 0);
__m512 x1 = _mm512_load_ps(src + 16);
13 changes: 13 additions & 0 deletions audio/ardour/files/patch-libs_ardour_x86__functions__fma.cc
@@ -0,0 +1,13 @@
--- libs/ardour/x86_functions_fma.cc.orig 2023-02-21 01:16:53 UTC
+++ libs/ardour/x86_functions_fma.cc
@@ -67,8 +67,8 @@ x86_fma_mix_buffers_with_gain(

while (nframes >= 16) {
#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
- _mm_prefetch(((char *)dst + (16 * sizeof(float))), _mm_hint(0));
- _mm_prefetch(((char *)src + (16 * sizeof(float))), _mm_hint(0));
+ _mm_prefetch(((char *)dst + (16 * sizeof(float))), _MM_HINT_NTA);
+ _mm_prefetch(((char *)src + (16 * sizeof(float))), _MM_HINT_NTA);
#else
__builtin_prefetch(src + (16 * sizeof(float)), 0, 0);
__builtin_prefetch(dst + (16 * sizeof(float)), 0, 0);
1 change: 1 addition & 0 deletions audio/ardour/pkg-plist
Expand Up @@ -836,6 +836,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
%%DATADIR%%/scripts/reset_mixer.lua
%%DATADIR%%/scripts/rubberband_swing.lua
%%DATADIR%%/scripts/s_chanmap.lua
%%DATADIR%%/scripts/s_cut_copy_section.lua
%%DATADIR%%/scripts/s_ducks.lua
%%DATADIR%%/scripts/s_fader_automation.lua
%%DATADIR%%/scripts/s_foreach_track.lua
Expand Down

0 comments on commit 53e8e70

Please sign in to comment.