Hello all.

I was trying to compile  ffmpeg from git

commit f2e5eff3ff2141479da980fc9474a8f8ecf768a8

./configure --enable-opencl --disable-debug --enable-libx265
--enable-libx264 --enable-gpl --enable-libplacebo --enable-vulkan
--enable-libshaderc --enable-libzimg --enable-libaom --enable-libdav1d
--enable-libsoxr --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-gnutls --enable-libass --enable-libbluray
--enable-libcdio --enable-frei0r --enable-libgsm --enable-openal
--enable-libopus --enable-librtmp --enable-libsnappy --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame
--enable-libv4l2 --enable-libvidstab --enable-libvorbis
--enable-libvpx --enable-libwebp

spirv-headers version
SPIRV-Headers-vulkan-sdk-1.4.341.0

for some reason

I was running into:

libswscale/vulkan/spvasm.h:443:38: ошибка: неизвестное имя типа «SpvFPEncoding»
  443 |                                      SpvFPEncoding
floating_point_encoding)
      |                                      ^~~~~~~~~~~~~
make: *** [ffbuild/common.mak:83: libswscale/vulkan/ops.o] Ошибка 1

but definition was in file

/usr/include/spirv/unified1/spirv.h

and there was this line in ffbuild.config,mak

!HAVE_SPIRV_HEADERS_SPIRV_H=yes
HAVE_SPIRV_UNIFIED1_SPIRV_H=yes
!HAVE_INTRINSICS_NEON=yes
!HAVE_INTRINSICS_SSE2=yes
HAVE_ATANF=yes
HAVE_ATAN2F=yes

so I thought it should pick up those but for some reason this did not happen

I just edited out file

 diff --git a/libswscale/vulkan/spvasm.h b/libswscale/vulkan/spvasm.h
index 372163f7bd..beb1666b28 100644
--- a/libswscale/vulkan/spvasm.h
+++ b/libswscale/vulkan/spvasm.h
@@ -38,6 +38,13 @@
 #include <spirv/unified1/GLSL.std.450.h>
 #endif

+typedef enum SpvFPEncoding_ {
+    SpvFPEncodingBFloat16KHR = 0,
+    SpvFPEncodingFloat8E4M3EXT = 4214,
+    SpvFPEncodingFloat8E5M2EXT = 4215,
+    SpvFPEncodingMax = 0x7fffffff,
+} SpvFPEncoding;
+
 /* COUNT_ARGS: counts variadic macro arguments, including zero.
  * The sentinel 0 is prepended so the compound literal is never empty,
  * making this valid in strict C11. */

and compilation successed.

Not sure what right fix should be here.
_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to