@@ -220,11 +220,11 @@ class CompatibilityTest final : public MonoDeviceApplication, public MonoAssetMa
220
220
IGPUCommandBuffer::SPipelineBarrierDependencyInfo::image_barrier_t layoutTransBarriers[2 ] = { {
221
221
.barrier = {
222
222
.dep = {
223
- .srcStageMask = PIPELINE_STAGE_FLAGS::ALL_COMMANDS_BITS,
223
+ .srcStageMask = PIPELINE_STAGE_FLAGS::HOST_BIT,
224
+ .srcAccessMask = ACCESS_FLAGS::HOST_WRITE_BIT,
225
+ .dstStageMask = PIPELINE_STAGE_FLAGS::COMPUTE_SHADER_BIT,
224
226
.dstAccessMask = ACCESS_FLAGS::SHADER_WRITE_BITS
225
- },
226
- .ownershipOp = IGPUCommandBuffer::SOwnershipTransferBarrier::OWNERSHIP_OP::RELEASE,
227
- .otherQueueFamilyIndex = ~0u
227
+ }
228
228
},
229
229
.image = m_images[0 ].get (),
230
230
.subresourceRange = {
@@ -235,14 +235,13 @@ class CompatibilityTest final : public MonoDeviceApplication, public MonoAssetMa
235
235
.layerCount = 1u ,
236
236
},
237
237
.oldLayout = IImage::LAYOUT::UNDEFINED,
238
- .newLayout = IImage::LAYOUT::GENERAL,
238
+ .newLayout = IImage::LAYOUT::GENERAL
239
239
} };
240
-
241
240
layoutTransBarriers[1 ] = layoutTransBarriers[0 ];
242
241
layoutTransBarriers[1 ].image = m_images[1 ].get ();
243
242
244
243
const IGPUCommandBuffer::SPipelineBarrierDependencyInfo depInfo = { .imgBarriers = layoutTransBarriers };
245
-
244
+ m_cmdbuf-> pipelineBarrier (EDF_NONE, depInfo);
246
245
247
246
248
247
const uint32_t pushConstants[2 ] = { 1920 , 1080 };
@@ -252,11 +251,11 @@ class CompatibilityTest final : public MonoDeviceApplication, public MonoAssetMa
252
251
m_cmdbuf->dispatch (240 , 135 , 1u );
253
252
for (int i = 0 ; i < 2 ; ++i)
254
253
{
255
- layoutTransBarriers[i].barrier .dep .srcAccessMask = layoutTransBarriers[i].barrier .dep .dstAccessMask ;
256
- layoutTransBarriers[i].barrier .dep .dstAccessMask = ACCESS_FLAGS::TRANSFER_READ_BIT;
254
+ layoutTransBarriers[i].barrier .dep = layoutTransBarriers[i].barrier .dep .nextBarrier (PIPELINE_STAGE_FLAGS::COPY_BIT,ACCESS_FLAGS::TRANSFER_READ_BIT);
257
255
layoutTransBarriers[i].oldLayout = layoutTransBarriers[i].newLayout ;
258
256
layoutTransBarriers[i].newLayout = IImage::LAYOUT::TRANSFER_SRC_OPTIMAL;
259
257
}
258
+ m_cmdbuf->pipelineBarrier (EDF_NONE,depInfo);
260
259
261
260
// {
262
261
// constexpr auto FinishedValue1 = 42;
0 commit comments