r300g: Small compile warning fixes.
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
This commit is contained in:
parent
b3f1d370a2
commit
59155f70e7
|
@ -331,7 +331,8 @@ struct r300_context {
|
|||
};
|
||||
|
||||
/* Convenience cast wrapper. */
|
||||
static struct r300_context* r300_context(struct pipe_context* context) {
|
||||
static INLINE struct r300_context* r300_context(struct pipe_context* context)
|
||||
{
|
||||
return (struct r300_context*)context;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
#include "r300_cs.h"
|
||||
#include "r300_reg.h"
|
||||
|
||||
struct r300_context;
|
||||
|
||||
struct r300_query {
|
||||
/* The kind of query. Currently only OQ is supported. */
|
||||
unsigned type;
|
||||
|
|
|
@ -49,7 +49,7 @@ struct r300_transfer {
|
|||
};
|
||||
|
||||
/* Convenience cast wrapper. */
|
||||
static struct r300_screen* r300_screen(struct pipe_screen* screen) {
|
||||
static INLINE struct r300_screen* r300_screen(struct pipe_screen* screen) {
|
||||
return (struct r300_screen*)screen;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue