r300g: silence warnings
authorMarek Olšák <maraeo@gmail.com>
Thu, 19 Nov 2009 21:40:11 +0000 (22:40 +0100)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 21 Nov 2009 02:06:21 +0000 (18:06 -0800)
src/gallium/drivers/r300/r300_screen.h
src/gallium/drivers/r300/r300_state_derived.c

index 41df31f670fdeff294c2a80c6d61c7c896a05c67..1ce5ff3904b49b0df9cbdcfe53a7ba88d4c105b2 100644 (file)
@@ -27,6 +27,8 @@
 
 #include "r300_chipset.h"
 
+struct r300_winsys;
+
 struct r300_screen {
     /* Parent class */
     struct pipe_screen screen;
index 8faf78932dc68aa3bd505e9391bbc3a8aa25b238..962754f3b16d28b5eb481d5a7b29784a7f4a6822 100644 (file)
@@ -47,8 +47,8 @@ struct r300_shader_derived_value {
 
 unsigned r300_shader_key_hash(void* key) {
     struct r300_shader_key* shader_key = (struct r300_shader_key*)key;
-    unsigned vs = (unsigned)shader_key->vs;
-    unsigned fs = (unsigned)shader_key->fs;
+    unsigned vs = (intptr_t)shader_key->vs;
+    unsigned fs = (intptr_t)shader_key->fs;
 
     return (vs << 16) | (fs & 0xffff);
 }