diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-04-06 16:12:54 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2023-04-12 10:27:32 +0200 |
commit | c24910d0e138dc1dc58c0c0cdc10b49a1ed85975 (patch) | |
tree | 177b49e010ef2d5f570d6b74e4b1a26cb840247e | |
parent | 62b1fac0b5c5b9eeeca7a66cba6398c211acc504 (diff) | |
download | xserver-c24910d0e138dc1dc58c0c0cdc10b49a1ed85975.tar.gz |
glamor: Fix build without GBM
The functions glamor_egl_fd_from_pixmap()/glamor_egl_fds_from_pixmap()
are not available without GBM support.
So if GBM is not available or too old, the code would fail to link
trying to find the references to those functions.
Make sure we skip that code when glamor is built without GBM.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
-rw-r--r-- | glamor/glamor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c index 0cbc89ee4..617766c2a 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -1003,6 +1003,7 @@ _glamor_fds_from_pixmap(ScreenPtr screen, PixmapPtr pixmap, int *fds, uint32_t *strides, uint32_t *offsets, CARD32 *size, uint64_t *modifier) { +#ifdef GLAMOR_HAS_GBM glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap); glamor_screen_private *glamor_priv = glamor_get_screen_private(pixmap->drawable.pScreen); @@ -1030,6 +1031,7 @@ _glamor_fds_from_pixmap(ScreenPtr screen, PixmapPtr pixmap, int *fds, default: break; } +#endif /* GLAMOR_HAS_GBM */ return 0; } |