summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-06-04 02:47:35 +0200
committerMarek Olšák <[email protected]>2010-06-04 03:04:16 +0200
commitffd0a2e215d83222f5e1e148b8e7cddeac6025d2 (patch)
tree0e5da8e7cd9dac23a052f21fb0e04f3071b9da52 /src/gallium/drivers/r600/r600_blit.c
parent42aad574f2536d8bf0dc38a2e02d9ddd0630d895 (diff)
r600g: use cast wrappers
Diffstat (limited to 'src/gallium/drivers/r600/r600_blit.c')
-rw-r--r--src/gallium/drivers/r600/r600_blit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index ffb2d372630..52a2921d47d 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -33,7 +33,7 @@
static void r600_blitter_save_states(struct pipe_context *ctx)
{
- struct r600_context *rctx = (struct r600_context*)ctx;
+ struct r600_context *rctx = r600_context(ctx);
util_blitter_save_blend(rctx->blitter,
rctx->draw->state[R600_BLEND]);
@@ -55,7 +55,7 @@ static void r600_blitter_save_states(struct pipe_context *ctx)
void r600_clear(struct pipe_context *ctx, unsigned buffers,
const float *rgba, double depth, unsigned stencil)
{
- struct r600_context *rctx = (struct r600_context*)ctx;
+ struct r600_context *rctx = r600_context(ctx);
struct pipe_framebuffer_state *fb = &rctx->fb_state;
r600_blitter_save_states(ctx);