History

lavu/riscv: depend on RVB and simplify accordingly

Rémi Denis-Courmont committed 2 years ago

Commit cb31f171 parent ba88e813 files · +4 −5Browse files

Unified · Split

3 files
  1. libavutil/riscv/fixed_dsp_init.c +1 −1
  2. libavutil/riscv/float_dsp_init.c +1 −1
  3. libavutil/riscv/lls_init.c +2 −3
libavutil/riscv/fixed_dsp_init.c+1−1
@@ -45,7 +45,7 @@ av_cold void ff_fixed_dsp_init_riscv(AVFixedDSPContext *fdsp) · 44 unmodified lines
4545 #if HAVE_RVV
4646 int flags = av_get_cpu_flags();
4747
48− if ((flags & AV_CPU_FLAG_RVV_I32) && (flags & AV_CPU_FLAG_RVB_ADDR)) {
48+ if ((flags & AV_CPU_FLAG_RVV_I32) && (flags & AV_CPU_FLAG_RVB)) {
4949 if (flags & AV_CPU_FLAG_RVV_I64) {
5050 fdsp->vector_fmul_window_scaled = ff_vector_fmul_window_scaled_rvv;
5151 fdsp->vector_fmul_window = ff_vector_fmul_window_fixed_rvv;
libavutil/riscv/float_dsp_init.c+1−1
@@ -54,7 +54,7 @@ av_cold void ff_float_dsp_init_riscv(AVFloatDSPContext *fdsp) · 53 unmodified lines
5454 #if HAVE_RVV
5555 int flags = av_get_cpu_flags();
5656
57− if (flags & AV_CPU_FLAG_RVB_ADDR) {
57+ if (flags & AV_CPU_FLAG_RVB) {
5858 if (flags & AV_CPU_FLAG_RVV_F32) {
5959 fdsp->vector_fmul = ff_vector_fmul_rvv;
6060 fdsp->vector_fmac_scalar = ff_vector_fmac_scalar_rvv;
libavutil/riscv/lls_init.c+2−3
@@ -47,9 +47,8 @@ av_cold void ff_init_lls_riscv(LLSModel *m) · 46 unmodified lines
4747 #if HAVE_RVV
4848 int flags = av_get_cpu_flags();
4949
50− if ((flags & AV_CPU_FLAG_RVB_ADDR) && (flags & AV_CPU_FLAG_RVV_F64)) {
51− if ((flags & AV_CPU_FLAG_RVB_BASIC) &&
52− ff_get_rv_vlenb() > m->indep_count)
50+ if ((flags & AV_CPU_FLAG_RVB) && (flags & AV_CPU_FLAG_RVV_F64)) {
51+ if (ff_get_rv_vlenb() > m->indep_count)
5352 m->update_lls = ff_lls_update_rvv;
5453 m->evaluate_lls = ff_lls_evaluate_rvv;
5554 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t