mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 07:00:11 +01:00
r300g: silence warnings
This commit is contained in:
parent
624a0cd9c1
commit
435c495549
2 changed files with 4 additions and 2 deletions
|
|
@ -27,6 +27,8 @@
|
|||
|
||||
#include "r300_chipset.h"
|
||||
|
||||
struct r300_winsys;
|
||||
|
||||
struct r300_screen {
|
||||
/* Parent class */
|
||||
struct pipe_screen screen;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue