summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-05-22 13:45:20 +0200
committerMarek Olšák <[email protected]>2010-05-23 17:13:31 +0200
commit98630a900e78ec7ee598679c27c25923c1ffb929 (patch)
tree392c2c20a59d98a14251e10fad05957bb5f5a119 /src/gallium/drivers
parenta3ef2fb9c48001580497049df87c210c367fb81e (diff)
r300g: fix warnings
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_context.h2
-rw-r--r--src/gallium/drivers/r300/r300_debug.c4
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);