diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-10-11 15:59:27 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-12-09 19:39:22 -0500 |
commit | 455a7585de034f3f20f7c4a03fb5695cdf345d8d (patch) | |
tree | 53f8aba146b157e05da34a94a1dfba5bcf412f13 /src/gallium | |
parent | 25ed79d8303afabd873132569d6dc282886ad7d6 (diff) |
targets/egl-gdi: Optional support for DRM screen.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/targets/egl-gdi/egl-static.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 * |