Skip to content

remoting: Use DRM FourCC formats instead of GBM formats

Daniel Stone requested to merge daniels/weston:remoting-remove-gbm-dep into master

The remoting plugin currently has a set_gbm_format() hook, which accepts GBM_FORMAT_* tokens from the host to set as a supported format. GBM_FORMAT_* values are strictly aliased with DRM_FORMAT_*.

In order to avoid an extra unnecessary dependency from the remoting plugin on GBM, switch to using the formats from libdrm instead.

This fixes a compile error seen when the remoting plugin is enabled:

../remoting/remoting-plugin.c:39:10: fatal error: gbm.h: No such file or directory
   39 | #include <gbm.h>
      |          ^~~~~~~
compilation terminated.

Signed-off-by: Daniel Stone

Merge request reports