You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (barrier.dep.srcStageMask.hasFlags(HostBit)||barrier.dep.dstStageMask.hasFlags(HostBit))
108
-
m_logger.log("Source and destination queue family index should be equal, HOST_BIT is set [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
107
+
if (barrier.dep.srcStageMask.hasFlags(HostBit) || barrier.dep.dstStageMask.hasFlags(HostBit)) {
108
+
m_logger.log("Invalid barrier, ownership transfer with host is not allowed [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
109
109
returnfalse;
110
-
// spec doesn't require it now, but we do
111
-
switch (barrier.ownershipOp)
112
-
{
113
-
case IGPUCommandBuffer::SOwnershipTransferBarrier::OWNERSHIP_OP::ACQUIRE:
114
-
if (barrier.dep.srcStageMask || barrier.dep.srcAccessMask)
115
-
m_logger.log("Ownership operation ACQUIRE requires, srcStageMask and srcAccessMask being set to 0, in [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
116
-
returnfalse;
117
-
break;
118
-
case IGPUCommandBuffer::SOwnershipTransferBarrier::OWNERSHIP_OP::RELEASE:
119
-
if (barrier.dep.dstStageMask || barrier.dep.dstAccessMask)
120
-
m_logger.log("Ownership operation RELEASE requires, dstStageMask and dstAccessMask being set to 0, in [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
121
-
returnfalse;
122
-
break;
123
-
default:
124
-
break;
125
110
}
111
+
126
112
// Will not check because it would involve a search:
0 commit comments