Mesa (master): egl-static: Fix missing radeon_surface.h includes.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Apr 11 15:46:34 UTC 2014
Module: Mesa
Branch: master
Commit: 9d36a8d4d27230dd91d4c4002a781edeec22d044
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d36a8d4d27230dd91d4c4002a781edeec22d044
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Apr 11 16:46:02 2014 +0100
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.
---
src/gallium/targets/egl-static/egl_pipe.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/gallium/targets/egl-static/egl_pipe.c b/src/gallium/targets/egl-static/egl_pipe.c
index a61cde8..1c36919 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)
More information about the mesa-commit
mailing list