@@ -13,8 +13,11 @@ static DISCARDING_COLOR_TARGET_RESETS_TEXTURE_INIT_STATE_CHECK_VISIBLE_ON_COPY_A
1313 let mut case = TestCase :: new ( & mut ctx, TextureFormat :: Rgba8UnormSrgb ) ;
1414 case. create_command_encoder ( ) ;
1515 case. discard ( ) ;
16+ case. submit_command_encoder ( ) ;
17+
18+ case. create_command_encoder ( ) ;
1619 case. copy_texture_to_buffer ( ) ;
17- case. submit_command_encoder_and_wait ( ) ;
20+ case. submit_command_encoder ( ) ;
1821
1922 case. assert_buffers_are_zero ( ) ;
2023 } ) ;
@@ -28,7 +31,7 @@ static DISCARDING_COLOR_TARGET_RESETS_TEXTURE_INIT_STATE_CHECK_VISIBLE_ON_COPY_I
2831 case. create_command_encoder ( ) ;
2932 case. discard ( ) ;
3033 case. copy_texture_to_buffer ( ) ;
31- case. submit_command_encoder_and_wait ( ) ;
34+ case. submit_command_encoder ( ) ;
3235
3336 case. assert_buffers_are_zero ( ) ;
3437 } ) ;
@@ -55,7 +58,7 @@ static DISCARDING_DEPTH_TARGET_RESETS_TEXTURE_INIT_STATE_CHECK_VISIBLE_ON_COPY_I
5558 case. create_command_encoder ( ) ;
5659 case. discard ( ) ;
5760 case. copy_texture_to_buffer ( ) ;
58- case. submit_command_encoder_and_wait ( ) ;
61+ case. submit_command_encoder ( ) ;
5962
6063 case. assert_buffers_are_zero ( ) ;
6164 }
@@ -70,13 +73,7 @@ static DISCARDING_EITHER_DEPTH_OR_STENCIL_ASPECT_TEST: GpuTestConfiguration =
7073 DownlevelFlags :: DEPTH_TEXTURE_AND_BUFFER_COPIES
7174 | DownlevelFlags :: COMPUTE_SHADERS ,
7275 )
73- . limits ( Limits :: downlevel_defaults ( ) )
74- // https://github.com/gfx-rs/wgpu/issues/4740
75- . expect_fail (
76- FailureCase :: backend_adapter ( Backends :: VULKAN , "llvmpipe" )
77- . panic ( "texture was not fully cleared" )
78- . flaky ( ) ,
79- ) ,
76+ . limits ( Limits :: downlevel_defaults ( ) ) ,
8077 )
8178 . run_sync ( |mut ctx| {
8279 for format in [
@@ -89,9 +86,15 @@ static DISCARDING_EITHER_DEPTH_OR_STENCIL_ASPECT_TEST: GpuTestConfiguration =
8986 let mut case = TestCase :: new ( & mut ctx, format) ;
9087 case. create_command_encoder ( ) ;
9188 case. discard_depth ( ) ;
89+ case. submit_command_encoder ( ) ;
90+
91+ case. create_command_encoder ( ) ;
9292 case. discard_stencil ( ) ;
93+ case. submit_command_encoder ( ) ;
94+
95+ case. create_command_encoder ( ) ;
9396 case. copy_texture_to_buffer ( ) ;
94- case. submit_command_encoder_and_wait ( ) ;
97+ case. submit_command_encoder ( ) ;
9598
9699 case. assert_buffers_are_zero ( ) ;
97100 }
@@ -209,11 +212,10 @@ impl<'ctx> TestCase<'ctx> {
209212 )
210213 }
211214
212- pub fn submit_command_encoder_and_wait ( & mut self ) {
215+ pub fn submit_command_encoder ( & mut self ) {
213216 self . ctx
214217 . queue
215218 . submit ( [ self . encoder . take ( ) . unwrap ( ) . finish ( ) ] ) ;
216- self . ctx . device . poll ( MaintainBase :: Wait ) ;
217219 }
218220
219221 pub fn discard ( & mut self ) {
0 commit comments