From ffd0a2e215d83222f5e1e148b8e7cddeac6025d2 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 4 Jun 2010 02:47:35 +0200 Subject: r600g: use cast wrappers --- src/gallium/drivers/r600/r600_shader.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gallium/drivers/r600/r600_shader.c') diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 6729fdd0e5..9708d95188 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; -- cgit v1.2.3