From 98630a900e78ec7ee598679c27c25923c1ffb929 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 22 May 2010 13:45:20 +0200 Subject: [PATCH] r300g: fix warnings --- src/gallium/drivers/r300/r300_context.h | 2 ++ src/gallium/drivers/r300/r300_debug.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index e44906d0099..4b852ab5454 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -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); diff --git a/src/gallium/drivers/r300/r300_debug.c b/src/gallium/drivers/r300/r300_debug.c index 85a1aa7b06e..024731a22ab 100644 --- a/src/gallium/drivers/r300/r300_debug.c +++ b/src/gallium/drivers/r300/r300_debug.c @@ -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); -- 2.30.2