svga: use TRUE/FALSE instead of 0/1
authorBrian Paul <brianp@vmware.com>
Tue, 15 Feb 2011 21:06:21 +0000 (14:06 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 17 Feb 2011 00:07:02 +0000 (17:07 -0700)
Some fields are booleans, others are bitmasks.  Use TRUE/FALSE to
clarify what's what.

src/gallium/drivers/svga/svga_state_need_swtnl.c

index bfd77f6b860c3ba08b36e414f1eb041005c29e27..68c025787894240282f6732d55410b379912900a 100644 (file)
@@ -179,15 +179,15 @@ static int update_need_swtnl( struct svga_context *svga,
    boolean need_swtnl;
 
    if (svga->debug.no_swtnl) {
-      svga->state.sw.need_swvfetch = 0;
-      svga->state.sw.need_pipeline = 0;
+      svga->state.sw.need_swvfetch = FALSE;
+      svga->state.sw.need_pipeline = FALSE;
    }
 
    need_swtnl = (svga->state.sw.need_swvfetch ||
                  svga->state.sw.need_pipeline);
 
    if (svga->debug.force_swtnl) {
-      need_swtnl = 1;
+      need_swtnl = TRUE;
    }
 
    /*
@@ -196,7 +196,7 @@ static int update_need_swtnl( struct svga_context *svga,
     * the wrong buffers and vertex formats. Try trivial/line-wide.
     */
    if (svga->state.sw.in_swtnl_draw)
-      need_swtnl = 1;
+      need_swtnl = TRUE;
 
    if (need_swtnl != svga->state.sw.need_swtnl) {
       SVGA_DBG(DEBUG_SWTNL|DEBUG_PERF,