st/mesa: Clean up header file inclusion in st_program.h.
authorVinson Lee <vlee@vmware.com>
Fri, 6 Aug 2010 01:21:09 +0000 (18:21 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 6 Aug 2010 01:21:09 +0000 (18:21 -0700)
st_program.h
Remove p_shader_tokens.h
Include st_context.h for st_context symbol.
Include p_state.h for PIPE_MAX_SHADER_INPUTS symbol.
Remove unnecessary forward declarations.

st_cb_bitmap.c
st_cb_clear.c
Include p_shader_tokens.h now that st_program.h doesn't include it.

src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_program.h

index ba600ccef6d5ddd62a574956496ae755edfc4730..0b8ecd27cb99da8a03c1c8f6760ce4afb4a330b3 100644 (file)
@@ -46,6 +46,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
+#include "pipe/p_shader_tokens.h"
 #include "util/u_inlines.h"
 #include "util/u_draw_quad.h"
 #include "util/u_simple_shaders.h"
index ea2414c4a002b9997173f419369b547f92fb5195..246ab2e9579db4e01af7b5199757f81cfc8f6685 100644 (file)
@@ -45,6 +45,7 @@
 #include "st_program.h"
 
 #include "pipe/p_context.h"
+#include "pipe/p_shader_tokens.h"
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
 #include "util/u_format.h"
index d779d5a6dde3a9ed2d9da81bf5d323312635ee3b..3805b9a725e6758ac02727a574596f8efe8e898a 100644 (file)
 
 #include "main/mtypes.h"
 #include "program/program.h"
-#include "pipe/p_shader_tokens.h"
-
-
-struct cso_fragment_shader;
-struct cso_vertex_shader;
+#include "pipe/p_state.h"
+#include "st_context.h"
 
 
 /**