Mesa (softpipe-opt): softpipe: fix typo in clear_tile

Keith Whitwell keithw at kemper.freedesktop.org
Sun Aug 23 09:24:33 UTC 2009


Module: Mesa
Branch: softpipe-opt
Commit: c84abe36a93312cfa061ce1bd005e43eb9f6a6df
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c84abe36a93312cfa061ce1bd005e43eb9f6a6df

Author: Keith Whitwell <keithw at vmware.com>
Date:   Wed Jul 29 23:06:22 2009 +0100

softpipe: fix typo in clear_tile

---

 src/gallium/drivers/softpipe/sp_tile_cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_tile_cache.c b/src/gallium/drivers/softpipe/sp_tile_cache.c
index 2d82bad..c520aef 100644
--- a/src/gallium/drivers/softpipe/sp_tile_cache.c
+++ b/src/gallium/drivers/softpipe/sp_tile_cache.c
@@ -225,7 +225,7 @@ clear_tile(struct softpipe_cached_tile *tile,
 
    switch (pf_get_size(format)) {
    case 1:
-      memset(tile->data.any, 0, TILE_SIZE * TILE_SIZE);
+      memset(tile->data.any, clear_value, TILE_SIZE * TILE_SIZE);
       break;
    case 2:
       if (clear_value == 0) {




More information about the mesa-commit mailing list