diff options
author | Emil Velikov <[email protected]> | 2014-06-16 23:30:44 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-07-10 01:06:47 +0100 |
commit | 5b7e43aea89847100b929989c21d23da124d4936 (patch) | |
tree | 60a9d72688f989c730f87c4051250f1102e280a9 /src/gallium/auxiliary | |
parent | 532eb72be3894329eb751813f84882cf82478b8c (diff) |
targets/dri: Add __driDriverGetExtensions_nouveau symbol
The symbol is introduced by the mesa megadrivers, and adding
gallium support for it will allow us to merge st/dri/drm and
st/dri/sw. Resulting in a single dri library across gallium.
v2: Rebase on top of gallium dri3.
Signed-off-by: Emil Velikov <[email protected]>
Tested-by: Rob Clark <[email protected]>
Tested-by: Thomas Helland <thomashelland90 at gmail.com>
Acked-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 12 |
1 files changed, 12 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 3b36316f1a2..62c4f8e29a1 100644 --- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h +++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h @@ -83,6 +83,18 @@ pipe_ilo_create_screen(int fd) #endif #if defined(GALLIUM_NOUVEAU) +#if defined(DRI_TARGET) +#include "dri_screen.h" + +const __DRIextension **__driDriverGetExtensions_nouveau(void); + +PUBLIC const __DRIextension **__driDriverGetExtensions_nouveau(void) +{ + globalDriverAPI = &galliumdrm_driver_api; + return galliumdrm_driver_extensions; +} +#endif + static struct pipe_screen * pipe_nouveau_create_screen(int fd) { |