Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix M1 in macOS incorrectly reports supported compressed texture formats #2453

Merged
merged 3 commits into from
Feb 4, 2022

Conversation

superdump
Copy link
Contributor

Connections
M1 in macOS incorrectly reports supported compressed texture formats

Description
The metal backend in wgpu-hal was incorrectly detecting support for ASTC and EAC/ETC2 on macOS as the M1 line of GPUs supports these formats as well as BC. It was also misrepresenting the support in the values returned from Adapter::features() as always support BC and never ASTC nor ETC2.

Testing
On an M1 running macOS, check whether the Adapter::features() includes all three of TEXTURE_COMPRESSION_ASTC, TEXTURE_COMPRESSION_BC, and TEXTURE_COMPRESSION_ETC2. I have tested this locally on an M1 Max running macOS.

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

wgpu-hal/src/metal/adapter.rs Outdated Show resolved Hide resolved
wgpu-hal/src/metal/adapter.rs Outdated Show resolved Hide resolved
@kvark kvark merged commit 5e2c2f8 into gfx-rs:master Feb 4, 2022
@kvark kvark added the PR: needs back-porting PR with a fix that needs to land on crates label Feb 4, 2022
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants