Commit db724cf0 authored by Tom Finegan's avatar Tom Finegan

Fix CMake mips32 build with DSPR2 enabled.

- Add aom_scale dspr2 sources to the correct target (aom).
- Fix an inverted high bit depth condition.
- Remove claims that dspr2 variants of av1_iht16x16_256_add_dspr2,
  av1_iht8x8_64_add_dspr2, av1_iht4x4_16_add_dspr2 from
  av1_rtcd_defs.pl exist in low bit depth configs.

Change-Id: Ibdd42e475b81c2491f02ba10ca0d461f7ff15bc5
parent 3b411360
......@@ -30,7 +30,7 @@ function (setup_aom_scale_targets)
if (HAVE_DSPR2)
add_intrinsics_object_library("" "dspr2" "aom_scale"
"AOM_SCALE_INTRIN_DSPR2" "aom_scale")
"AOM_SCALE_INTRIN_DSPR2" "aom")
endif ()
set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_scale PARENT_SCOPE)
......
......@@ -171,11 +171,6 @@ set(AOM_AV1_COMMON_INTRIN_AVX2
"${AOM_ROOT}/av1/common/x86/highbd_inv_txfm_avx2.c"
"${AOM_ROOT}/av1/common/x86/hybrid_inv_txfm_avx2.c")
set(AOM_AV1_COMMON_INTRIN_DSPR2
"${AOM_ROOT}/av1/common/mips/dspr2/av1_itrans16_dspr2.c"
"${AOM_ROOT}/av1/common/mips/dspr2/av1_itrans4_dspr2.c"
"${AOM_ROOT}/av1/common/mips/dspr2/av1_itrans8_dspr2.c")
set(AOM_AV1_COMMON_INTRIN_MSA
"${AOM_ROOT}/av1/common/mips/msa/av1_idct16x16_msa.c"
"${AOM_ROOT}/av1/common/mips/msa/av1_idct4x4_msa.c"
......@@ -224,6 +219,12 @@ if (CONFIG_HIGHBITDEPTH)
${AOM_AV1_COMMON_INTRIN_SSE4_1}
"${AOM_ROOT}/av1/common/x86/av1_highbd_convolve_sse4.c")
else ()
set(AOM_AV1_COMMON_INTRIN_DSPR2
${AOM_AV1_COMMON_INTRIN_DSPR2}
"${AOM_ROOT}/av1/common/mips/dspr2/av1_itrans16_dspr2.c"
"${AOM_ROOT}/av1/common/mips/dspr2/av1_itrans4_dspr2.c"
"${AOM_ROOT}/av1/common/mips/dspr2/av1_itrans8_dspr2.c")
set(AOM_AV1_COMMON_INTRIN_NEON
${AOM_AV1_COMMON_INTRIN_NEON}
"${AOM_ROOT}/av1/encoder/arm/neon/dct_neon.c"
......
......@@ -105,7 +105,7 @@ if (aom_config("CONFIG_HIGHBITDEPTH") eq "yes") {
{
add_proto qw/void av1_iht4x4_16_add/, "const tran_low_t *input, uint8_t *dest, int dest_stride, const struct txfm_param *param";
if (aom_config("CONFIG_DAALA_DCT4") ne "yes") {
specialize qw/av1_iht4x4_16_add sse2 neon dspr2/;
specialize qw/av1_iht4x4_16_add sse2 neon/;
}
add_proto qw/void av1_iht4x8_32_add/, "const tran_low_t *input, uint8_t *dest, int dest_stride, const struct txfm_param *param";
......@@ -136,12 +136,12 @@ if (aom_config("CONFIG_HIGHBITDEPTH") eq "yes") {
add_proto qw/void av1_iht8x8_64_add/, "const tran_low_t *input, uint8_t *dest, int dest_stride, const struct txfm_param *param";
if (aom_config("CONFIG_DAALA_DCT8") ne "yes") {
specialize qw/av1_iht8x8_64_add sse2 neon dspr2/;
specialize qw/av1_iht8x8_64_add sse2 neon/;
}
add_proto qw/void av1_iht16x16_256_add/, "const tran_low_t *input, uint8_t *output, int pitch, const struct txfm_param *param";
if (aom_config("CONFIG_DAALA_DCT16") ne "yes") {
specialize qw/av1_iht16x16_256_add sse2 avx2 dspr2/;
specialize qw/av1_iht16x16_256_add sse2 avx2/;
}
add_proto qw/void av1_iht32x32_1024_add/, "const tran_low_t *input, uint8_t *output, int pitch, const struct txfm_param *param";
......
......@@ -20,7 +20,7 @@
#include "aom_dsp/txfm_common.h"
#include "aom_ports/mem.h"
#if HAVE_DSPR2
#if HAVE_DSPR2 && CONFIG_HIGHBITDEPTH
void av1_iht16x16_256_add_dspr2(const int16_t *input, uint8_t *dest, int pitch,
TxfmParam *txfm_param) {
int i, j;
......@@ -94,4 +94,4 @@ void av1_iht16x16_256_add_dspr2(const int16_t *input, uint8_t *dest, int pitch,
default: printf("av1_short_iht16x16_add_dspr2 : Invalid tx_type\n"); break;
}
}
#endif // #if HAVE_DSPR2
#endif // #if HAVE_DSPR2 && CONFIG_HIGHBITDEPTH
......@@ -20,7 +20,7 @@
#include "aom_dsp/txfm_common.h"
#include "aom_ports/mem.h"
#if HAVE_DSPR2
#if HAVE_DSPR2 && CONFIG_HIGHBITDEPTH
void av1_iht4x4_16_add_dspr2(const int16_t *input, uint8_t *dest,
int dest_stride, TxfmParam *txfm_param) {
int i, j;
......@@ -88,4 +88,4 @@ void av1_iht4x4_16_add_dspr2(const int16_t *input, uint8_t *dest,
default: printf("av1_short_iht4x4_add_dspr2 : Invalid tx_type\n"); break;
}
}
#endif // #if HAVE_DSPR2
#endif // #if HAVE_DSPR2 && CONFIG_HIGHBITDEPTH
......@@ -20,7 +20,7 @@
#include "aom_dsp/txfm_common.h"
#include "aom_ports/mem.h"
#if HAVE_DSPR2
#if HAVE_DSPR2 && CONFIG_HIGHBITDEPTH
void av1_iht8x8_64_add_dspr2(const int16_t *input, uint8_t *dest,
int dest_stride, TxfmParam *txfm_param) {
int i, j;
......@@ -83,4 +83,4 @@ void av1_iht8x8_64_add_dspr2(const int16_t *input, uint8_t *dest,
default: printf("av1_short_iht8x8_add_dspr2 : Invalid tx_type\n"); break;
}
}
#endif // #if HAVE_DSPR2
#endif // #if HAVE_DSPR2 && CONFIG_HIGHBITDEPTH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment