Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed May 9, 2024
1 parent 0a79002 commit 0c40848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wgpu-hal/src/vulkan/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ impl PhysicalDeviceFeatures {
{
Some(
vk::PhysicalDeviceSubgroupSizeControlFeatures::builder()
.subgroup_size_control(true)
.subgroup_size_control(requested_features.contains(wgt::Features::SUBGROUP))
.build(),
)
} else {
Expand Down Expand Up @@ -952,8 +952,8 @@ impl PhysicalDeviceProperties {
extensions.push(vk::ExtImageRobustnessFn::name());
}

// Require `VK_EXT_subgroup_size_control` if it is available
if self.supports_extension(vk::ExtSubgroupSizeControlFn::name()) {
// Require `VK_EXT_subgroup_size_control` if the associated feature was requested
if requested_features.contains(wgt::Features::SUBGROUP) {
extensions.push(vk::ExtSubgroupSizeControlFn::name());
}
}
Expand Down

0 comments on commit 0c40848

Please sign in to comment.