diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-08-09 17:42:24 +0200 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-08-12 14:38:32 -0700 |
commit | 4c73282d2bfa8fa52acdb3ac32c5eca260bad792 (patch) | |
tree | a0c8ae36f7046291a9d9a6429d8b41dcaf86cbf1 /src/gallium/targets | |
parent | 9f5ff5981cfc1b1eb613890e4f8cec6a448611cc (diff) | |
download | external_mesa3d-4c73282d2bfa8fa52acdb3ac32c5eca260bad792.zip external_mesa3d-4c73282d2bfa8fa52acdb3ac32c5eca260bad792.tar.gz external_mesa3d-4c73282d2bfa8fa52acdb3ac32c5eca260bad792.tar.bz2 |
gbm: Fix build without gallium_drm_loader
pipe_loader_drm_probe_fd only exists if HAVE_PIPE_LOADER_DRM is defined.
Patch improved as suggested by Vadim A. Misbakh-Soloviov.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=52962
Diffstat (limited to 'src/gallium/targets')
-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) { |