Skip to content

Commit

Permalink
rendervulkan: don't use UNDEFINED for dmabuf imports
Browse files Browse the repository at this point in the history
  • Loading branch information
DadSchoorse authored and Joshua-Ashton committed May 14, 2024
1 parent 08d38ce commit 37577dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendervulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ void CVulkanCmdBuffer::insertBarrier(bool flush)
.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
.srcAccessMask = state.dirty ? write_bits : 0u,
.dstAccessMask = flush ? 0u : read_bits | write_bits,
.oldLayout = (state.discarded || state.needsImport) ? VK_IMAGE_LAYOUT_UNDEFINED : VK_IMAGE_LAYOUT_GENERAL,
.oldLayout = state.discarded ? VK_IMAGE_LAYOUT_UNDEFINED : VK_IMAGE_LAYOUT_GENERAL,
.newLayout = isPresent ? GetBackend()->GetPresentLayout() : VK_IMAGE_LAYOUT_GENERAL,
.srcQueueFamilyIndex = isExport ? image->queueFamily : state.needsImport ? externalQueue : image->queueFamily,
.dstQueueFamilyIndex = isExport ? externalQueue : state.needsImport ? m_queueFamily : m_queueFamily,
Expand Down

0 comments on commit 37577dc

Please sign in to comment.