From: Emil Velikov Date: Mon, 16 Jun 2014 23:05:30 +0000 (+0100) Subject: targets/dri: Add __driDriverGetExtensions_vmwgfx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c68a1dc0b73431438ede8bd08d4f0d27f121e4d;p=mesa.git targets/dri: Add __driDriverGetExtensions_vmwgfx Identical to previous commits - will bring us a step closer to megadrivers. Cc: Jose Fonseca Cc: Brian Paul Signed-off-by: Emil Velikov Tested-by: Rob Clark Tested-by: Thomas Helland Acked-by: Tom Stellard --- diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h index 2467a9ef731..d9c65bdf6c9 100644 --- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h +++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h @@ -199,6 +199,18 @@ pipe_radeonsi_create_screen(int fd) #endif #if defined(GALLIUM_VMWGFX) +#if defined(DRI_TARGET) +#include "dri_screen.h" + +const __DRIextension **__driDriverGetExtensions_vmwgfx(void); + +PUBLIC const __DRIextension **__driDriverGetExtensions_vmwgfx(void) +{ + globalDriverAPI = &galliumdrm_driver_api; + return galliumdrm_driver_extensions; +} +#endif + static struct pipe_screen * pipe_vmwgfx_create_screen(int fd) { diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am index 9e643775ab7..bb10e8d9ed5 100644 --- a/src/gallium/targets/dri/Makefile.am +++ b/src/gallium/targets/dri/Makefile.am @@ -33,6 +33,11 @@ AM_CPPFLAGS += \ -DDRI_TARGET endif +if HAVE_GALLIUM_SVGA +AM_CPPFLAGS += \ + -DDRI_TARGET +endif + if HAVE_GALLIUM_FREEDRENO AM_CPPFLAGS += \ -DDRI_TARGET