diff options
author | Rob Clark <robdclark@gmail.com> | 2015-09-01 11:21:26 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-09-01 11:21:26 -0400 |
commit | 57ae3c1683d45afbeefa9a9f35bb97485a7ffea0 (patch) | |
tree | 29b2f46352a5d07f2d3f9fd50b0ef0c27e395839 | |
parent | 34bf9d8566aaf97a0f2adb127836134078abd340 (diff) | |
download | drm_gralloc-57ae3c1683d45afbeefa9a9f35bb97485a7ffea0.tar.gz |
WIP: pipe: clean up driver specific includes
-rw-r--r-- | gralloc_drm_pipe.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gralloc_drm_pipe.c b/gralloc_drm_pipe.c index 477e98f..d6f39b8 100644 --- a/gralloc_drm_pipe.c +++ b/gralloc_drm_pipe.c @@ -368,21 +368,25 @@ static void pipe_destroy(struct gralloc_drm_drv_t *drv) FREE(pm); } -/* for freedreno */ +#ifdef ENABLE_PIPE_FREEDRENO #include "freedreno/drm/freedreno_drm_public.h" -/* for nouveau */ +#endif +#ifdef ENABLE_PIPE_NOUVEAU #include "nouveau/drm/nouveau_drm_public.h" -/* for r300 */ +#endif +#ifdef ENABLE_PIPE_R300 #include "radeon/drm/radeon_drm_public.h" #include "r300/r300_public.h" -/* for r600 */ +#endif +#ifdef ENABLE_PIPE_R600 #include "radeon/drm/radeon_winsys.h" #include "r600/r600_public.h" -/* for vmwgfx */ +#endif +#ifdef ENABLE_PIPE_VMWGFX #include "svga/drm/svga_drm_public.h" #include "svga/svga_winsys.h" #include "svga/svga_public.h" -/* for debug */ +#endif #include "target-helpers/inline_debug_helper.h" static int pipe_init_screen(struct pipe_manager *pm) |