r300g: Fix a number of warnings
authorNicolai Hähnle <nhaehnle@gmail.com>
Sun, 6 Sep 2009 13:10:59 +0000 (15:10 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Sun, 6 Sep 2009 13:14:22 +0000 (15:14 +0200)
Seriously guys....

src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_emit.h
src/gallium/drivers/r300/r300_query.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_state_derived.h
src/gallium/drivers/r300/r300_state_invariant.c

index ef79d7bbbb638f0d4927aa55911c6b6151d56767..9cc455135db9bdaa926626caf7e4223be7536e58 100644 (file)
@@ -22,6 +22,9 @@
 
 #include "r300_context.h"
 
+#include "r300_flush.h"
+#include "r300_state_invariant.h"
+
 static boolean r300_draw_range_elements(struct pipe_context* pipe,
                                         struct pipe_buffer* indexBuffer,
                                         unsigned indexSize,
index cd7b36b46784ffd3aa555a5e32e7ce5ad78044eb..6c5914baa35ac8b4a692c8ddea1f090bd9d7e025 100644 (file)
@@ -211,10 +211,7 @@ struct r300_vertex_format {
     int fs_tab[16];
 };
 
-static struct pipe_viewport_state r300_viewport_identity = {
-    .scale = {1.0, 1.0, 1.0, 1.0},
-    .translate = {0.0, 0.0, 0.0, 0.0},
-};
+extern struct pipe_viewport_state r300_viewport_identity;
 
 struct r300_context {
     /* Parent class */
index f77df2232678b7f9dc918af867a2fe5a00c21a63..1bc35c248676ed7b1646fdfafcbb2734942df40b 100644 (file)
@@ -25,6 +25,7 @@
 #include "r300_emit.h"
 
 #include "r300_fs.h"
+#include "r300_state_derived.h"
 #include "r300_vs.h"
 
 void r300_emit_blend_state(struct r300_context* r300,
index 350691d592d62531b3d095c4b26b0d61994b0def..c4002b8e5d00efa5dbca087d285899e888eb9c4a 100644 (file)
@@ -56,6 +56,11 @@ void r500_emit_fragment_program_code(struct r300_context* r300,
 void r300_emit_fb_state(struct r300_context* r300,
                         struct pipe_framebuffer_state* fb);
 
+void r300_emit_query_begin(struct r300_context* r300,
+                           struct r300_query* query);
+void r300_emit_query_end(struct r300_context* r300,
+                         struct r300_query* query);
+
 void r300_emit_rs_state(struct r300_context* r300, struct r300_rs_state* rs);
 
 void r300_emit_rs_block_state(struct r300_context* r300,
index 1d5185b417eccfd07e870c4097ae3798653cb07d..2880d34877f29c456b2ea9e3e6af675e72c49f20 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "r300_query.h"
 
+#include "r300_emit.h"
+
 static struct pipe_query* r300_create_query(struct pipe_context* pipe,
                                             unsigned query_type)
 {
index df511abfd93d14deea4745e6a33ce4facfa9c842..d05a736dd96c352e057704c9c03f19af6d89ef42 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "r300_cs.h"
 #include "r300_context.h"
+#include "r300_emit.h"
 #include "r300_reg.h"
 #include "r300_state_derived.h"
 
index 81808017f8603818392199d82725814ef5d05aa7..88cb9af6fb7bbe00404549ce69edcbf504cd246e 100644 (file)
  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  * USE OR OTHER DEALINGS IN THE SOFTWARE. */
 
+#include "util/u_debug.h"
 #include "util/u_math.h"
 #include "util/u_pack_color.h"
 
-#include "util/u_debug.h"
+#include "tgsi/tgsi_parse.h"
 
 #include "pipe/p_config.h"
 #include "pipe/internal/p_winsys_screen.h"
index 94e3ce085c3da1dbe9a709bc2185ac799b181361..5f6b225d340497a25401afbff46e5635ccc75f02 100644 (file)
@@ -23,6 +23,7 @@
 #include "r300_state_derived.h"
 
 #include "r300_fs.h"
+#include "r300_state_inlines.h"
 #include "r300_vs.h"
 
 /* r300_state_derived: Various bits of state which are dependent upon
index 63ae8eb8d08af1981bc4056546dd99af5ed91735..71a4a47b003662bd7aa567fdf32c4751a0765262 100644 (file)
 #ifndef R300_STATE_DERIVED_H
 #define R300_STATE_DERIVED_H
 
-#include "draw/draw_vertex.h"
-
-#include "r300_context.h"
-#include "r300_reg.h"
-#include "r300_state_inlines.h"
+struct r300_context;
 
 void r300_update_derived_state(struct r300_context* r300);
 
index 7d822fec483996d767c8f920daaee978e148fa98..3865730d635cfef71354eb38f609f5428ffa6ed9 100644 (file)
 
 #include "r300_state_invariant.h"
 
+
+struct pipe_viewport_state r300_viewport_identity = {
+    .scale = {1.0, 1.0, 1.0, 1.0},
+    .translate = {0.0, 0.0, 0.0, 0.0},
+};
+
 /* Calculate and emit invariant state. This is data that the 3D engine
  * will probably want at the beginning of every CS, but it's not currently
  * handled by any CSO setup, and in addition it doesn't really change much.