Lynne
1addd0fdca
vulkan: use correct signed image type for storage images
...
Using signed or unsigned integer formats/layouts requires that
"uimage" or "iimage" are used.
3 months ago
Lynne
c982376076
vulkan: extend ff_vk_shader_rep_fmt to be useful for bitexactness
...
The original either reported 8 or 16-bit conversion from the
original, rather than being able to return the actual original.
This makes it usable in a situation where preserving exactness
is required.
3 months ago
James Almer
1cead90292
avutil/pixdesc: use a bigger variable type when writing bitstream formats
...
Fixes fate-imgutils and fate-pixelutils under gcc-usan after
29ea34728f
.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
Lynne
80a0567a2f
vulkan: fix ImageView flexible array struct allocation
...
Same as the previous commit, the compiler may insert padding.
Thanks to Marvin Scholz for pointing this out.
3 months ago
Marvin Scholz
f5e2914a89
libavutil/vulkan: fix flexible array struct allocation
...
The flexible array member struct can have padding added by
the compiler which was not taken into account properly, which
could lead to a heap buffer overflow.
3 months ago
Lynne
4ad4f8101a
hwcontext_vulkan: set hwctx->device_features
...
This was forgotten during the recent device feature refactor.
3 months ago
Lynne
31def0c3ce
hwcontext_vulkan: remove redundant hostQueryReset setting
...
Its set just a few lines earlier.
3 months ago
Lynne
b8d1b4358b
vulkan: add a #define when printf debugging is enabled
3 months ago
James Almer
29ea34728f
avutil/pixfmt: add V30X pixel format
...
This maps to the 444YpCbCr10 pixel format as defined by Apple.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
1f9424e0b1
avutil/pixfmt: add VYU444 pixel format
...
This maps to the 444YpCbCr8 pixel format as defined by Apple, which is ordered
Cr Y' Cb.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
dc3ef53819
avutil/pixfmt: add UYVA pixel format
...
This maps to the 4444YpCbCrA8 pixel format as defined by Apple, which is ordered
Cb Y' Cr A.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
263108a504
avutil/pixfmt: add AYUV pixel format
...
This maps to the 4444AYpCbCr8 pixel format as defined by Apple, which is ordered
A Y’ Cb Cr.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
2e79690a70
avutil/pixfmt: extend the VUY{A,X} description
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
Lynne
6871fd3170
vulkan: always enable GL_EXT_control_flow_attributes
3 months ago
Lynne
8c250da8f3
vulkan: always enable GL_EXT_shader_explicit_arithmetic_types
...
Implicit types were a mistake.
lowp/mediump/highp was a sin.
3 months ago
Lynne
9391d4ccc5
lavu/vulkan_spirv: use correct inclusion guards
...
Forgot to change them after moving the file over from libavfilter.
3 months ago
IndecisiveTurtle
d80676117a
libavutil/vulkan: Prevent crash on shaders with no descriptors
...
Needed to prevent crashes on vc2 vulkan encoder patch
3 months ago
Lynne
892f64ad9b
x86/tx_float: remove HAVE_AVX2_EXTERNAL checks
...
It'll always be enabled.
Thanks, nasm.
3 months ago
Lynne
b17a240c8d
Revert "x86/tx_float: set all operands for shufps"
...
This reverts commit 74f5fb6db8
.
3 months ago
Lynne
24c5a58e55
Revert "x86/tx_float: add missing check for AVX2"
...
This reverts commit f4097e4c1f
.
3 months ago
Lynne
bf643f989b
Revert "x86/tx_float: add missing preprocessor wrapper for AVX2 functions"
...
This reverts commit 750f378bec
.
3 months ago
Lynne
b890482d05
Revert "x86/tx_float: change a condition in a preprocessor check"
...
This reverts commit 0d8f43c74d
.
3 months ago
Lynne
0a1f8107bb
vulkan: move SPIR-V compilation code to libavutil
...
The code is not currently used by libavutil, its just where our
common Vulkan code is.
Since SPIR-V compilation will be needed by lavc, move it, rather
than having lavc including lavfi.
3 months ago
Lynne
ac092c6707
hwcontext_vulkan: guard all uses of new spec defines and fix stray bracket
...
This fixes compilation with less recent Vulkan headers.
3 months ago
Lynne
a304cbeb8d
vulkan: add profiling debug setting
...
This simply keeps all shader optimizations, but allows debug
data to be generated.
3 months ago
Lynne
832947be02
vulkan: don't enable GL_EXT_buffer_reference by default
...
Only nlmeans_vulkan uses it.
3 months ago
Lynne
356d1cc8ff
vulkan: parse instance list and add the DEBUG_UTILS extension
...
Required to let users know whether debugging is active.
3 months ago
Lynne
e3676d96cb
hwcontext_vulkan: move device feature struct setup to a new function
3 months ago
Lynne
535e5eb7f3
hwcontext_vulkan: enable VK_KHR_shader_relaxed_extended_instruction
3 months ago
Lynne
0d5bfd0b21
vulkan_functions: change extension type to a typedef uint64_t
...
We were getting a bit too close for comfort to the 32-bit limit
on enums.
3 months ago
Lynne
d80f9f55c8
vulkan: always enable GL_EXT_scalar_block_layout
...
This makes std430 (which we use everywhere already) fully match C
layout.
Extension was made mandatory in 1.2.
3 months ago
Lynne
37d5cb84e8
vulkan: check if current buffer has finished execution before picking another
...
This saves resources, as dependencies are freed/reclaimed with a lower latency,
and provies a speedup.
3 months ago
Lynne
877c5a9692
vulkan: use shader objects if supported
...
Shader objects finally allow completely independent shaders.
3 months ago
Lynne
d233d9902f
vulkan: move shader data execution state to execution pools
...
This finally permits using fully compiled shaders across
multiple execution contexts.
3 months ago
Lynne
0a37d5a3b1
vulkan: merge FFVkSPIRVShader and FFVkPipeline into FFVkShader
...
Pipelines are just shaders. There's no reason to treat them
differently.
This also lets us implement shader objects and is an overall
cleanup.
3 months ago
Martin Storsjö
04a59bcac4
libavutil: Makefile: Fix alphabetical order for the film_grain_params files
...
Signed-off-by: Martin Storsjö <martin@martin.st>
3 months ago
Anton Khirnov
0548ab2e42
lavu/log,opt: detect setting non-runtime options post-init
...
Add a mechanism to AVClass to allow objects to signal their state to
generic code. When an object flags itself with the 'initialized' state,
print an error (and fail, after the next major bump) if the caller
attempts to set non-runtime options.
3 months ago
Anton Khirnov
3785b27b76
lavu/opt: consolidate common prologue for av_opt_set*()
...
The options-setting functions share several operations at their
beginnings - locating the option and the object to operate on, handling
the read-only and deprecated flags, and constructing the pointer to the
target value. Some of the functions also do not perform some of the
checks, although they should. E.g. a deprecation warning is currently
only printed for av_opt_set().
Introduce a prologue function that is called from every av_opt_set*()
and performs all these common initialization operations.
3 months ago
Anton Khirnov
0d09645cfe
lavu/opt: combine option type size+name into a single descriptor
...
Makes it easier to handle options generically and will be useful in
future commits.
3 months ago
Anton Khirnov
041d992060
lavu/class: improve AVClass doxy
3 months ago
Anton Khirnov
df9b80d21a
lavu: deprecate av_opt_set_int_list() and related infrastructure
...
It has no more users and is replaced by array-type options.
3 months ago
Brad Smith
6ec6b07900
ppc: Recognize the PPC VSX and Power8 CPU flags
...
Signed-off-by: Brad Smith <brad@comstyle.com>
3 months ago
Anton Khirnov
505fea34e5
lavu/opt: avoid accidentally propagating spurious errors
...
An error from read_number() is non-fatal here and should not be
forwarded.
3 months ago
Anton Khirnov
9b764e9b49
lavu/opt: add missing 'else'
3 months ago
Martin Storsjö
fd1ea75c93
libavutil: Fix building libavutil/tests/cpu for aarch64 without SVE
...
This adds a condition that was missed in
b1ee2af843
, fixing compilation on
toolchains that don't support SVE.
Signed-off-by: Martin Storsjö <martin@martin.st>
3 months ago
Martin Storsjö
b1ee2af843
aarch64: Print the SVE vector length in libavutil/tests/cpu.c
...
This makes this aspect more visible in test logs.
Signed-off-by: Martin Storsjö <martin@martin.st>
3 months ago
Martin Storsjö
e6eabb7ce7
aarch64: Add CPU feature flags for SVE and SVE2
...
Add code for detecting the feature on Linux and Windows.
Signed-off-by: Martin Storsjö <martin@martin.st>
3 months ago
Martin Storsjö
e6e56fd7a7
configure: Add detection of assembler support for SVE/SVE2
...
Signed-off-by: Martin Storsjö <martin@martin.st>
3 months ago
Martin Storsjö
067abbfe9d
aarch64: Detect I8MM on Windows via SVE-I8MM
...
There's no direct processor feature constant for I8MM alone, but
there is a flag for SVE-I8MM (added in WinSDK 10.0.26100 and
recent versions of mingw-w64). If SVE-I8MM is available, we can
assume that I8MM is available.
While HW supporting these features isn't yet commonly running
Windows, this at least allows detecting and running the I8MM codepaths
in Windows builds in Wine (possibly running in QEMU).
Signed-off-by: Martin Storsjö <martin@martin.st>
3 months ago
James Almer
d55ab2ba9b
avutil/iamf: fix doxygen
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago