Identical to previous commits - will bring us a step closer to megadrivers. Cc: Chia-I Wu <o...@lunarg.com>
Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com> --- src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 12 ++++++++++++ src/gallium/targets/dri/Makefile.am | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h index efa2434..b8e4f27 100644 --- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h +++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h @@ -86,6 +86,18 @@ pipe_i915_create_screen(int fd) #endif #if defined(GALLIUM_ILO) +#if defined(DRI_TARGET) +#include "dri_screen.h" + +const __DRIextension **__driDriverGetExtensions_i965(void); + +PUBLIC const __DRIextension **__driDriverGetExtensions_i965(void) +{ + globalDriverAPI = &galliumdrm_driver_api; + return galliumdrm_driver_extensions; +} +#endif + static struct pipe_screen * pipe_ilo_create_screen(int fd) { diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am index d21ccba..80ef662 100644 --- a/src/gallium/targets/dri/Makefile.am +++ b/src/gallium/targets/dri/Makefile.am @@ -18,6 +18,11 @@ AM_CPPFLAGS += \ -DDRI_TARGET endif +if HAVE_GALLIUM_ILO +AM_CPPFLAGS += \ + -DDRI_TARGET +endif + if HAVE_GALLIUM_NOUVEAU AM_CPPFLAGS += \ -DDRI_TARGET -- 2.0.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev