dawn-cmake/src/dawn
Brandon Jones 462f648896 Make adapter info device matching more flexible
Previously all of the device IDs I was aware of for a given vendor could
be comfortably filtered with a single mask, but there's at least one
exception that has come up since that indicates that support for
multiple different masks per vendor is necessary.

This change allows devices to be identified in groups, with each group
being given a different mask or no mask at all. Architectures may be
shared between groups.

Also added the ability to mark a device group as internal, which will
generate the helper functions (like `IsVendorArchitecture()`) for the
internal architectures but not allow them to be exposed in
GPUAdapterInfo. Internal device IDs may overlap with non-internal ones.

Finally, added some validation logic to prevent duplicate deviceIds or
conflicts between device sets/architectures. This was actually supposed
to be in an earlier CL but somehow got omitted from the version that
eventually landed.

Bug: dawn:1498
Change-Id: Icb8bfbee47324cbd9791f63089877ace86c763db
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96900
Reviewed-by: Yunchao He <yunchao.he@intel.com>
Commit-Queue: Brandon Jones <bajones@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
2022-08-02 22:14:35 +00:00
..
common Clarify that dawn/common:internal_config doesn't leak out of Dawn. 2022-07-19 12:49:03 +00:00
fuzzers Ensure the Vulkan fuzzer uses SwiftShader 2022-05-31 17:28:49 +00:00
native Revise Intel GPU generations in gpu_info.json 2022-08-02 18:10:05 +00:00
node dawn/node: Fix crash when using device after destroy() 2022-07-28 14:11:17 +00:00
platform Add dawn version hash to cache keys. 2022-06-24 23:39:49 +00:00
samples GL: implement EGL context creation in Dawn native. 2022-06-29 15:29:41 +00:00
tests Implement timestampWrites on D3D12 and Vulkan backends 2022-08-02 00:20:34 +00:00
utils GL: implement EGL context creation in Dawn native. 2022-06-29 15:29:41 +00:00
wire dawn: Add Device::CreateErrorTexture(desc) 2022-07-20 16:07:44 +00:00
BUILD.gn Remove old src/include folder 2022-06-18 16:16:11 +00:00
CMakeLists.txt Fix inclusive language presubmit 2022-04-19 22:25:45 +00:00
OWNERS Fix typo in OWNERS file 2022-05-31 20:34:39 +00:00
gpu_info.json Make adapter info device matching more flexible 2022-08-02 22:14:35 +00:00