mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
lavu/riscv: add Zvbb CPU capability detection
This requires Linux kernel version 6.8 or later. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
3bc242e279
commit
0f5357fd85
@ -54,6 +54,10 @@ int ff_get_cpu_flags_riscv(void)
|
||||
ret |= AV_CPU_FLAG_RVB_ADDR;
|
||||
if (pairs[1].value & RISCV_HWPROBE_EXT_ZBB)
|
||||
ret |= AV_CPU_FLAG_RVB_BASIC;
|
||||
#ifdef RISCV_HWPROBE_EXT_ZVBB
|
||||
if (pairs[1].value & RISCV_HWPROBE_EXT_ZVBB)
|
||||
ret |= AV_CPU_FLAG_RV_ZVBB;
|
||||
#endif
|
||||
} else
|
||||
#endif
|
||||
#if HAVE_GETAUXVAL
|
||||
@ -105,6 +109,9 @@ int ff_get_cpu_flags_riscv(void)
|
||||
ret |= AV_CPU_FLAG_RVV_F64;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#ifdef __riscv_zvbb
|
||||
ret |= AV_CPU_FLAG_RV_ZVBB;
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user