targets/gbm: exit gracefully if pipe_loader_drm_probe_fd is not available
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 22 Feb 2014 16:20:04 +0000 (16:20 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Feb 2014 14:51:45 +0000 (14:51 +0000)
commit0e7c30233f10d834ee26b7d6d32b397625e11e10
tree919208b7f5792526f2af696138c9714710bbf9ca
parent73c78c514f8db0605c0deb85382003d0f66b5525
targets/gbm: exit gracefully if pipe_loader_drm_probe_fd is not available

When one builds without gallium_drm_loader, the above function will
not be available, thus we'll segfault in gallium_screen_create due
to memory access violation.

Tested-by: Tom Stellard <thomas.stellard@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75335
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/targets/gbm/gbm.c