From: Brian Date: Wed, 22 Aug 2007 16:04:16 +0000 (-0600) Subject: remove unneeded includes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ed87bf2291e4873e94cefe44ddf2b590b09cc42;p=mesa.git remove unneeded includes --- diff --git a/src/mesa/pipe/i915simple/i915_blit.c b/src/mesa/pipe/i915simple/i915_blit.c index 5044cf17f76..0a8a1542d72 100644 --- a/src/mesa/pipe/i915simple/i915_blit.c +++ b/src/mesa/pipe/i915simple/i915_blit.c @@ -26,10 +26,6 @@ **************************************************************************/ -#include - -//#include "mtypes.h" - #include "i915_context.h" #include "i915_winsys.h" #include "i915_blit.h" diff --git a/src/mesa/pipe/i915simple/i915_fpc_emit.c b/src/mesa/pipe/i915simple/i915_fpc_emit.c index 7259bb503db..26a4f36e710 100644 --- a/src/mesa/pipe/i915simple/i915_fpc_emit.c +++ b/src/mesa/pipe/i915simple/i915_fpc_emit.c @@ -25,13 +25,6 @@ * **************************************************************************/ -#if 0 -#include -#include "glheader.h" -#include "macros.h" -#include "enums.h" -#endif - #include "i915_reg.h" #include "i915_context.h" #include "i915_fpc.h" diff --git a/src/mesa/pipe/i915simple/i915_prim_emit.c b/src/mesa/pipe/i915simple/i915_prim_emit.c index 5a18d03e50d..2c5f11c225f 100644 --- a/src/mesa/pipe/i915simple/i915_prim_emit.c +++ b/src/mesa/pipe/i915simple/i915_prim_emit.c @@ -26,9 +26,6 @@ **************************************************************************/ -//#include "imports.h" -//#include "macros.h" - #include "pipe/draw/draw_private.h" #include "pipe/p_util.h" diff --git a/src/mesa/pipe/i915simple/i915_state_derived.c b/src/mesa/pipe/i915simple/i915_state_derived.c index b4ec480f2d0..5a493cc9cfa 100644 --- a/src/mesa/pipe/i915simple/i915_state_derived.c +++ b/src/mesa/pipe/i915simple/i915_state_derived.c @@ -25,21 +25,21 @@ * **************************************************************************/ -#include "main/glheader.h" -#include "main/macros.h" -#include "main/enums.h" - #include "vf/vf.h" #include "pipe/draw/draw_context.h" #include "i915_context.h" #include "i915_state.h" +/* XXX should include i915_fpc.h but that causes some trouble atm */ +extern void i915_translate_fragment_program( struct i915_context *i915 ); + + -#define EMIT_ATTR( VF_ATTR, FRAG_ATTR, INTERP ) \ -do { \ +#define EMIT_ATTR( VF_ATTR, FRAG_ATTR, INTERP ) \ +do { \ slot_to_vf_attr[nr_attrs] = VF_ATTR; \ nr_attrs++; \ - attr_mask |= (1 << (VF_ATTR)); \ + attr_mask |= (1 << (VF_ATTR)); \ } while (0) diff --git a/src/mesa/pipe/i915simple/i915_state_dynamic.c b/src/mesa/pipe/i915simple/i915_state_dynamic.c index 84bff17b2f9..e648357754f 100644 --- a/src/mesa/pipe/i915simple/i915_state_dynamic.c +++ b/src/mesa/pipe/i915simple/i915_state_dynamic.c @@ -25,11 +25,6 @@ * **************************************************************************/ -//#include "glheader.h" -//#include "context.h" -//#include "macros.h" -//#include "enums.h" - #include "i915_batch.h" #include "i915_state_inlines.h" #include "i915_context.h" diff --git a/src/mesa/pipe/i915simple/i915_tex_layout.c b/src/mesa/pipe/i915simple/i915_tex_layout.c index ec1fb9532d2..39c3cf2f71e 100644 --- a/src/mesa/pipe/i915simple/i915_tex_layout.c +++ b/src/mesa/pipe/i915simple/i915_tex_layout.c @@ -30,7 +30,6 @@ * Michel Dänzer */ -//#include "macros.h" #include "pipe/p_state.h" #include "pipe/p_context.h" #include "pipe/p_defines.h" diff --git a/src/mesa/pipe/i915simple/i915_winsys.h b/src/mesa/pipe/i915simple/i915_winsys.h index 10a82830354..a95927d803a 100644 --- a/src/mesa/pipe/i915simple/i915_winsys.h +++ b/src/mesa/pipe/i915simple/i915_winsys.h @@ -28,7 +28,6 @@ #ifndef I915_WINSYS_H #define I915_WINSYS_H -//#include "main/mtypes.h" /* This is the interface that softpipe requires any window system * hosting it to implement. This is the only include file in softpipe