r300-gallium: Turn true and false into TRUE and FALSE.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 27 Feb 2009 18:46:14 +0000 (10:46 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 27 Feb 2009 20:25:09 +0000 (12:25 -0800)
Match the rest of Gallium.

src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_swtcl_emit.c

index 15a87515494343aaea8b07cd78d1de0e1587d7c1..81ac6ffc0d005c534b6f0729ebb993a1d4ac1947 100644 (file)
@@ -73,7 +73,7 @@ static boolean r300_draw_range_elements(struct pipe_context* pipe,
                                              start + count - 1, NULL);
     }
 
-    return true;
+    return TRUE;
 }
 
 static boolean r300_draw_elements(struct pipe_context* pipe,
index da99a3be6b68604d360867707bc6f8dd4e5aa180..59a7565393ad870f23a2bb4841454b81e4eece7e 100644 (file)
@@ -457,7 +457,7 @@ static void r300_bind_fs_state(struct pipe_context* pipe, void* shader)
         }
     }
 
-    fs->translated = true;
+    fs->translated = TRUE;
     r300->fs = fs;
 
     r300->dirty_state |= R300_NEW_FRAGMENT_SHADER;
index c4f56627c3d5a1389e0a0d7c4aa70bd028016379..dcf0990934dda3e02ad6814718a24c6bc5cb3a55 100644 (file)
@@ -59,7 +59,7 @@ static void r300_update_vertex_layout(struct r300_context* r300)
 {
     struct r300_vertex_format vformat;
     struct vertex_info vinfo;
-    boolean pos = false, psize = false, fog = false;
+    boolean pos = FALSE, psize = FALSE, fog = FALSE;
     int i, texs = 0, cols = 0;
     int tab[16];
 
@@ -75,17 +75,17 @@ static void r300_update_vertex_layout(struct r300_context* r300)
     for (i = 0; i < info->num_inputs; i++) {
         switch (info->input_semantic_name[i]) {
             case TGSI_SEMANTIC_POSITION:
-                pos = true;
+                pos = TRUE;
                 tab[i] = 0;
                 break;
             case TGSI_SEMANTIC_COLOR:
                 tab[i] = 2 + cols++;
                 break;
             case TGSI_SEMANTIC_FOG:
-                fog = true;
+                fog = TRUE;
                 break;
             case TGSI_SEMANTIC_PSIZE:
-                psize = true;
+                psize = TRUE;
                 tab[i] = 1;
                 break;
             case TGSI_SEMANTIC_GENERIC:
index cdd44240ad0a08e6f37cd41c7975eefd5ab7a698..f9baaade1e3b9c702fa5916bb4ecfa88c4d31505 100644 (file)
@@ -92,9 +92,9 @@ static boolean r300_swtcl_render_allocate_vertices(struct vbuf_render* render,
     r300render->vertex_size = vertex_size;
 
     if (r300render->vbo) {
-        return true;
+        return TRUE;
     } else {
-        return false;
+        return FALSE;
     }
 }
 
@@ -168,11 +168,11 @@ static boolean r300_swtcl_render_set_primitive(struct vbuf_render* render,
             r300render->hwprim = R300_VAP_VF_CNTL__PRIM_POLYGON;
             break;
         default:
-            return false;
+            return FALSE;
             break;
     }
 
-    return true;
+    return TRUE;
 }
 
 static void prepare_render(struct r300_swtcl_render* render)