diff options
author | Rob Clark <[email protected]> | 2014-07-21 10:43:30 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-07-23 09:03:09 -0400 |
commit | 9f6dfd16e343ce8ca2095c86a26ba6264bc25cdb (patch) | |
tree | 40b27ccfe2ef6cbec5d8b8bb810eaded93465ea3 /src/gallium/auxiliary/target-helpers | |
parent | c357e8475a05a5417f6a3d90f03e3789f014c9c7 (diff) |
targets/dri: fix freedreno targets
The kernel driver name is either "kgsl" (downstream/android) or "msm"
(upstream).
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/target-helpers')
-rw-r--r-- | src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h index bdd8669ff86..5656ef076cf 100644 --- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h +++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h @@ -225,9 +225,17 @@ pipe_vmwgfx_create_screen(int fd) #if defined(GALLIUM_FREEDRENO) #if defined(DRI_TARGET) -const __DRIextension **__driDriverGetExtensions_freedreno(void); +const __DRIextension **__driDriverGetExtensions_msm(void); -PUBLIC const __DRIextension **__driDriverGetExtensions_freedreno(void) +PUBLIC const __DRIextension **__driDriverGetExtensions_msm(void) +{ + globalDriverAPI = &galliumdrm_driver_api; + return galliumdrm_driver_extensions; +} + +const __DRIextension **__driDriverGetExtensions_kgsl(void); + +PUBLIC const __DRIextension **__driDriverGetExtensions_kgsl(void) { globalDriverAPI = &galliumdrm_driver_api; return galliumdrm_driver_extensions; |