r300g: silence warnings

This commit is contained in:
Marek Olšák 2009-11-19 22:40:11 +01:00 committed by Corbin Simpson
parent 624a0cd9c1
commit 435c495549
2 changed files with 4 additions and 2 deletions

View file

@ -27,6 +27,8 @@
#include "r300_chipset.h"
struct r300_winsys;
struct r300_screen {
/* Parent class */
struct pipe_screen screen;

View 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);
}