draw: Fixed inline comments
authorAndres Gomez <agomez@igalia.com>
Tue, 18 Nov 2014 13:49:00 +0000 (06:49 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 18 Nov 2014 15:47:03 +0000 (08:47 -0700)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt_vsplit.c

index d8dc2ab..37045eb 100644 (file)
@@ -499,7 +499,7 @@ draw_clamp_viewport_idx(int idx)
 /**
  * Adds two unsigned integers and if the addition
  * overflows then it returns the value from
- * from the overflow_value variable.
+ * the overflow_value variable.
  */
 static INLINE unsigned
 draw_overflow_uadd(unsigned a, unsigned b,
index eebcabb..8098ade 100644 (file)
@@ -91,7 +91,7 @@ vsplit_add_cache(struct vsplit_frontend *vsplit, unsigned fetch, unsigned ofbias
 
    hash = fetch % MAP_SIZE;
 
-   /* If the value isn't in the cache of it's an overflow due to the
+   /* If the value isn't in the cache or it's an overflow due to the
     * element bias */
    if (vsplit->cache.fetches[hash] != fetch || ofbias) {
       /* update cache */