shithub: dav1d

Download patch

ref: 72f8cc62ee7b9784b8f96e63474fb4d077fee1ad
parent: 3f2bb0d9222aaf836bea6abd35d803a24bc47446
author: Henrik Gramner <gramner@twoorioles.com>
date: Mon Mar 25 12:01:54 EDT 2019

build: Split x86 asm files per bitdepth

--- a/src/meson.build
+++ b/src/meson.build
@@ -118,19 +118,29 @@
 
         # NASM source files
         libdav1d_sources_asm = files(
-            'x86/cdef.asm',
-            'x86/cdef_ssse3.asm',
             'x86/cpuid.asm',
-            'x86/ipred.asm',
-            'x86/itx.asm',
-            'x86/loopfilter.asm',
-            'x86/looprestoration.asm',
-            'x86/looprestoration_ssse3.asm',
-            'x86/mc.asm',
-            'x86/mc_ssse3.asm',
-            'x86/itx_ssse3.asm',
-            'x86/ipred_ssse3.asm',
         )
+
+        if dav1d_bitdepths.contains('8')
+            libdav1d_sources_asm += files(
+                'x86/cdef.asm',
+                'x86/cdef_ssse3.asm',
+                'x86/ipred.asm',
+                'x86/ipred_ssse3.asm',
+                'x86/itx.asm',
+                'x86/itx_ssse3.asm',
+                'x86/loopfilter.asm',
+                'x86/looprestoration.asm',
+                'x86/looprestoration_ssse3.asm',
+                'x86/mc.asm',
+                'x86/mc_ssse3.asm',
+            )
+        endif
+
+        if dav1d_bitdepths.contains('16')
+            libdav1d_sources_asm += files(
+            )
+        endif
 
         # Compile the ASM sources with NASM
         libdav1d_nasm_objs = nasm_gen.process(libdav1d_sources_asm)