@@ -157,6 +157,12 @@ void test_simple_rectangle(LLGI::DeviceType deviceType, SingleRectangleTestMode
157157 }
158158 }
159159
160+ for (int i = 0 ; i < 3 ; i++)
161+ {
162+ auto commandList = commandListPool->Get ();
163+ commandList->WaitUntilCompleted ();
164+ }
165+
160166 pips.clear ();
161167
162168 graphics->WaitFinish ();
@@ -263,6 +269,12 @@ void test_index_offset(LLGI::DeviceType deviceType)
263269 }
264270 }
265271
272+ for (size_t i = 0 ; i < commandLists.size (); i++)
273+ {
274+ auto commandList = commandLists[i];
275+ commandList->WaitUntilCompleted ();
276+ }
277+
266278 pips.clear ();
267279
268280 graphics->WaitFinish ();
@@ -551,10 +563,15 @@ void main()
551563 }
552564 }
553565
554- pips.clear ();
555-
566+ for (int i = 0 ; i < commandLists.size (); i++)
567+ {
568+ auto commandList = commandLists[i];
569+ commandList->WaitUntilCompleted ();
570+ }
556571 graphics->WaitFinish ();
557572
573+ pips.clear ();
574+
558575 LLGI::SafeRelease (sfMemoryPool);
559576 LLGI::SafeRelease (cb_vs);
560577 LLGI::SafeRelease (cb_ps);
@@ -815,10 +832,15 @@ void main()
815832 }
816833 }
817834
818- pips.clear ();
819-
835+ for (size_t i = 0 ; i < commandLists.size (); i++)
836+ {
837+ auto commandList = commandLists[i];
838+ commandList->WaitUntilCompleted ();
839+ }
820840 graphics->WaitFinish ();
821841
842+ pips.clear ();
843+
822844 LLGI::SafeRelease (sfMemoryPool);
823845 LLGI::SafeRelease (textureDrawn);
824846 LLGI::SafeRelease (shader_vs);
@@ -942,6 +964,12 @@ void test_instancing(LLGI::DeviceType deviceType)
942964 }
943965 }
944966
967+ for (int i = 0 ; i < 3 ; i++)
968+ {
969+ auto commandList = commandListPool->Get ();
970+ commandList->WaitUntilCompleted ();
971+ }
972+ graphics->WaitFinish ();
945973 pips.clear ();
946974}
947975
@@ -1188,6 +1216,12 @@ void test_vtf(LLGI::DeviceType deviceType)
11881216 }
11891217 }
11901218
1219+ for (int i = 0 ; i < 3 ; i++)
1220+ {
1221+ auto commandList = commandListPool->Get ();
1222+ commandList->WaitUntilCompleted ();
1223+ }
1224+ graphics->WaitFinish ();
11911225 pips.clear ();
11921226}
11931227
0 commit comments