diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 12 | ||||
-rw-r--r-- | src/gallium/targets/dri/Makefile.am | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h index 6c9f15a830e..48753a63f9d 100644 --- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h +++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h @@ -51,6 +51,18 @@ static char* driver_name = NULL; /* XXX: We need to teardown the winsys if *screen_create() fails. */ #if defined(GALLIUM_I915) +#if defined(DRI_TARGET) +#include "dri_screen.h" + +const __DRIextension **__driDriverGetExtensions_i915(void); + +PUBLIC const __DRIextension **__driDriverGetExtensions_i915(void) +{ + globalDriverAPI = &galliumdrm_driver_api; + return galliumdrm_driver_extensions; +} +#endif + static struct pipe_screen * pipe_i915_create_screen(int fd) { diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am index d5cbae57cc9..a09883388a7 100644 --- a/src/gallium/targets/dri/Makefile.am +++ b/src/gallium/targets/dri/Makefile.am @@ -13,6 +13,11 @@ AM_CPPFLAGS = \ -DGALLIUM_RBUG \ -DGALLIUM_TRACE +if HAVE_GALLIUM_I915 +AM_CPPFLAGS += \ + -DDRI_TARGET +endif + if HAVE_GALLIUM_NOUVEAU AM_CPPFLAGS += \ -DDRI_TARGET |