From 455a7585de034f3f20f7c4a03fb5695cdf345d8d Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 11 Oct 2010 15:59:27 +0800 Subject: targets/egl-gdi: Optional support for DRM screen. --- src/gallium/targets/egl-gdi/egl-static.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/targets/egl-gdi/egl-static.c b/src/gallium/targets/egl-gdi/egl-static.c index da6e5ce339..ff9735c29b 100644 --- a/src/gallium/targets/egl-gdi/egl-static.c +++ b/src/gallium/targets/egl-gdi/egl-static.c @@ -28,6 +28,7 @@ #include "common/egl_g3d_loader.h" #include "state_tracker/st_gl_api.h" +#include "state_tracker/drm_driver.h" #include "vg_api.h" #include "target-helpers/inline_sw_helper.h" #include "target-helpers/inline_debug_helper.h" @@ -73,7 +74,11 @@ guess_gl_api(enum st_profile_type profile) static struct pipe_screen * create_drm_screen(const char *name, int fd) { +#if FEATURE_DRM + return driver_descriptor.create_screen(fd); +#else return NULL; +#endif } static struct pipe_screen * -- cgit v1.2.3