diff options
author | Marek Olšák <[email protected]> | 2010-06-04 02:47:35 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-06-04 03:04:16 +0200 |
commit | ffd0a2e215d83222f5e1e148b8e7cddeac6025d2 (patch) | |
tree | 0e5da8e7cd9dac23a052f21fb0e04f3071b9da52 /src/gallium/drivers/r600/r600_context.h | |
parent | 42aad574f2536d8bf0dc38a2e02d9ddd0630d895 (diff) |
r600g: use cast wrappers
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 8e996b7d204..464209f4f49 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, |