diff options
Diffstat (limited to 'src/gallium/drivers/r600/r600_context.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_context.h b/src/gallium/drivers/r600/r600_context.h index 8e996b7d20..464209f4f4 100644 --- a/src/gallium/drivers/r600/r600_context.h +++ b/src/gallium/drivers/r600/r600_context.h @@ -48,6 +48,8 @@ struct r600_pipe_shader { struct r600_context { struct pipe_context context; + struct r600_screen *screen; + struct radeon *rw; struct radeon_ctx *ctx; struct radeon_state *cb_cntl; struct radeon_state *db; @@ -65,6 +67,12 @@ struct r600_context { struct pipe_viewport_state viewport; }; +/* Convenience cast wrapper. */ +static INLINE struct r600_context *r600_context(struct pipe_context *pipe) +{ + return (struct r600_context*)pipe; +} + void r600_draw_arrays(struct pipe_context *ctx, unsigned mode, unsigned start, unsigned count); void r600_draw_elements(struct pipe_context *ctx, |