From c91b76a6686bf15d1d934dfed5958c2820d457fb Mon Sep 17 00:00:00 2001 From: siivonek Date: Thu, 31 Aug 2023 13:20:17 +0300 Subject: [PATCH] Add globals required by intra avx2 code. Remove unnecessary stuff from intra avx2. --- src/strategies/avx2/intra-avx2.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/strategies/avx2/intra-avx2.c b/src/strategies/avx2/intra-avx2.c index 838bad91..b865efa3 100644 --- a/src/strategies/avx2/intra-avx2.c +++ b/src/strategies/avx2/intra-avx2.c @@ -34,13 +34,19 @@ #if COMPILE_INTEL_AVX2 && defined X86_64 #include "uvg266.h" +#include "cu.h" +#include "tables.h" #if UVG_BIT_DEPTH == 8 #include #include +#include +#include -#include "strategyselector.h" -#include "strategies/missing-intel-intrinsics.h" +#include "intra-avx2.h" + + #include "strategyselector.h" + #include "strategies/missing-intel-intrinsics.h" /** * \brief Generate angular predictions. @@ -1066,8 +1072,10 @@ static void uvg_pdpc_planar_dc_avx2( } } -#endif //UVG_BIT_DEPTH == 8 -#endif //COMPILE_INTEL_AVX2 && defined X86_64 +#endif // UVG_BIT_DEPTH == 8 + +#endif // COMPILE_INTEL_AVX2 && defined X86_64 + int uvg_strategy_register_intra_avx2(void* opaque, uint8_t bitdepth) {