r300g: fix warnings
authorMarek Olšák <maraeo@gmail.com>
Sat, 22 May 2010 11:45:20 +0000 (13:45 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 23 May 2010 15:13:31 +0000 (17:13 +0200)
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_debug.c

index e44906d00997c85d777ec28637496e29c1cf61a9..4b852ab5454fa27c4e7550d1c2df2dc8e7c69fe6 100644 (file)
@@ -465,6 +465,8 @@ struct draw_stage* r300_draw_stage(struct r300_context* r300);
 void r300_init_state_functions(struct r300_context* r300);
 void r300_init_resource_functions(struct r300_context* r300);
 
+void r500_dump_rs_block(struct r300_rs_block *rs);
+
 static INLINE boolean CTX_DBG_ON(struct r300_context * ctx, unsigned flags)
 {
     return SCREEN_DBG_ON(ctx->screen, flags);
index 85a1aa7b06ebea4afbc977630cf71fb7d540b5a5..024731a22ab57ff32490e15548a337fe783d3060 100644 (file)
@@ -126,9 +126,9 @@ void r500_dump_rs_block(struct r300_rs_block *rs)
 
             j = 3;
             do {
-                if (tex_ptr & 0x3f == 63) {
+                if ((tex_ptr & 0x3f) == 63) {
                     fprintf(stderr, "1.0");
-                } else if (tex_ptr & 0x3f == 62) {
+                } else if ((tex_ptr & 0x3f) == 62) {
                     fprintf(stderr, "0.0");
                 } else {
                     fprintf(stderr, "[%d]", tex_ptr & 0x3f);