[Mesa-dev] [PATCH 09/11] softpipe: add casts to silence MSVC warnings
Brian Paul
brianp at vmware.com
Tue Jan 22 16:51:19 PST 2013
---
src/gallium/drivers/softpipe/sp_tile_cache.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_tile_cache.c b/src/gallium/drivers/softpipe/sp_tile_cache.c
index 8d58111..dded0e1 100644
--- a/src/gallium/drivers/softpipe/sp_tile_cache.c
+++ b/src/gallium/drivers/softpipe/sp_tile_cache.c
@@ -253,7 +253,7 @@ clear_tile(struct softpipe_cached_tile *tile,
switch (util_format_get_blocksize(format)) {
case 1:
- memset(tile->data.any, clear_value, TILE_SIZE * TILE_SIZE);
+ memset(tile->data.any, (int) clear_value, TILE_SIZE * TILE_SIZE);
break;
case 2:
if (clear_value == 0) {
@@ -274,7 +274,7 @@ clear_tile(struct softpipe_cached_tile *tile,
else {
for (i = 0; i < TILE_SIZE; i++) {
for (j = 0; j < TILE_SIZE; j++) {
- tile->data.depth32[i][j] = clear_value;
+ tile->data.depth32[i][j] = (uint) clear_value;
}
}
}
--
1.7.3.4
More information about the mesa-dev
mailing list