Fix systemName output on Mac/iOS

macOS and iOS were switched.

Bug: None
Change-Id: I10872110cc3122114d3dfdb29dd4672bdc2cfb6b
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30723
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
Austin Eng 2020-10-21 22:08:58 +00:00 committed by Commit Bot service account
parent e5f5cb8c3e
commit 22505a5afe
1 changed files with 2 additions and 2 deletions

View File

@ -187,14 +187,14 @@ namespace dawn_native { namespace metal {
#if defined(DAWN_PLATFORM_IOS) #if defined(DAWN_PLATFORM_IOS)
mAdapterType = wgpu::AdapterType::IntegratedGPU; mAdapterType = wgpu::AdapterType::IntegratedGPU;
const char* systemName = "macOS"; const char* systemName = "iOS ";
#elif defined(DAWN_PLATFORM_MACOS) #elif defined(DAWN_PLATFORM_MACOS)
if ([device isLowPower]) { if ([device isLowPower]) {
mAdapterType = wgpu::AdapterType::IntegratedGPU; mAdapterType = wgpu::AdapterType::IntegratedGPU;
} else { } else {
mAdapterType = wgpu::AdapterType::DiscreteGPU; mAdapterType = wgpu::AdapterType::DiscreteGPU;
} }
const char* systemName = "iOS"; const char* systemName = "macOS ";
#else #else
# error "Unsupported Apple platform." # error "Unsupported Apple platform."
#endif #endif