Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0e39fce1
Unverified
Commit
0e39fce1
authored
May 12, 2020
by
Lynne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_vulkan: update prepare_frame() for multiple semaphores when exporting
parent
f0c04710
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
hwcontext_vulkan.c
libavutil/hwcontext_vulkan.c
+7
-5
No files found.
libavutil/hwcontext_vulkan.c
View file @
0e39fce1
...
...
@@ -1244,8 +1244,6 @@ static int prepare_frame(AVHWFramesContext *hwfc, VulkanExecCtx *ectx,
.
flags
=
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT
,
};
VkPipelineStageFlagBits
wait_st
=
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT
;
VkSubmitInfo
s_info
=
{
.
sType
=
VK_STRUCTURE_TYPE_SUBMIT_INFO
,
.
commandBufferCount
=
1
,
...
...
@@ -1255,6 +1253,10 @@ static int prepare_frame(AVHWFramesContext *hwfc, VulkanExecCtx *ectx,
.
signalSemaphoreCount
=
planes
,
};
VkPipelineStageFlagBits
wait_st
[
AV_NUM_DATA_POINTERS
];
for
(
int
i
=
0
;
i
<
planes
;
i
++
)
wait_st
[
i
]
=
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT
;
switch
(
pmode
)
{
case
PREP_MODE_WRITE
:
new_layout
=
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL
;
...
...
@@ -1270,9 +1272,9 @@ static int prepare_frame(AVHWFramesContext *hwfc, VulkanExecCtx *ectx,
new_layout
=
VK_IMAGE_LAYOUT_GENERAL
;
new_access
=
VK_ACCESS_MEMORY_READ_BIT
|
VK_ACCESS_MEMORY_WRITE_BIT
;
dst_qf
=
VK_QUEUE_FAMILY_EXTERNAL_KHR
;
s_info
.
pWaitSemaphores
=
&
frame
->
sem
;
s_info
.
pWaitDstStageMask
=
&
wait_st
;
s_info
.
waitSemaphoreCount
=
1
;
s_info
.
pWaitSemaphores
=
frame
->
sem
;
s_info
.
pWaitDstStageMask
=
wait_st
;
s_info
.
waitSemaphoreCount
=
planes
;
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment