diff options
author | Brian Paul <[email protected]> | 2013-01-22 17:46:40 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-01-25 15:41:39 -0700 |
commit | 6102b9d44104bf8701830ca42dc64ed330e2b8e0 (patch) | |
tree | 92e35b9809246bdad08c160d3a29bcf7aa861af5 /src | |
parent | 257783b939a54d567a4cc2ce8422e10f65ffc3ee (diff) |
softpipe: add casts to silence MSVC warnings
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | 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 8d581112fcd..dded0e17342 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; } } } |