@@ -362,21 +362,6 @@ mod tests {
362362 /// The tests that set the process-wide marker take turns.
363363 static GLOBAL : Mutex < ( ) > = Mutex :: new ( ( ) ) ;
364364
365- #[ test]
366- fn parses_backend_names ( ) {
367- assert_eq ! ( parse_backends( "dx12" ) , Some ( BackendChoice :: Use ( Backends :: DX12 ) ) ) ;
368- assert_eq ! ( parse_backends( " D3D12 " ) , Some ( BackendChoice :: Use ( Backends :: DX12 ) ) ) ;
369- assert_eq ! ( parse_backends( "vulkan" ) , Some ( BackendChoice :: Use ( Backends :: VULKAN ) ) ) ;
370- assert_eq ! ( parse_backends( "vk,gl" ) , Some ( BackendChoice :: Use ( Backends :: VULKAN | Backends :: GL ) ) ) ;
371- assert_eq ! ( parse_backends( "metal" ) , Some ( BackendChoice :: Use ( Backends :: METAL ) ) ) ;
372- assert_eq ! ( parse_backends( "auto" ) , Some ( BackendChoice :: Auto ) ) ;
373- for off in [ "off" , "OFF" , "none" , "cpu" , "0" ] {
374- assert_eq ! ( parse_backends( off) , Some ( BackendChoice :: Off ) , "{off}" ) ;
375- }
376- assert_eq ! ( parse_backends( "" ) , None ) ;
377- assert_eq ! ( parse_backends( "directx9" ) , None ) ;
378- }
379-
380365 #[ test]
381366 fn app_variable_wins_over_wgpu_backend ( ) {
382367 assert_eq ! ( choose( None , None ) , BackendChoice :: Auto ) ;
@@ -389,17 +374,6 @@ mod tests {
389374 assert_eq ! ( choose( None , Some ( "off" ) ) , BackendChoice :: Auto ) ;
390375 }
391376
392- /// Issue #136: Windows must not load the Vulkan driver unless asked to.
393- #[ test]
394- fn windows_defaults_to_dx12_only ( ) {
395- assert_eq ! ( default_compute_backends( "windows" ) , Backends :: DX12 ) ;
396- assert_eq ! ( default_window_backends( "windows" ) , Backends :: DX12 ) ;
397- assert ! ( !default_window_backends( "windows" ) . contains( Backends :: VULKAN ) ) ;
398- assert_eq ! ( default_compute_backends( "macos" ) , Backends :: METAL ) ;
399- assert ! ( default_compute_backends( "linux" ) . contains( Backends :: VULKAN ) ) ;
400- assert ! ( default_window_backends( "linux" ) . contains( Backends :: VULKAN | Backends :: GL ) ) ;
401- }
402-
403377 /// Issue #471: DX12 shaders compile with FXC, never a `dxcompiler.dll` found on the search path,
404378 /// unless `WGPU_DX12_COMPILER` asks for it.
405379 #[ test]
@@ -472,22 +446,6 @@ mod tests {
472446 assert_eq ! ( window_renderer_order( None , None , None , "macos" , all, true ) , [ Wgpu ( Backends :: METAL ) , Glow ] ) ;
473447 }
474448
475- #[ test]
476- fn window_renderer_names_round_trip ( ) {
477- for n in [ "dx12" , "vulkan" , "metal" , "gl" , "glow" ] {
478- assert_eq ! ( WindowRenderer :: parse( n) . map( WindowRenderer :: name) , Some ( n) ) ;
479- }
480- assert_eq ! ( WindowRenderer :: parse( " DX12 " ) , Some ( WindowRenderer :: Wgpu ( Backends :: DX12 ) ) ) ;
481- for n in [ "auto" , "off" , "vulkan,gl" , "" , "bogus" ] {
482- assert_eq ! ( WindowRenderer :: parse( n) , None , "{n}" ) ;
483- }
484- assert_eq ! ( forced_window_renderer( Some ( "glow" ) , Some ( "dx12" ) ) , Some ( WindowRenderer :: Glow ) ) ;
485- assert_eq ! ( forced_window_renderer( Some ( "auto" ) , Some ( "vulkan" ) ) , Some ( WindowRenderer :: Wgpu ( Backends :: VULKAN ) ) ) ;
486- assert_eq ! ( forced_window_renderer( None , None ) , None ) ;
487- // `glow` only concerns the window: compute keeps its default, without a warning
488- assert_eq ! ( parse_backends( "glow" ) , Some ( BackendChoice :: Auto ) ) ;
489- }
490-
491449 #[ test]
492450 fn overlapping_scopes_share_one_marker_until_the_last_ends ( ) {
493451 let dir = std:: env:: temp_dir ( ) . join ( format ! ( "lc-gpu-scopes-{}" , std:: process:: id( ) ) ) ;
0 commit comments