From f41a65397b410d3960a6ed31b05367bee5229120 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 28 Feb 2014 17:56:01 +0000 Subject: [PATCH] glx: cleanup unneeded headers - xf86dri.h is the old dri1 header, not required by dri2 nor dri3 - fold xf86drm.h inclusiong inside dri2.h - dri3_glx does not have any drm specific dependencies - glapi.h is not required by the dri2 and dri3 codepaths Signed-off-by: Emil Velikov Reviewed-by: Jon TURNEY Reviewed-by: Ian Romanick --- src/glx/dri2.c | 1 - src/glx/dri2.h | 1 + src/glx/dri2_glx.c | 3 --- src/glx/dri2_query_renderer.c | 1 - src/glx/dri3_glx.c | 3 --- src/glx/glxcmds.c | 2 -- src/glx/tests/query_renderer_implementation_unittest.cpp | 1 - 7 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/glx/dri2.c b/src/glx/dri2.c index 7e8fdeabf47..7cb9d2dba9c 100644 --- a/src/glx/dri2.c +++ b/src/glx/dri2.c @@ -38,7 +38,6 @@ #include #include #include -#include "xf86drm.h" #include "dri2.h" #include "glxclient.h" #include "GL/glxext.h" diff --git a/src/glx/dri2.h b/src/glx/dri2.h index 90efde8bcc1..72a608c508c 100644 --- a/src/glx/dri2.h +++ b/src/glx/dri2.h @@ -33,6 +33,7 @@ #ifndef _DRI2_H_ #define _DRI2_H_ +#include #include #include diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index deeffa494d4..75fc9510bf4 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -37,17 +37,14 @@ #include #include #include -#include "glapi.h" #include "glxclient.h" #include -#include "xf86dri.h" #include #include #include #include #include #include -#include "xf86drm.h" #include "dri2.h" #include "dri_common.h" #include "dri2_priv.h" diff --git a/src/glx/dri2_query_renderer.c b/src/glx/dri2_query_renderer.c index 95560cb4a6b..a28ced6ae6a 100644 --- a/src/glx/dri2_query_renderer.c +++ b/src/glx/dri2_query_renderer.c @@ -25,7 +25,6 @@ #include "glxclient.h" #include "glx_error.h" -#include "xf86drm.h" #include "dri2.h" #include "dri_interface.h" #include "dri2_priv.h" diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 8fbf125a7a2..f27a773981f 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -65,9 +65,7 @@ #include #include #include -#include "glapi.h" #include "glxclient.h" -#include "xf86dri.h" #include #include #include @@ -75,7 +73,6 @@ #include #include -#include "xf86drm.h" #include "dri_common.h" #include "dri3_priv.h" #include "loader.h" diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 837d8a269cf..4b17d7cecb7 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -48,9 +48,7 @@ #ifdef XF86VIDMODE #include #endif -#include "xf86dri.h" #endif -#else #endif #include diff --git a/src/glx/tests/query_renderer_implementation_unittest.cpp b/src/glx/tests/query_renderer_implementation_unittest.cpp index 2bf88430263..35b3972d57f 100644 --- a/src/glx/tests/query_renderer_implementation_unittest.cpp +++ b/src/glx/tests/query_renderer_implementation_unittest.cpp @@ -29,7 +29,6 @@ extern "C" { #include "glxclient.h" #include "glx_error.h" -#include "xf86drm.h" #include "dri2.h" #include "dri_interface.h" #include "dri2_priv.h" -- 2.30.2