History

lavc/vulkan: add SPIR-V compilation support

This is the same as with libavfilter. We will need SPIR-V compilation for at least three different things, like the VC-2 encoder and decoder, AV1 film grain synthesis for hardware with no support for it, and possibly other codecs.

Lynne committed 2 years ago

Commit 893f3fd1 parent 0a1f8103 files · +42 −0Browse files

Showing the changes to libavcodec (3 of 3 files). Show all

Unified · Split

3 files
  1. libavcodec/Makefile +4 −0
  2. libavcodec/vulkan_glslang.c +19 −0
  3. libavcodec/vulkan_shaderc.c +19 −0
libavcodec/Makefile+4−0
@@ -1258,6 +1258,10 @@ OBJS-$(HAVE_THREADS) += pthread.o pthread_slice.o pthread_fram · 1257 unmodified lines
12581258
12591259 OBJS-$(CONFIG_FRAME_THREAD_ENCODER) += frame_thread_encoder.o
12601260
1261+# vulkan libs
1262+OBJS-$(CONFIG_LIBGLSLANG) += vulkan_glslang.o
1263+OBJS-$(CONFIG_LIBSHADERC) += vulkan_shaderc.o
1264+
12611265 # Windows resource file
12621266 SHLIBOBJS-$(HAVE_GNU_WINDRES) += avcodecres.o
12631267
libavcodec/vulkan_glslang.c+19−0
@@ -0,0 +1,19 @@
1+/*
2+ * This file is part of FFmpeg.
3+ *
4+ * FFmpeg is free software; you can redistribute it and/or
5+ * modify it under the terms of the GNU Lesser General Public
6+ * License as published by the Free Software Foundation; either
7+ * version 2.1 of the License, or (at your option) any later version.
8+ *
9+ * FFmpeg is distributed in the hope that it will be useful,
10+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+ * Lesser General Public License for more details.
13+ *
14+ * You should have received a copy of the GNU Lesser General Public
15+ * License along with FFmpeg; if not, write to the Free Software
16+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+ */
18+
19+#include "libavutil/vulkan_glslang.c"
libavcodec/vulkan_shaderc.c+19−0
@@ -0,0 +1,19 @@
1+/*
2+ * This file is part of FFmpeg.
3+ *
4+ * FFmpeg is free software; you can redistribute it and/or
5+ * modify it under the terms of the GNU Lesser General Public
6+ * License as published by the Free Software Foundation; either
7+ * version 2.1 of the License, or (at your option) any later version.
8+ *
9+ * FFmpeg is distributed in the hope that it will be useful,
10+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+ * Lesser General Public License for more details.
13+ *
14+ * You should have received a copy of the GNU Lesser General Public
15+ * License along with FFmpeg; if not, write to the Free Software
16+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+ */
18+
19+#include "libavutil/vulkan_shaderc.c"

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