From: José Fonseca Date: Fri, 11 Apr 2014 15:46:02 +0000 (+0100) Subject: egl-static: Fix missing radeon_surface.h includes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d36a8d4d27230dd91d4c4002a781edeec22d044;p=mesa.git egl-static: Fix missing radeon_surface.h includes. Fixes fatal error: radeon_surface.h: No such file or directory when libdrm is not present, or non-Linux OSes. Trivial. --- diff --git a/src/gallium/targets/egl-static/egl_pipe.c b/src/gallium/targets/egl-static/egl_pipe.c index a61cde81ee8..1c369199674 100644 --- a/src/gallium/targets/egl-static/egl_pipe.c +++ b/src/gallium/targets/egl-static/egl_pipe.c @@ -29,27 +29,43 @@ #include "egl_pipe.h" /* for i915 */ +#if _EGL_PIPE_I915 #include "i915/drm/i915_drm_public.h" #include "i915/i915_public.h" #include "target-helpers/inline_wrapper_sw_helper.h" +#endif /* for ilo */ +#if _EGL_PIPE_ILO #include "intel/intel_winsys.h" #include "ilo/ilo_public.h" +#endif /* for nouveau */ +#if _EGL_PIPE_NOUVEAU #include "nouveau/drm/nouveau_drm_public.h" +#endif /* for r300 */ +#if _EGL_PIPE_R300 #include "radeon/drm/radeon_winsys.h" #include "radeon/drm/radeon_drm_public.h" #include "r300/r300_public.h" +#endif /* for r600 */ +#if _EGL_PIPE_R600 #include "r600/r600_public.h" +#endif /* for radeonsi */ +#if _EGL_PIPE_RADEONSI #include "radeonsi/si_public.h" +#endif /* for vmwgfx */ +#if _EGL_PIPE_VMWGFX #include "svga/drm/svga_drm_public.h" #include "svga/svga_public.h" +#endif /* for freedreno */ +#if _EGL_PIPE_FREEDRENO #include "freedreno/drm/freedreno_drm_public.h" +#endif static struct pipe_screen * pipe_i915_create_screen(int fd)