You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Use `cfg_aliases!` in the various crates' `build.rs` files to define a
new cfg, `drm`, which is set when not only the `"drm"` *feature* is
enabled, but we are also on a platform that supports DRM. Assume that
DRM is available on Linux and all BSDs, including NetBSD. Use the
`drm` cfg in all conditionals in the code.
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.
Add a `"drm"` feature to `wgpu`, `wgpu-core`, and
`wgpu-core-deps-windows-linux-android`, and make the relevant glue
code conditional on that, with appropriate platform qualifications.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,9 @@ Bottom level categories:
70
70
#### Vulkan
71
71
72
72
- Add `vulkan::Device::texture_from_dmabuf_fd()` for importing DMA-buf textures on Linux, with `VULKAN_EXTERNAL_MEMORY_FD` and `VULKAN_EXTERNAL_MEMORY_DMA_BUF` feature flags. By @TODO in [#TODO](https://github.com/gfx-rs/wgpu/pull/TODO).
73
-
- Add support for RawWindowHandle::Drm on unix. By @rectalogic in [#9182](https://github.com/gfx-rs/wgpu/pull/9182).
73
+
- Add support for RawWindowHandle::Drm on unix, conditional on the `"drm"` feature.
74
+
- DRM support by @rectalogic in [#9182](https://github.com/gfx-rs/wgpu/pull/9182).
75
+
- Conditional compilation by @jimblandy in [#9390](https://github.com/gfx-rs/wgpu/pull/9390)
0 commit comments