summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_screen.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-06-04 02:47:35 +0200
committerMarek Olšák <[email protected]>2010-06-04 03:04:16 +0200
commitffd0a2e215d83222f5e1e148b8e7cddeac6025d2 (patch)
tree0e5da8e7cd9dac23a052f21fb0e04f3071b9da52 /src/gallium/drivers/r600/r600_screen.h
parent42aad574f2536d8bf0dc38a2e02d9ddd0630d895 (diff)
r600g: use cast wrappers
Diffstat (limited to 'src/gallium/drivers/r600/r600_screen.h')
-rw-r--r--src/gallium/drivers/r600/r600_screen.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_screen.h b/src/gallium/drivers/r600/r600_screen.h
index d424af304f9..49f6f50ee62 100644
--- a/src/gallium/drivers/r600/r600_screen.h
+++ b/src/gallium/drivers/r600/r600_screen.h
@@ -31,8 +31,6 @@
#include "radeon.h"
#include "util/u_transfer.h"
-#define r600_screen(s) ((struct r600_screen*)s)
-
/* Texture transfer. */
struct r600_transfer {
/* Base class. */
@@ -55,6 +53,11 @@ struct r600_screen {
struct radeon *rw;
};
+static INLINE struct r600_screen *r600_screen(struct pipe_screen *screen)
+{
+ return (struct r600_screen*)screen;
+}
+
/* Buffer functions. */
struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,
const struct pipe_resource *templ);