File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1443,6 +1443,9 @@ impl super::Instance {
1443
1443
} ) ,
1444
1444
image_format_list : phd_capabilities. device_api_version >= vk:: API_VERSION_1_2
1445
1445
|| phd_capabilities. supports_extension ( khr:: image_format_list:: NAME ) ,
1446
+ subgroup_size_control : phd_features
1447
+ . subgroup_size_control
1448
+ . map_or ( false , |ext| ext. subgroup_size_control == vk:: TRUE ) ,
1446
1449
} ;
1447
1450
let capabilities = crate :: Capabilities {
1448
1451
limits : phd_capabilities. to_wgpu_limits ( ) ,
Original file line number Diff line number Diff line change @@ -772,7 +772,8 @@ impl super::Device {
772
772
} ;
773
773
774
774
let mut flags = vk:: PipelineShaderStageCreateFlags :: empty ( ) ;
775
- if self . shared . features . contains ( wgt:: Features :: SUBGROUP ) {
775
+ // if self.shared.features.contains(wgt::Features::SUBGROUP) {
776
+ if self . shared . private_caps . subgroup_size_control {
776
777
flags |= vk:: PipelineShaderStageCreateFlags :: ALLOW_VARYING_SUBGROUP_SIZE
777
778
}
778
779
Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ struct PrivateCapabilities {
347
347
robust_image_access2 : bool ,
348
348
zero_initialize_workgroup_memory : bool ,
349
349
image_format_list : bool ,
350
+ subgroup_size_control : bool ,
350
351
}
351
352
352
353
bitflags:: bitflags!(
@@ -924,6 +925,7 @@ impl crate::Queue for Queue {
924
925
signal_semaphores. push ( raw) ;
925
926
signal_values. push ( signal_value) ;
926
927
}
928
+
927
929
Fence :: FencePool {
928
930
ref mut active,
929
931
ref mut free,
You can’t perform that action at this time.
0 commit comments