Metal: Initialize mSupportedExtensions in the constructor of Adapter

This patch adds a missing call of InitializeSupportedExtensions() in the
constructor of Adapter on Metal backend so that we can correctly create
device with required extensions on Metal.

BUG=dawn:42
TEST=dawn_end2end_tests

Change-Id: Ifba41d2ae43ca054df2b0f3f19503f66fe641a72
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10500
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
Jiawei Shao 2019-08-27 00:04:29 +00:00 committed by Commit Bot service account
parent 93196db8ef
commit 27c3fc5bd3

View File

@ -172,6 +172,8 @@ namespace dawn_native { namespace metal {
} else { } else {
mDeviceType = DeviceType::DiscreteGPU; mDeviceType = DeviceType::DiscreteGPU;
} }
InitializeSupportedExtensions();
} }
~Adapter() override { ~Adapter() override {