diff options
Diffstat (limited to 'src/gallium/drivers/r600/r600_screen.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_screen.h | 7 |
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 d424af304f..49f6f50ee6 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); |