st/mesa: Clean up header file inclusion in st_mesa_to_tgsi.h.
authorVinson Lee <vlee@vmware.com>
Fri, 6 Aug 2010 00:13:15 +0000 (17:13 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 6 Aug 2010 00:15:25 +0000 (17:15 -0700)
st_mesa_to_tgsi.h
Replace tgsi_ureg.h with a forward declaration.
Include p_compiler.h for ubyte symbol.

st_program.c
Include tgsi_ureg.h directly.

src/mesa/state_tracker/st_mesa_to_tgsi.h
src/mesa/state_tracker/st_program.c

index e3c5bd1d94db6e3d6f2e78cab0306e2146d9ac88..ca076ce362290d5b0e589f7a898175a7dac9ff36 100644 (file)
 #define ST_MESA_TO_TGSI_H
 
 #include "main/mtypes.h"
-#include "tgsi/tgsi_ureg.h"
 
+#include "pipe/p_compiler.h"
+
+struct ureg_program;
 
 #if defined __cplusplus
 extern "C" {
index 6f3ecdbce110227a35c6549630e7fc810d5e14fb..91528c227b23974ac850b76eaee1c4b058bbcbb8 100644 (file)
@@ -41,6 +41,7 @@
 #include "pipe/p_shader_tokens.h"
 #include "draw/draw_context.h"
 #include "tgsi/tgsi_dump.h"
+#include "tgsi/tgsi_ureg.h"
 
 #include "st_debug.h"
 #include "st_context.h"