r600g: Fix false and true.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 20 Sep 2010 01:14:41 +0000 (18:14 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 20 Sep 2010 01:25:02 +0000 (18:25 -0700)
src/gallium/drivers/r600/eg_hw_states.c
src/gallium/drivers/r600/r600_context.c
src/gallium/drivers/r600/r600_draw.c
src/gallium/drivers/r600/r600_hw_states.c
src/gallium/drivers/r600/r600_query.c
src/gallium/drivers/r600/r600_resource.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state2.c

index e8cf577c76f5dea4b475bde2c546a9295a19bbc4..1d3a3e11c103e6143f5c975cc8c38e83399785a3 100644 (file)
@@ -422,11 +422,11 @@ static void eg_dsa(struct r600_context *rctx, struct radeon_state *rstate)
                S_028D10_FORCE_HIS_ENABLE0(V_028D10_FORCE_DISABLE) |
                S_028D10_FORCE_HIS_ENABLE1(V_028D10_FORCE_DISABLE);
 
-       query_running = false;
+       query_running = FALSE;
 
        LIST_FOR_EACH_ENTRY(rquery, &rctx->query_list, list) {
                if (rquery->state & R600_QUERY_STATE_STARTED) {
-                       query_running = true;
+                       query_running = TRUE;
                }
        }
 
index 776dc24569b692b826382d8c100ed0bf19eb2fdd..97b21d5e31d3dc42bda32465708bee44707f6c5f 100644 (file)
@@ -80,7 +80,7 @@ void r600_flush(struct pipe_context *ctx, unsigned flags,
        radeon_ctx_submit(rctx->ctx);
 
        LIST_FOR_EACH_ENTRY(rquery, &rctx->query_list, list) {
-               rquery->flushed = true;
+               rquery->flushed = TRUE;
        }
 
        radeon_ctx_clear(rctx->ctx);
index ca205932bd9e9f022e4d8bee1b920a007bab2434..51c9b065494b84c74c26e43d13eb7d80dc748c61 100644 (file)
@@ -156,7 +156,7 @@ void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
 
        if (rctx->any_user_vbs) {
                r600_upload_user_buffers(rctx);
-               rctx->any_user_vbs = false;
+               rctx->any_user_vbs = FALSE;
        }
 
        draw.ctx = ctx;
index 1aefc705a897e8814a7b691904bb9dfd177f436a..86bcec727cf0b07cc1698e1b088c06d08efd24a6 100644 (file)
@@ -447,11 +447,11 @@ static void r600_dsa(struct r600_context *rctx, struct radeon_state *rstate)
                S_028D10_FORCE_HIS_ENABLE0(V_028D10_FORCE_DISABLE) |
                S_028D10_FORCE_HIS_ENABLE1(V_028D10_FORCE_DISABLE);
 
-       query_running = false;
+       query_running = FALSE;
 
        LIST_FOR_EACH_ENTRY(rquery, &rctx->query_list, list) {
                if (rquery->state & R600_QUERY_STATE_STARTED) {
-                       query_running = true;
+                       query_running = TRUE;
                }
        }
 
index 298cc4eadd5569c1b586133ae47d05501db59d07..023b09ef65778575956d8a6b220d2417e6d0f99e 100644 (file)
@@ -132,7 +132,7 @@ static void r600_query_resume(struct pipe_context *ctx, struct r600_query *rquer
                r600_query_result(ctx, rquery);
        }
        r600_query_begin(rctx, rquery);
-       rquery->flushed = false;
+       rquery->flushed = FALSE;
 }
 
 static void r600_query_suspend(struct pipe_context *ctx, struct r600_query *rquery)
@@ -151,7 +151,7 @@ static void r600_begin_query(struct pipe_context *ctx, struct pipe_query *query)
 
        rquery->state = R600_QUERY_STATE_STARTED;
        rquery->num_results = 0;
-       rquery->flushed = false;
+       rquery->flushed = FALSE;
        r600_query_resume(ctx, rquery);
        r = radeon_ctx_set_query_state(rctx->ctx, &rquery->rstate);
        if (r == -EBUSY) {
@@ -231,7 +231,7 @@ static boolean r600_get_query_result(struct pipe_context *ctx,
 
        if (!rquery->flushed) {
                ctx->flush(ctx, 0, NULL);
-               rquery->flushed = true;
+               rquery->flushed = TRUE;
        }
        r600_query_result(ctx, rquery);
        *result = rquery->result;
index 6ddb1ad32a71c44a0e72e725e312af4360794603..cd1c31e82d0176c11d9c4a5985e52cde1ee265f1 100644 (file)
@@ -103,7 +103,7 @@ static INLINE struct r600_resource_buffer *r600_buffer(struct pipe_resource *buf
 
 static INLINE boolean r600_buffer_is_user_buffer(struct pipe_resource *buffer)
 {
-    return r600_buffer(buffer)->user_buffer ? true : false;
+    return r600_buffer(buffer)->user_buffer ? TRUE : FALSE;
 }
 
 #endif
index eac46a7ae6057928d77a65cb0ed9d1f5cbd6d784..773e5f6cb1cf50d2a59bf81ffcf1fefa5985525a 100644 (file)
@@ -1530,7 +1530,7 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
                r = r600_bc_add_alu(ctx->bc, &alu);
                if (r)
                        return r;
-               src_not_temp = false;
+               src_not_temp = FALSE;
                src_gpr = ctx->temp_reg;
        }
 
@@ -1641,7 +1641,7 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
                r = r600_bc_add_literal(ctx->bc, lit_vals);
                if (r)
                        return r;
-               src_not_temp = false;
+               src_not_temp = FALSE;
                src_gpr = ctx->temp_reg;
        }
 
index 38fab4bbb6db234a316135dc5fdd6b2c48cef099..a190204ef47fec1959a67a3e772b88dd68acd807 100644 (file)
@@ -205,7 +205,7 @@ static void r600_pipe_shader_vs(struct pipe_context *ctx, struct r600_pipe_shade
        r600_pipe_state_add_reg(rstate, R600_GROUP_CONTEXT,
                        R_028894_SQ_PGM_START_FS,
                        0x00000000, 0xFFFFFFFF, shader->bo);
-       rctx->vs_rebuild = false;
+       rctx->vs_rebuild = FALSE;
 }
 
 static void r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shader *shader)
@@ -275,7 +275,7 @@ static void r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shade
        r600_pipe_state_add_reg(rstate, R600_GROUP_CONTEXT,
                                R_0288CC_SQ_PGM_CF_OFFSET_PS,
                                0x00000000, 0xFFFFFFFF, NULL);
-       rctx->ps_rebuild = false;
+       rctx->ps_rebuild = FALSE;
 }
 
 static int r600_pipe_shader(struct pipe_context *ctx, struct r600_pipe_shader *shader)
@@ -1082,10 +1082,10 @@ static void r600_bind_rs_state(struct pipe_context *ctx, void *state)
                return;
 
        if (rctx->flatshade != rs->flatshade) {
-               rctx->ps_rebuild = true;
+               rctx->ps_rebuild = TRUE;
        }
        if (rctx->sprite_coord_enable != rs->sprite_coord_enable) {
-               rctx->ps_rebuild = true;
+               rctx->ps_rebuild = TRUE;
        }
        rctx->flatshade = rs->flatshade;
        rctx->sprite_coord_enable = rs->sprite_coord_enable;
@@ -1371,7 +1371,7 @@ static void r600_bind_vertex_elements(struct pipe_context *ctx, void *state)
        rctx->vertex_elements = v;
        if (v) {
                v->refcount++;
-               rctx->vs_rebuild = true;
+               rctx->vs_rebuild = TRUE;
        }
 }