Commit 02981af
committed
[hal] Make DRM support optional.
In `wgpu_hal`, make support for `RawWindowHandle::Drm` and
`RawDisplayHandle::Drm` require that the `"drm"` feature be explicitly
requested, rather than supporting DRM handles by default.
The DRM API is for interacting with GPUs and displays directly via
system calls, without going through something like Mesa. Very few
`wgpu` users are driving hardware directly, and those that are are
sophisticated users, capable of finding and requesting the feature
themselves.
Supporting DRM in `wgpu_hal` adds dependencies on `drm` and its
supporting crates. The crates seem fine, but they do contribute to
download and build time.
Firefox definitely does not want to have to vendor `drm` and its
subcrates into its source tree, since Firefox should never be
interacting with graphics hardware directly.1 parent 9c49f92 commit 02981af
3 files changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 267 | + | |
272 | 268 | | |
273 | 269 | | |
274 | 270 | | |
| |||
892 | 888 | | |
893 | 889 | | |
894 | 890 | | |
895 | | - | |
| 891 | + | |
896 | 892 | | |
897 | 893 | | |
898 | 894 | | |
| |||
0 commit comments