Skip to content

Commit

Permalink
Fix missing family check flag (#5754)
Browse files Browse the repository at this point in the history
Co-authored-by: Jim Blandy <[email protected]>
Co-authored-by: Xiaopeng Li <[email protected]>
Co-authored-by: Connor Fitzgerald <[email protected]>
Co-authored-by: Samson <[email protected]>
Co-authored-by: Valaphee The Meerkat <[email protected]>
Co-authored-by: Andreas Reich <[email protected]>
  • Loading branch information
7 people authored May 29, 2024
1 parent b5b39f6 commit de809c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ By @stefnotch in [#5410](https://github.com/gfx-rs/wgpu/pull/5410)

- Ensure render pipelines have at least 1 target. By @ErichDonGubler in [#5715](https://github.com/gfx-rs/wgpu/pull/5715)

#### Metal

- Fix unrecognized selector crash on iOS 12. By @vladasz in [#5744](https://github.com/gfx-rs/wgpu/pull/5744).

#### Vulkan

- Fix enablement of subgroup ops extension on Vulkan devices that don't support Vulkan 1.3. By @cwfitzgerald in [#5624](https://github.com/gfx-rs/wgpu/pull/5624).
Expand Down
4 changes: 3 additions & 1 deletion wgpu-hal/src/metal/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,9 @@ impl super::PrivateCapabilities {
4
},
// Per https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf
max_color_attachment_bytes_per_sample: if device.supports_family(MTLGPUFamily::Apple4) {
max_color_attachment_bytes_per_sample: if family_check
&& device.supports_family(MTLGPUFamily::Apple4)
{
64
} else {
32
Expand Down

0 comments on commit de809c8

Please sign in to comment.