projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08193cc
)
v3dv: only care about barriers between GPU jobs
author
Iago Toral Quiroga
<itoral@igalia.com>
Thu, 16 Jul 2020 07:25:18 +0000
(09:25 +0200)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:32 +0000
(21:21 +0000)
We don't need to do anything special for host/gpu synchronization.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_cmd_buffer.c
patch
|
blob
|
history
diff --git
a/src/broadcom/vulkan/v3dv_cmd_buffer.c
b/src/broadcom/vulkan/v3dv_cmd_buffer.c
index
6ecea32
..
bd960a8
100644
(file)
--- a/
src/broadcom/vulkan/v3dv_cmd_buffer.c
+++ b/
src/broadcom/vulkan/v3dv_cmd_buffer.c
@@
-4110,6
+4110,12
@@
v3dv_CmdPipelineBarrier(VkCommandBuffer commandBuffer,
{
V3DV_FROM_HANDLE(v3dv_cmd_buffer, cmd_buffer, commandBuffer);
+ /* We only care about barriers between GPU jobs */
+ if (srcStageMask == VK_PIPELINE_STAGE_HOST_BIT ||
+ dstStageMask == VK_PIPELINE_STAGE_HOST_BIT) {
+ return;
+ }
+
/* If we have a recording job, finish it here */
struct v3dv_job *job = cmd_buffer->state.job;
if (job)