diff options
Diffstat (limited to 'src/gallium/targets/gbm/gbm.c')
-rw-r--r-- | src/gallium/targets/gbm/gbm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/targets/gbm/gbm.c b/src/gallium/targets/gbm/gbm.c index 7d2af51..8f46057 100644 --- a/src/gallium/targets/gbm/gbm.c +++ b/src/gallium/targets/gbm/gbm.c @@ -49,11 +49,13 @@ int gallium_screen_create(struct gbm_gallium_drm_device *gdrm) { struct pipe_loader_device *dev; +#ifdef HAVE_PIPE_LOADER_DRM int ret; ret = pipe_loader_drm_probe_fd(&dev, gdrm->base.base.fd); if (!ret) return -1; +#endif /* HAVE_PIPE_LOADER_DRM */ gdrm->screen = pipe_loader_create_screen(dev, get_library_search_path()); if (gdrm->screen == NULL) { |