projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
257783b
)
softpipe: add casts to silence MSVC warnings
author
Brian Paul
<brianp@vmware.com>
Wed, 23 Jan 2013 00:46:40 +0000
(17:46 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 25 Jan 2013 22:41:39 +0000
(15:41 -0700)
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/softpipe/sp_tile_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_tile_cache.c
b/src/gallium/drivers/softpipe/sp_tile_cache.c
index 8d581112fcd7cd40f566fa4e26c2db8906104f92..dded0e17342ba4f046e0161f9975ddb66af74f77 100644
(file)
--- 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;
}
}
}