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_shader.c | |
parent | 42aad574f2536d8bf0dc38a2e02d9ddd0630d895 (diff) |
r600g: use cast wrappers
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 6729fdd0e5c..9708d951883 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -35,7 +35,7 @@ static int r600_pipe_shader_vs(struct pipe_context *ctx, struct r600_pipe_shader *rpshader) { - struct r600_screen *rscreen = (struct r600_screen*)ctx->screen; + struct r600_screen *rscreen = r600_screen(ctx->screen); struct r600_shader *rshader = &rpshader->shader; struct radeon_state *state; unsigned i, tmp; @@ -63,7 +63,7 @@ static int r600_pipe_shader_vs(struct pipe_context *ctx, struct r600_pipe_shader static int r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shader *rpshader) { - struct r600_screen *rscreen = (struct r600_screen*)ctx->screen; + struct r600_screen *rscreen = r600_screen(ctx->screen); struct r600_shader *rshader = &rpshader->shader; struct radeon_state *state; unsigned i, tmp; @@ -92,8 +92,8 @@ static int r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shader static int r600_pipe_shader(struct pipe_context *ctx, struct r600_pipe_shader *rpshader) { - struct r600_screen *rscreen = (struct r600_screen*)ctx->screen; - struct r600_context *rctx = (struct r600_context*)ctx; + struct r600_screen *rscreen = r600_screen(ctx->screen); + struct r600_context *rctx = r600_context(ctx); struct r600_shader *rshader = &rpshader->shader; int r; @@ -176,7 +176,7 @@ struct r600_pipe_shader *r600_pipe_shader_create(struct pipe_context *ctx, unsig void r600_pipe_shader_destroy(struct pipe_context *ctx, struct r600_pipe_shader *rpshader) { - struct r600_screen *rscreen = (struct r600_screen*)ctx->screen; + struct r600_screen *rscreen = r600_screen(ctx->screen); if (rpshader == NULL) return; @@ -188,7 +188,7 @@ void r600_pipe_shader_destroy(struct pipe_context *ctx, struct r600_pipe_shader int r600_pipe_shader_update(struct pipe_context *ctx, struct r600_pipe_shader *rpshader) { - struct r600_context *rctx = (struct r600_context*)ctx; + struct r600_context *rctx = r600_context(ctx); struct r600_shader *rshader; enum pipe_format resource_format[160]; unsigned i, nresources = 0; |