mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
vulkan: move OPT_CHAIN out of hwcontext_vulkan
This allows for it to be shared. Technically, implementations should not give drivers structs that the drivers are not familiar with.
This commit is contained in:
parent
cee34e0a55
commit
96ddce1b3c
3 changed files with 64 additions and 84 deletions
|
|
@ -349,6 +349,15 @@ static inline void ff_vk_link_struct(void *chain, const void *in)
|
|||
out->pNext = (void *)in;
|
||||
}
|
||||
|
||||
#define FF_VK_STRUCT_EXT(CTX, BASE, STRUCT_P, EXT_FLAG, TYPE) \
|
||||
do { \
|
||||
if ((EXT_FLAG == FF_VK_EXT_NO_FLAG) || \
|
||||
((CTX)->extensions & EXT_FLAG)) { \
|
||||
(STRUCT_P)->sType = TYPE; \
|
||||
ff_vk_link_struct(BASE, STRUCT_P); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/* Identity mapping - r = r, b = b, g = g, a = a */
|
||||
extern const VkComponentMapping ff_comp_identity_map;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue