dawn-cmake/generator
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
..
templates Make adapter info device matching more flexible 2022-08-02 22:14:35 +00:00
BUILD.gn tint->dawn: Move src/dawn_native -> src/dawn/native 2022-02-04 17:07:46 +00:00
CMakeLists.txt CMake: tweak third-party imports. 2022-05-16 09:11:21 +00:00
dawn_generator.gni Adds a generated file with the dawn git hash encoded at build time. 2022-03-31 05:09:04 +00:00
dawn_gpu_info_generator.py Make adapter info device matching more flexible 2022-08-02 22:14:35 +00:00
dawn_json_generator.py Rename CacheKey-related files to Stream 2022-07-29 00:36:21 +00:00
dawn_version_generator.py Fix incorrect indentation in version generator script. 2022-06-23 01:14:24 +00:00
extract_json.py Avoid unnecessary recompiles with code generators. 2021-03-23 19:06:02 +00:00
generator_lib.gni Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
generator_lib.py Adds strformat code-gen for helping auto-generate readable strings for structs. 2022-03-19 00:21:48 +00:00
opengl_loader_generator.py tint->dawn: Move src/dawn_native -> src/dawn/native 2022-02-04 17:07:46 +00:00
remove_files.py Revert "remove_files.py: Print warnings on removals" 2022-06-14 00:04:55 +00:00